Skip to content

Commit

Permalink
Upload signed packages to PyPI with twine (readthedocs#651)
Browse files Browse the repository at this point in the history
* Upload signed packages to PyPI with twine

* Delete previous distributions
  • Loading branch information
davidfischer authored and Blendify committed Aug 23, 2018
1 parent 4fc72d9 commit 74ba4b2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,14 @@ you should do the following:
#. Commit that change.
#. Tag the release in git: ``git tag $NEW_VERSION``.
#. Push the tag to GitHub: ``git push --tags origin``.
#. Upload the package to PyPI: ``python setup.py sdist bdist_wheel upload``.
#. Upload the package to PyPI:

.. code:: bash
$ rm -rf dist/
$ python setup.py sdist bdist_wheel
$ twine upload --sign --identity [email protected] dist/*
#. In the ``readthedocs.org`` repo, edit the ``bower.json`` file to point at the correct version
(``sphinx-rtd-theme": "https://github.com/rtfd/sphinx-rtd-theme.git#$NEW_VERSION"``).
#. In the ``readthedocs.org`` repo, run ``gulp build`` to update the distributed theme files.

0 comments on commit 74ba4b2

Please sign in to comment.