Since the PyPI package supports Python 3.12 (requires-python = ">=3.12.0"), verify that the backend tests pass under Python 3.12 before releasing:
pixi run test-py312To view the current version:
pixi run versionTo bump the minor version:
pixi run version minorYou can also specify "major", "patch", or a specific version like "2.1.0". See the docs on hatch-nodejs-version for more details.
Make sure to do a clean build before building the package for release:
./clean.sh
pixi run dev-installThe version command updated the package.json and the clean build updated the package-lock.json file. Make sure to check these changes into the main branch.
Build the distribution bundle:
pixi run pypi-buildTo upload the package to the PyPI, you'll need one of the project owners to add you as a collaborator. After setting up your access token, do:
pixi run pypi-uploadThe new version should now be available on PyPI.
Now draft a new release. Create a new tag that is the same as the version number, and set the release title to the same (e.g. "1.0.0". Click on "Generate release notes" and make any necessary edits. Ideally, you should include any release notes from the associated fileglancer-central release.