summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorThomas Waldmann <tw@waldmann-edv.de>2019-02-01 21:57:47 +0100
committerThomas Waldmann <tw@waldmann-edv.de>2019-02-01 22:07:49 +0100
commitf7525156c1ca488c8f7be0bd9500788112a2abfb (patch)
treebfa5ba5eff446a946c44cd18e01dec3839aa047f /scripts
parent266fb02b9dc5377b242f58546e54597c06b5ef5d (diff)
update release workflow using twine (docs, scripts), see #42131.2.0a1
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release2
-rwxr-xr-xscripts/sdist-sign20
-rwxr-xr-xscripts/upload-pypi18
3 files changed, 38 insertions, 2 deletions
diff --git a/scripts/release b/scripts/release
deleted file mode 100755
index a67a77560..000000000
--- a/scripts/release
+++ /dev/null
@@ -1,2 +0,0 @@
-python setup.py register sdist upload --identity="Thomas Waldmann" --sign
-
diff --git a/scripts/sdist-sign b/scripts/sdist-sign
new file mode 100755
index 000000000..50758a30a
--- /dev/null
+++ b/scripts/sdist-sign
@@ -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
diff --git a/scripts/upload-pypi b/scripts/upload-pypi
new file mode 100755
index 000000000..db0ef45f3
--- /dev/null
+++ b/scripts/upload-pypi
@@ -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