If you find errors, omissions, inconsistencies or other things that need improvement, please create an issue or a pull request at https://github.com/sfstoolbox/sfs-python/. Contributions are always welcome!
Instead of installing the latest release from PyPI, you should get the newest development version from Github:
git clone https://github.com/sfstoolbox/sfs-python.git cd sfs-python uv sync
If you make changes to the documentation, you can re-create the HTML pages
using Sphinx. From the main sfs-python directory, run:
uv run sphinx-build doc _build
The generated files will be available in the directory _build/.
You'll need pytest, which will be installed automatically. To execute the tests, simply run:
uv run pytest
If you want to work in a different directory on your own files,
but using the latest development version (or a custom branch) of
the sfs module, you can switch to a directory of your choice
and enter this:
uv init --bare uv add --editable --no-workspace path/to/your/sfs/repo
You can install further packages with uv add and then run
whatever you need with uv run.
These steps for creating a new release are proposed to be taken only after ensuring that CI (unit tests, sphinx for RTD, build of wheel and source distribution) raised no errors.
- Bump version number in
sfs/__init__.py - Update
NEWS.rst - Commit those changes as "Release x.y.z"
- Create an (annotated) tag with
git tag -a x.y.z - Push the commit and the tag to Github
- The workflow
.github/workflows/publish.ymlwill handle the build and the upload to PyPI - Add release notes containing a link to PyPI and the bullet points
from the updated
NEWS.rst - Select the new release as the default on RTD