Skip to content
Merged
Changes from all commits
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
24 changes: 10 additions & 14 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,31 +80,31 @@ Create a ``.pypirc`` file with your production and test server accounts in your
testpypi

[testpypi]
repository = https://testpypi.python.org/pypi
repository = https://test.pypi.org/legacy/
username = <username>
password = <password>

[pypi]
repository = https://pypi.python.org/pypi
repository = https://upload.pypi.org/legacy/
username = <username>
password = <password>


Note that ``testpypi`` and ``pypi`` require separate registration.

Testing Publication
-----------------
-------------------

1. Ensure you have tagged the master repository according to the tagging
instructions above.

2. Register the package::
2. Package source and wheel distributions::

python setup.py register -r testpypi
python setup.py sdist bdist_wheel

3. Package source and wheel distributions::
3. Check format::

python setup.py sdist bdist_wheel
twine check dist/*

4. Upload to PyPI with twine::

Expand All @@ -118,16 +118,12 @@ Publishing
-----------

1. Ensure you have tagged the master repository according to the tagging
instructions above.
instructions above, testing publication before publication.

2. Register the package::

python setup.py register -r pypi

3. Package source and wheel distributions::
2. Package source and wheel distributions::

python setup.py sdist bdist_wheel

4. Upload to PyPI with twine::
3. Upload to PyPI with twine::

twine upload dist/* -r pypi