Debian Codegraph @

dev_notes.org

raw
1
2
3 * To make a release:
4
5 ** Increment version number
6 Currently the version number is hard-coded in the following locations:
7
8 ./doc/conf.py
9 ./pyproject.toml
10 ./meson.build
11 ./skfmm/__init__.py
12 ./README.txt
13
14 The version number format is YYYY.MM.DD with leading zeros
15
16 ** Tag the release
17
18 $ git tag YYYY.MM.DD
19 $ git push --tags origin master
20
21 ** Build the documentation
22
23 To build the documentation you need Sphinx and the numpydoc Sphinx
24 extension
25
26 $ make html
27
28 check that everything looks ok by opening build/html/index.html
29
30 the documentation should build automatically on RTD.
31
32 Check https://scikit-fmm.readthedocs.io/en/latest/ trigger a build if needed.
33
34 ** Upload to PyPI
35
36 make sure you have twine installed with:
37
38 $ pip install twine
39
40 One the final commit has been made, wait for the GitHub workflow
41 builds to finish. Make sure all the tests pass on all the platforms.
42
43 Copy the build artifacts from the GitHub actions to dist/
44
45 $ twine upload dist/*
46
47 * Cython Wrapper for heap class
48
49 The binary min heap C++ class has a Cython wrapper to expose it to
50 Python. Cython is not required to build this module as the c++ files
51 created by Cython are checked into the git repo. If changes are made
52 to skfmm/heap.h or skfmm/heap.cpp the Cython c++ file pheap.cpp needs
53 to be updated. This is done with the command:
54
55 $ cython3 --cplus -3 pheap.pyx
56
57 The updates pheap.cpp should also be checked into the git repo