Skip to content

Commit 82d0557

Browse files
add scripts for sdist, sign, pypi upload
1 parent 22ce11e commit 82d0557

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

scripts/sdist-sign

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
R=$1
4+
5+
if [ "$R" = "" ]; then
6+
echo "Usage: sdist-sign 1.2.3"
7+
exit
8+
fi
9+
10+
if [ "$QUBES_GPG_DOMAIN" = "" ]; then
11+
GPG=gpg
12+
else
13+
GPG=qubes-gpg-client-wrapper
14+
fi
15+
16+
python -m build
17+
18+
D=dist/emeraldtree-$R.tar.gz
19+
20+
$GPG --detach-sign --local-user "Thomas Waldmann" --armor --output "$D.asc" "$D"

scripts/upload-pypi

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
R=$1
4+
5+
if [ "$R" = "" ]; then
6+
echo "Usage: upload-pypi 1.2.3 [test]"
7+
exit
8+
fi
9+
10+
if [ "$2" = "test" ]; then
11+
export TWINE_REPOSITORY=testpypi
12+
else
13+
export TWINE_REPOSITORY=pypi
14+
fi
15+
16+
D=dist/emeraldtree-$R.tar.gz
17+
18+
twine upload --repository=emeraldtree "$D"

0 commit comments

Comments
 (0)