Contributing#
Issues#
Report bugs and ask for features on the issue tracker.
For a bug, give the code that reproduces it and the output of xoa info versions.
Pull requests#
Branch from
developand open the pull request against it.Install the pre-commit hooks (
pre-commit install), which runrufflike the CI.Add tests and run
pytest.Squash feature pull requests into
develop: one commit per pull request.Document user visible changes in
CHANGES.rstunderUnreleased, and list new modules inapi.rst.Follow the
CODE_OF_CONDUCT.rst.
How to release#
The version comes from the git tag (setuptools-scm) and follows YYYY.M.patch.
Title the
Unreleasedchanges ofCHANGES.rstwith the version, and leave an emptyUnreleasedabove.Merge a
Version YYYY.M.patchpull request fromdeveloptomainwith a merge commit, not a squash: a squash would leavemainout of the history ofdevelopand the next release pull request would show conflicts.Tag the merge commit and push the tag:
git tag -a vYYYY.M.patch -m "Version YYYY.M.patch" git push origin vYYYY.M.patch
Create a GitHub release from the tag, with the notes of
CHANGES.rst: it runs the workflow that publishes to PyPI:python bin/release_notes.py YYYY.M.patch | gh release create vYYYY.M.patch --notes-file -
Check Read the Docs and merge the pull request of the conda-forge feedstock.
Merge
mainback intodevelop: a fast-forward, unlessmainreceived other commits. It keeps the tag reachable fromdevelopfor the dev versions.