Skip to content

Commit e6b0ed9

Browse files
Update source/single_source_version.rst
Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
1 parent 6359083 commit e6b0ed9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/single_source_version.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ One of the challenges in building packages is that the version string can be req
1515
* A package may, if the maintainers think it useful, to be able to determine the version of the package from Python code without relying on a package manager's metadata, set a top level ``__version__`` attribute.
1616
The value of ``__version__`` attribute and that passed to the build system can (and should) be kept in sync in :ref:`the build systems's recommended way <how_to_set_version_links>`.
1717

18-
Should a package not set a top level ``__version__`` attribute, the version can still be accessed using ``importlib.metadata.version("distribution_name")``.
18+
In the cases where a package does not set a top level ``__version__`` attribute, the version may still be accessible using ``importlib.metadata.version("distribution_name")``.
1919

2020
While different projects have different needs, it's important to make sure that there is a single source of truth for the version number.
2121

0 commit comments

Comments
 (0)