Skip to content

Commit 2c6b0a6

Browse files
committed
Update publishing notes.
1 parent 8a0f8b0 commit 2c6b0a6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

CONTRIBUTING.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,18 @@ Release Process
3535
To ensure a clean `package <https://pypi.org/project/PyLD/>`_ upload to PyPI_,
3636
use a clean checkout, and run the following:
3737

38+
* For more info, look at the packaging
39+
`guide <https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/>`_.
40+
* Setup an `API token <https://pypi.org/help/#apitoken>`_. Recommend using a
41+
specific "PyLD" token and set it up as a "repository" in your
42+
`~/.pypirc <https://packaging.python.org/en/latest/specifications/pypirc/>`_
43+
for use in the upload command.
44+
* The below builds and uploads a sdist and wheel. Adjust as needed depending
45+
on how you manage and clean "dist/" dir files.
3846
* ``git checkout {version}``
39-
* ``python setup.py sdist upload``
47+
* ``python3 -m build``
48+
* ``twine check dist/*``
49+
* ``twine upload -r PyLD dist/*``
4050

4151
Implementation Report Process
4252
-----------------------------

0 commit comments

Comments
 (0)