Skip to content

Commit

Permalink
Merge pull request #13 from ThomasWaldmann/release-scripts
Browse files Browse the repository at this point in the history
add scripts for sdist, sign, pypi upload
  • Loading branch information
ThomasWaldmann authored Apr 5, 2024
2 parents 22ce11e + 82d0557 commit 4d9f45d
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 -m build

D=dist/emeraldtree-$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=testpypi
else
export TWINE_REPOSITORY=pypi
fi

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

twine upload --repository=emeraldtree "$D"

0 comments on commit 4d9f45d

Please sign in to comment.