Skip to content

Commit 523f80a

Browse files
committed
Add "python setup.py --version" replacement command
1 parent 83223a0 commit 523f80a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

source/discussions/setup-py-deprecated.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ What commands should be used instead?
3838
+---------------------------------+ |
3939
| ``python setup.py bdist_wheel`` | |
4040
+---------------------------------+----------------------------------------+
41+
| | ``python setup.py --version`` | ``python -m setuptools_scm`` |
42+
| | (when using setuptools-scm_) | |
43+
+---------------------------------+----------------------------------------+
4144

45+
.. _setuptools-scm: https://setuptools-scm.readthedocs.io
4246

4347
.. [#needs-build] This requires the :ref:`build` dependency.
4448
It is recommended to always build and publish both the source distribution

source/guides/modernize-setup-py-project.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ and their recommended replacement commands should be used instead:
3737
+---------------------------------+ |
3838
| ``python setup.py bdist_wheel`` | |
3939
+---------------------------------+----------------------------------------+
40+
| | ``python setup.py --version`` | ``python -m setuptools_scm`` |
41+
| | (when using setuptools-scm_) | |
42+
+---------------------------------+----------------------------------------+
4043

44+
.. _setuptools-scm: https://setuptools-scm.readthedocs.io
4145

4246
For more details:
4347

0 commit comments

Comments
 (0)