Skip to content

Commit 01f66a9

Browse files
Update source/single_source_version.rst
Co-authored-by: Thomas A Caswell <[email protected]>
1 parent ae2ad09 commit 01f66a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/single_source_version.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ One of the challenges in building packages is that the version string can be req
1212
* It needs to be specified when building the package (e.g. in :file:`pyproject.toml`)
1313
- That will assure that it is properly assigned in the distribution file name, and in the installed package metadata.
1414

15-
* A package may set a top level ``__version__`` attribute to provide runtime access to the version of the installed package. If this is done, the value of ``__version__`` attribute and that used by the build system to set the distribution's version should be kept in sync in :ref:`the build systems's recommended way <how_to_set_version_links>`.
15+
* A package may set a top level ``__version__`` attribute to provide runtime access to the version of the imported package. If this is done, the value of ``__version__`` attribute and that used by the build system to set the distribution's version should be kept in sync in :ref:`the build systems's recommended way <how_to_set_version_links>`.
1616

1717
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")``.
1818

0 commit comments

Comments
 (0)