Skip to content

Add "python setup.py --version" replacement command #1415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/discussions/setup-py-deprecated.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ What commands should be used instead?
+---------------------------------+ |
| ``python setup.py bdist_wheel`` | |
+---------------------------------+----------------------------------------+
| | ``python setup.py --version`` | ``python -m setuptools_scm`` |
| | (when using setuptools-scm_) | |
+---------------------------------+----------------------------------------+

.. _setuptools-scm: https://setuptools-scm.readthedocs.io

.. [#needs-build] This requires the :ref:`build` dependency.
It is recommended to always build and publish both the source distribution
Expand Down
4 changes: 4 additions & 0 deletions source/guides/modernize-setup-py-project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ and their recommended replacement commands should be used instead:
+---------------------------------+ |
| ``python setup.py bdist_wheel`` | |
+---------------------------------+----------------------------------------+
| | ``python setup.py --version`` | ``python -m setuptools_scm`` |
| | (when using setuptools-scm_) | |
+---------------------------------+----------------------------------------+

.. _setuptools-scm: https://setuptools-scm.readthedocs.io

For more details:

Expand Down