Skip to content

Commit

Permalink
add release scripts
Browse files Browse the repository at this point in the history
- sdist / sign
- support GPG, even with Qubes OS
- use twine for pypi upload
  • Loading branch information
ThomasWaldmann committed Nov 8, 2020
1 parent 1a02401 commit bd1bf26
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
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/moin-$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/moin-$R.tar.gz

twine upload $D.asc $D

0 comments on commit bd1bf26

Please sign in to comment.