From 523f80a50e16bb0181dea68595f2135bd570a25f Mon Sep 17 00:00:00 2001 From: Jean Abou Samra Date: Fri, 24 Nov 2023 20:03:25 +0100 Subject: [PATCH] Add "python setup.py --version" replacement command --- source/discussions/setup-py-deprecated.rst | 4 ++++ source/guides/modernize-setup-py-project.rst | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/source/discussions/setup-py-deprecated.rst b/source/discussions/setup-py-deprecated.rst index 25bba70a9..f60e39dd8 100644 --- a/source/discussions/setup-py-deprecated.rst +++ b/source/discussions/setup-py-deprecated.rst @@ -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 diff --git a/source/guides/modernize-setup-py-project.rst b/source/guides/modernize-setup-py-project.rst index 98f0d78c0..058e20ad7 100644 --- a/source/guides/modernize-setup-py-project.rst +++ b/source/guides/modernize-setup-py-project.rst @@ -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: