-
Install Git LFS
-
Install Python 3.10 (Consider using pyenv for that).
-
Install Poetry.
-
Create virtual environment and install dependencies:
poetry install
-
Activate virtual environment:
poetry shell
-
Install pre-commit hooks:
pre-commit install
-
(Optional) Logging to the HuggingFace Hub in order to download some of the required datasets and models:
huggingface-cli login
We use bump-my-version to bump the package's version number and to create a commit and tag for that change.
Use bump-my-version show-bump
to visualize potential versioning paths from the current version:
$ bump-my-version show-bump
0.1.0-dev0 ── bump ─┬─ major ─ 1.0.0-dev0
├─ minor ─ 0.2.0-dev0
├─ patch ─ 0.1.1-dev0
├─ pre_l ─ 0.1.0
╰─ pre_n ─ 0.1.0-dev1
Use the --dry-run
flag at first with each command to confirm that the changes will be correct.
-
If this is not a patch release, then bump the minor or the major version number first:
bump-my-version bump --verbose <VERSION PART>
Where
<VERSION PART>
is eitherminor
ormajor
depending on the release type.Use the
--dry-run
flag at first to confirm that the changes will be correct. -
Switch from development to release version, commit the change and create a tag:
bump-my-version bump --verbose --commit --tag pre_l
This will:
- Remove the
-devXX
suffix from the current version number, e.g.0.1.0-dev0
->0.1.0
- Create a commit for the change with a default message
- Create a tag for this commit
Use the
--dry-run
flag at first to confirm that the changes will be correct. - Remove the
-
Create Github release with description extracted from the CHANGELOG.md from and with the License file attached.
-
Make sure CI was triggered and package was pushed to PyPI.
-
Switch from release to development version:
bump-my-version bump --commit --verbose patch
This will bump the patch part of the version and add the
-dev0
suffix, e.g.0.1.0
->0.1.1-dev0
Use the
--dry-run
flag at first to confirm that the changes will be correct. -
Add new
## Unreleased
section to CHANGELOG.md to prepare for the next release.