-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- sdist / sign - support GPG, even with Qubes OS - use twine for pypi upload
- Loading branch information
1 parent
1a02401
commit bd1bf26
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |