Upload signed packages to PyPI with twine (#651)

* Upload signed packages to PyPI with twine

* Delete previous distributions
This commit is contained in:
David Fischer 2018-08-23 14:56:43 -07:00 committed by Aaron Carlisle
parent 4fc72d97ed
commit 74ba4b29fb

View File

@ -80,7 +80,14 @@ you should do the following:
#. Commit that change. #. Commit that change.
#. Tag the release in git: ``git tag $NEW_VERSION``. #. Tag the release in git: ``git tag $NEW_VERSION``.
#. Push the tag to GitHub: ``git push --tags origin``. #. 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 security@readthedocs.org dist/*
#. In the ``readthedocs.org`` repo, edit the ``bower.json`` file to point at the correct version #. 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"``). (``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. #. In the ``readthedocs.org`` repo, run ``gulp build`` to update the distributed theme files.