From e58cfbd9b9345de05f9ec1676571eaa2c437900c Mon Sep 17 00:00:00 2001 From: sinoroc Date: Sun, 3 Dec 2023 17:02:33 +0100 Subject: [PATCH 1/2] Fix bits of "Is `setup.py` deprecated?" discussion GitHub: refs https://github.com/pypa/packaging.python.org/pull/1418 --- source/discussions/setup-py-deprecated.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/discussions/setup-py-deprecated.rst b/source/discussions/setup-py-deprecated.rst index 01339595a8..279e4abce0 100644 --- a/source/discussions/setup-py-deprecated.rst +++ b/source/discussions/setup-py-deprecated.rst @@ -100,9 +100,12 @@ The recommendation is to use a test runner such as pytest_. A trusted replacement is :ref:`twine`: -* ``python -m twine check`` -* ``python -m twine register`` -* ``python -m twine upload`` +* ``python -m twine check --strict dist/*`` +* ``python -m twine register dist/*.whl`` [#not-pypi]_ +* ``python -m twine upload dist/*`` + +.. [#not-pypi] Not necessary, nor supported on :term:`PyPI `. + But might be necessary on other :term:`package indexes `. ``python setup.py --version`` @@ -110,7 +113,7 @@ A trusted replacement is :ref:`twine`: A possible replacement solution (among others) is to rely on setuptools-scm_: -* ``python -m setuptools-scm`` +* ``python -m setuptools_scm`` .. _setuptools-scm: https://setuptools-scm.readthedocs.io/en/latest/usage/#as-cli-tool From b53baf2057fecb077a3af765c33cc9c0542df4bc Mon Sep 17 00:00:00 2001 From: sinoroc <5529267+sinoroc@users.noreply.github.com> Date: Tue, 5 Dec 2023 17:44:03 +0100 Subject: [PATCH 2/2] Update source/discussions/setup-py-deprecated.rst Co-authored-by: chrysle --- source/discussions/setup-py-deprecated.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/discussions/setup-py-deprecated.rst b/source/discussions/setup-py-deprecated.rst index 279e4abce0..c4d7258b4d 100644 --- a/source/discussions/setup-py-deprecated.rst +++ b/source/discussions/setup-py-deprecated.rst @@ -105,7 +105,7 @@ A trusted replacement is :ref:`twine`: * ``python -m twine upload dist/*`` .. [#not-pypi] Not necessary, nor supported on :term:`PyPI `. - But might be necessary on other :term:`package indexes `. + But might be necessary on other :term:`package indexes ` (for example :ref:`devpi`). ``python setup.py --version``