Skip to content

Commit

Permalink
chore: Readying for deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
devbisme committed Jul 22, 2022
1 parent fbba021 commit 91f2d59
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
9 changes: 9 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail

rm -f dist/*.gz
python setup.py sdist
python -m twine check dist/*
python -m twine upload {posargs:-- --repository pypi} {toxinidir}/dist/*
git tag -f `kipart -v | cut -d' ' -f2`
git push
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ deps =
# ^ requirements.txt shared with Read The Docs
# This causes doctests to fail. Don't know why.
whitelist_externals =
python
make
commands =
docs: python {toxinidir}/setup.py sdist
Expand All @@ -35,14 +36,14 @@ passenv =
deps = twine
whitelist_externals =
rm
python
git
commands =
rm -f {toxinidir}/dist/*.gz
python {toxinidir}/setup.py sdist
python -m twine check dist/*
publish_test: python -m twine upload {posargs:--repository testpypi} dist/*
publish_public: python -m twine upload {posargs:-- --repository pypi} dist/*
publish_public: git tag -f `kipart -v | cut -d' ' -f2`
publish_public: git push
python -m twine check {toxinidir}/dist/*
publish_test: python -m twine upload {posargs:--repository testpypi} {toxinidir}/dist/*
publish_public: python -m twine upload {posargs:-- --repository pypi} {toxinidir}/dist/*

[testenv:install_test]
description =
Expand Down

0 comments on commit 91f2d59

Please sign in to comment.