Skip to content

Commit

Permalink
Merge pull request #1429 from sinoroc/fix-discussion-setup-py-deprecated
Browse files Browse the repository at this point in the history
Fix bits of "Is `setup.py` deprecated?" discussion
  • Loading branch information
webknjaz authored Dec 5, 2023
2 parents 4be5230 + b53baf2 commit 9265361
Showing 1 changed file with 7 additions and 4 deletions.
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>` (for example :ref:`devpi`).
``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

0 comments on commit 9265361

Please sign in to comment.