Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.05 KB

RELEASE.md

File metadata and controls

47 lines (30 loc) · 1.05 KB

Making a new release of duetector

Manual release

Python package

This project can be distributed as Python packages. Before generating a package, we first need to install build.

pip install build twine hatch

Bump the version using hatch.

hatch version <new-version>

To create a Python source package (.tar.gz) and the binary package (.whl) in the dist/ directory, do:

rm -rf dist/*
python -m build

python setup.py sdist bdist_wheel is deprecated and will not work for this package.

Then to upload the package to PyPI, do:

twine upload dist/*

Github Action release

Python package and Docker image

The version number needs to be changed manually before proceeding with the release.

hatch version <new-version>

Once there is a release, Github Action will automatically publish docker image based on the tag.

If it's a pre-release release, the latest version of the image will not be released.