Set up a development virtual environment.
$ python3 -m venv .venv
$ source env/bin/activate
$ pip install --editable .[dev,test]A agio entry point script is installed in your virtual environment.
$ which agio
/Users/awdeorio/src/mailmerge/.venv/bin/agioRun unit tests
$ pytest
$ pytest -vv --log-cli-level=DEBUG # More outputMeasure unit test case coverage
$ pytest --cov ./agiocli --cov-report term-missingTest code style
$ pycodestyle agiocli tests setup.py
$ pydocstyle agiocli tests setup.py
$ pylint agiocli tests setup.py
$ check-manifestRun linters and tests in a clean environment. This will automatically create a temporary virtual environment.
$ tox -e py3Update your local develop branch. Make sure it's clean.
$ git fetch
$ git checkout develop
$ git rebase
$ git statusTest
$ tox -e py3Update version
$ $EDITOR setup.py
$ git commit -m "version bump" setup.py
$ git push origin developUpdate main branch
$ git fetch
$ git checkout main
$ git rebase
$ git merge --no-ff origin/developBuild distribution binary and source tarball locally
$ rm -rf dist
$ python3 setup.py sdist bdist_wheel
$ ls dist
agiocli-0.1.0-py3-none-any.whl agiocli-0.1.0.tar.gzTag a release
$ git tag -a X.Y.Z
$ grep version= setup.py
version="X.Y.Z",
$ git describe
X.Y.Z
$ git push --tags origin mainDeploy to Test PyPI, then browse to https://test.pypi.org/project/agiocli/
$ twine upload --sign --repository-url https://test.pypi.org/legacy/ dist/*Test install. It will install, but not run because we didn't install deps.
$ python3 -m venv testenv
$ source testenv/bin/activate
$ pip install --index-url https://test.pypi.org/simple/ --no-deps agiocli
$ agio --version # Expect module not found error
$ deactivateDeploy to PyPI, then browse to https://pypi.org/project/agiocli/
$ twine upload --sign dist/*Test install from new PyPI deploy
$ pip3 install --upgrade agiocli
$ agio --version
agio, version X.Y.ZDraft a new release on GitHub https://github.com/eecs485staff/agio-cli/releases/new