Skip to content

Commit 9265361

Browse files
authored
Merge pull request #1429 from sinoroc/fix-discussion-setup-py-deprecated
Fix bits of "Is `setup.py` deprecated?" discussion
2 parents 4be5230 + b53baf2 commit 9265361

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

source/discussions/setup-py-deprecated.rst

+7-4
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,20 @@ The recommendation is to use a test runner such as pytest_.
100100

101101
A trusted replacement is :ref:`twine`:
102102

103-
* ``python -m twine check``
104-
* ``python -m twine register``
105-
* ``python -m twine upload``
103+
* ``python -m twine check --strict dist/*``
104+
* ``python -m twine register dist/*.whl`` [#not-pypi]_
105+
* ``python -m twine upload dist/*``
106+
107+
.. [#not-pypi] Not necessary, nor supported on :term:`PyPI <Python Package Index (PyPI)>`.
108+
But might be necessary on other :term:`package indexes <package index>` (for example :ref:`devpi`).
106109
107110
108111
``python setup.py --version``
109112
-----------------------------
110113

111114
A possible replacement solution (among others) is to rely on setuptools-scm_:
112115

113-
* ``python -m setuptools-scm``
116+
* ``python -m setuptools_scm``
114117

115118
.. _setuptools-scm: https://setuptools-scm.readthedocs.io/en/latest/usage/#as-cli-tool
116119

0 commit comments

Comments
 (0)