Skip to content

Commit

Permalink
Add maintainer and release checklists to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brainwane committed Mar 8, 2018
1 parent 7f0a452 commit c7b1ee5
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions docs/contributing.rst
Expand Up @@ -110,6 +110,83 @@ uploaded to (which the user can specify either as a default, in the
:file:`.pypirc` file, or pass on the command line), and the methods
that upload the package securely to a URL.

Adding a maintainer
-------------------

A checklist for adding a new maintainer to the project.

#. Add her as a Member in the GitHub repo settings. (This will also
give her privileges on the `Travis CI project
<https://travis-ci.org/pypa/twine>`_.)
#. Get her Test PyPI and canon PyPI usernames and add her as a
Maintainer on `our Test PyPI project
<https://test.pypi.org/manage/project/twine/collaboration/>`_ and
`canon PyPI
<https://pypi.org/manage/project/twine/collaboration/>`_.


Making a new release
--------------------

A checklist for creating, testing, and distributing a new version.

#. Choose a version number, e.g., "1.10."

#. Merge the last planned PR before the new release:

#. Add new changes to :file:`docs/changelog.rst`.
#. Update the ``__version__`` string in :file:`twine/__init__.py`,
which is where :file:`setup.py` pulls it from, with `{number}rc1`
for "release candidate 1".
#. Update copyright dates.

#. Run tests:

#. Use guidance in `#314 <https://github.com/pypa/twine/pull/314>`_
to test against pypiserver, devpi, and zest.releaser.
#. ``tox -e py{27,34,35,36}``
#. ``tox -e pep8``
#. ``tox -e docs`` (this checks the Sphinx docs and uses
``readme_renderer`` to check that the ``long_description`` and other
metadata will render fine on the PyPI description)

#. Create a git tag with ``git tag -sam 'Release v{number}' {number}``.

* ``{number}``, such as ``1.10.1rc1``
* ``-s`` signs it with your PGP key
* ``-a`` creates an annotated tag for GitHub
* ``-m`` adds the message; optional if you want to compose a longer
message

#. View your tag: ``git tag -v {number}``
#. Push your tag: ``git push upstream {number}``.
#. Delete old distributions: ``rm dist/*``.
#. Create distributions with ``python setup.py sdist bdist_wheel``.
#. Set your TestPyPI and canon PyPI credentials in your session with
``keyring`` (docs forthcoming).
#. Upload to Test PyPI: :command:`twine upload --repository-url
https://test.pypi.org/legacy/ --skip-existing dist/*`
#. Verify that everything looks good, downloads ok, etc. Make needed fixes.
#. Merge the last PR before the new release:

#. Add new changes and new release to :file:`docs/changelog.rst`,
with the new version `{number}`, this time without the ``rc1`` suffix.
#. Update the ``__version__`` string in :file:`twine/__init__.py`
with `{number}`.

#. Run tests again. Check the changelog to verify that it looks right.
#. Create a new git tag with ``git tag -sam 'Release v{number}' {number}``.
#. View your tag: ``git tag -v {number}``
#. Push your tag: ``git push upstream {number}``.
#. Delete old distributions: ``rm dist/*``.
#. Create distributions with ``python setup.py sdist bdist_wheel``.
#. On a Monday or Tuesday, upload to canon PyPI: :command:`twine
upload --skip-existing dist/*`

.. note:: Will be replaced by ``tox -e release`` at some point.
#. Send announcement email to `pypa-dev mailing list`_ and celebrate.


Future development
------------------

Expand Down

0 comments on commit c7b1ee5

Please sign in to comment.