Skip to content
Merged
Changes from 1 commit
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
11 changes: 7 additions & 4 deletions source/discussions/setup-py-deprecated.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,20 @@ 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 <Python Package Index (PyPI)>`.
But might be necessary on other :term:`package indexes <package index>`.


``python setup.py --version``
-----------------------------

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

Expand Down