Skip to content

Commit c1f689a

Browse files
drts01theacodes
authored andcommitted
Add single-sourcing pkg version example using pkg_resources (pypa#573)
1 parent 46708a6 commit c1f689a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/guides/single-sourcing-package-version.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ number of your project:
9696
installation metadata, which is not necessarily the code that's currently
9797
imported.
9898

99+
Example using this technique: `setuptools <https://github.com/pypa/setuptools/blob/master/setuptools/version.py>`_.
100+
99101

100102
#. Set the value to ``__version__`` in ``sample/__init__.py`` and import
101103
``sample`` in :file:`setup.py`.

0 commit comments

Comments
 (0)