Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.28 KB

DEVELOPMENT.md

File metadata and controls

66 lines (44 loc) · 1.28 KB

yogit

Unittests

CI

Run by Travis CI and Azure Pipelines.

Local run

pip3 install -r requirements/tests.txt

Run unittests: pytest -vv -s yogit/tests

Check code coverage: pytest --cov=yogit yogit/tests

Code sanity

Coding style is handled by black (via ci/blackify). Static checks are handled by pylint (via ci/pylintify).

You must pip3 install -r requirements/codesanity.txt to use those scripts.

Note: continuous integration does not check code sanity.

Release procedure

  • Bump version
  • Update CHANGELOG.md
  • Push a new tag

Publish via TravisCI

TravisCI automatically publish yogit on PyPI when a tag is pushed.

Password in .travis.yml has been encrypted with:

travis encrypt <password> --add deploy.password

Publish manually

  • Deploy on Test PyPI
pip3 uninstall yogit
git clean -d --force --dry-run
git clean -d --force
python3 setup.py sdist
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
pip3 install --index-url https://test.pypi.org/simple/ --no-deps yogit
yogit --help
python3 -c "import yogit"
  • Deploy on PyPI
pip3 uninstall yogit
git clean -d --force --dry-run
git clean -d --force
python3 setup.py sdist
twine upload dist/*
pip3 install yogit
yogit --help
python3 -c "import yogit"