Skip to content

Commit

Permalink
Merge pull request #4303 from ThomasWaldmann/twine-1.1
Browse files Browse the repository at this point in the history
update release workflow using twine (docs, scripts), see #4213
  • Loading branch information
ThomasWaldmann authored Feb 2, 2019
2 parents 532a594 + 630909d commit c7ad4f1
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,11 @@ Checklist:
do a fresh start based on that.
- run tox and/or binary builds on all supported platforms via vagrant,
check for test failures
- create a release on PyPi::
- create sdist, sign it, upload release to (test) PyPi::

python setup.py register sdist upload --identity="Thomas Waldmann" --sign
scripts/sdist-sign X.Y.Z
scripts/upload-pypi X.Y.Z test
scripts/upload-pypi X.Y.Z

- close release milestone on Github
- announce on:
Expand Down
1 change: 1 addition & 0 deletions requirements.d/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ pytest-xdist
pytest-cov
pytest-benchmark
Cython!=0.27
twine
2 changes: 0 additions & 2 deletions scripts/release

This file was deleted.

20 changes: 20 additions & 0 deletions scripts/sdist-sign
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

R=$1

if [ "$R" = "" ]; then
echo "Usage: sdist-sign 1.2.3"
exit
fi

if [ "$QUBES_GPG_DOMAIN" = "" ]; then
GPG=gpg
else
GPG=qubes-gpg-client-wrapper
fi

python setup.py sdist

D=dist/borgbackup-$R.tar.gz

$GPG --detach-sign --local-user "Thomas Waldmann" --armor --output $D.asc $D
18 changes: 18 additions & 0 deletions scripts/upload-pypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

R=$1

if [ "$R" = "" ]; then
echo "Usage: upload-pypi 1.2.3 [test]"
exit
fi

if [ "$2" = "test" ]; then
export TWINE_REPOSITORY_URL=https://test.pypi.org/legacy/
else
export TWINE_REPOSITORY_URL=
fi

D=dist/borgbackup-$R.tar.gz

twine upload $D.asc $D

0 comments on commit c7ad4f1

Please sign in to comment.