File: creating_release.rst

package info (click to toggle)
python-rfc3161ng 2.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 200 kB
  • sloc: python: 597; makefile: 3
file content (46 lines) | stat: -rw-r--r-- 834 bytes parent folder | download | duplicates (2)
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
==================
Creating a release
==================

:synopsis: Creating a rfc3161ng release


How to make a new release
-------------------------

Run tests::

    $ tox -r

Change version numbers in `setup.py` and `rfc3161ng/__init__.py`::

    $ vi setup.py
    $ vi rfc3161ng/__init__.py
    $ git commit -m 'v2.0.0' setup.py rfc3161ng/__init__.py

Tag it:

    $ git tag 2.0.0

Remove old build directory (if exists)::

    $ rm -r build dist

Prepare the release tarball::

    $ python ./setup.py sdist bdist_wheel

Upload release to pypi::

    $ twine upload -s dist/*

Bumb version number to new in-development pre version::

    $ vi setup.py
    $ vi rfc3161ng/__init__.py
    $ git commit -m 'bumped version number' setup.py rfc3161ng/__init__.py

Push changes back to github::

    $ git push --tags
    $ git push