Skip to content

Latest commit

 

History

History
78 lines (55 loc) · 2.74 KB

README.md

File metadata and controls

78 lines (55 loc) · 2.74 KB

Cake It

pie-utils

PyTorch-IE

Tests Codecov pre-commit Black

A collection of utilities to ease the usage of pytorch-ie.

Setup

pip install git+https://github.com/ArneBinder/pie-utils.git

or

pip install git+ssh://[email protected]/ArneBinder/pie-utils.git

or add this to your requirements.txt:

git+https://github.com/ArneBinder/pie-utils

Note: You can specify a specific version by appending a version tag @v<version> to the URL, e.g. git+https://github.com/ArneBinder/[email protected].

Development

Setup

git clone https://github.com/ArneBinder/pie-utils
cd pie-utils
pip install -e ".[dev]"

Code Formatting, Linting and Static Type Checking

pre-commit run -a

Testing

run all tests with coverage:

pytest --cov --cov-report term-missing

Releasing

  1. create a branch release from the main branch
  2. bump the version in setup.py. If the release contains new features, or breaking changes, bump the minor version (this project has no main release yet). If the release contains only bugfixes, bump the patch version. See Semantic Versioning for more information.
  3. commit and push the changes
  4. create a pull request from release to main
  5. wait for the CI to pass
  6. merge the pull request and delete the release branch (this is important, because otherwise the next release will fail)
  7. create a new release on GitHub via the "Releases" tab and click on "Draft a new release".
    1. Click on "Choose a tag" and create a new one which should be the same as the version in setup.py, but prefixed with v, e.g. v0.6.1 for version 0.6.1.
    2. You can choose an appropriate release title.
    3. Click on "Generate release notes" to generate the release notes from the pull request descriptions.
    4. When everything looks fine, click on "Publish release" to publish the release.