File: how-to-release.rst

package info (click to toggle)
scikit-misc 0.1.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 960 kB
  • sloc: fortran: 2,217; python: 2,023; ansic: 1,352; sh: 138; makefile: 97; javascript: 60
file content (78 lines) | stat: -rw-r--r-- 1,608 bytes parent folder | download
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
##############
How to release
##############

Testing
=======

* `cd` to the root of project and run
  ::

    make test

* Or, to test in all environments
  ::

    tox

* Once all the tests pass move on


Tagging
=======

Check out the master branch, tag with the version number & push the tags

  ::

    git checkout master
    git tag -a v0.1.0 -m 'Version: 0.1.0'
    git push upstream --tags

Note the `v` before the version number.


Build Wheels
============
Clone/cd into the wheels repository, edit `.github/workflows/wheels.yml` to point
to the version. i.e.

  ::

    git clone https://github.com/has2k1/scikit-misc-wheels  # (optional)
    cd scikit-misc-wheels
    git submodule foreach 'git fetch --all; git reset --hard origin/master'

    # Edit .github/workflows/wheels.yml and set the version e.g.
    #     - BUILD_COMMIT: v0.1.0

    git commit -a -m 'Version: 0.1.0'
    git push origin --tags

Check `Github Actions <https://github.com/has2k1/scikit-misc-wheels/actions>`_ to confirm
that all the builds for the last commit pass. Debug as necessary, then continue
below.


Release
=======

* Make sure your `.pypirc` file is setup
  `correctly <http://docs.python.org/2/distutils/packageindex.html>`_.
  ::

    cat ~/.pypirc

* Release

  ::

    make release

Documentation
=============

When a release is tagged and pushed to github, a Github Action builds the
[documentation](https://has2k1.github.io/scikit-misc/) and automatically
pushes it to the [gh-pages](https://github.com/has2k1/scikit-misc/tree/gh-pages) branch.
See `tools/deploy_documentation.sh` for how it happens.