File: release.rst

package info (click to toggle)
jupyter-console 6.6.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 328 kB
  • sloc: python: 1,136; makefile: 168
file content (62 lines) | stat: -rw-r--r-- 1,551 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.. _jupyter_console_release:

Making a release as a maintainer
================================

This document guides a maintainer through creating a release of the Jupyter
console.

Clean the repository
--------------------

Remove all non-tracked files with:

.. code:: bash

    git clean -xfdi

This will ask you for confirmation before removing all untracked files. Make
sure the ``dist/`` folder is clean and does not contain any stale builds from
previous attempts.

Create the release
------------------

#. Set Environment variables

    Set environment variables to document current release version, and git tag:

    .. code:: bash

        VERSION=4.1.0

#.  Update version number in ``jupyter_console/_version.py``. Make sure that
    a valid `PEP 440 <https://www.python.org/dev/peps/pep-0440/>`_ version is
    being used.

#.  Commit and tag the release with the current version number:

    .. code:: bash

        git commit -am "release $VERSION"
        git tag $VERSION

#.  You are now ready to build the ``sdist`` and ``wheel``:

    .. code:: bash

        python setup.py sdist --formats=gztar
        python setup.py bdist_wheel

#.  You can now test the ``wheel`` and the ``sdist`` locally before uploading
    to PyPI. Make sure to use `twine <https://github.com/pypa/twine>`_ to
    upload the archives over SSL.

    .. code:: bash

        twine upload dist/*

#.  If all went well, change the ``jupyter_console/_version.py`` to the next
    release.

#.  Push directly on master, not forgetting to push ``--tags`` too.