mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-03 05:35:58 +00:00
update release workflow using twine (docs, scripts), see #4213
This commit is contained in:
parent
266fb02b9d
commit
f7525156c1
5 changed files with 43 additions and 4 deletions
|
@ -333,9 +333,11 @@ Checklist:
|
||||||
do a fresh start based on that.
|
do a fresh start based on that.
|
||||||
- run tox and/or binary builds on all supported platforms via vagrant,
|
- run tox and/or binary builds on all supported platforms via vagrant,
|
||||||
check for test failures
|
check for test failures
|
||||||
- create a release on PyPi::
|
- create sdist, sign it, upload release to (test) PyPi::
|
||||||
|
|
||||||
python setup.py register sdist upload --identity="Thomas Waldmann" --sign
|
scripts/sdist-sign X.Y.Z
|
||||||
|
scripts/upload-pypi X.Y.Z test
|
||||||
|
scripts/upload-pypi X.Y.Z
|
||||||
|
|
||||||
- close the release milestone on GitHub
|
- close the release milestone on GitHub
|
||||||
- announce on:
|
- announce on:
|
||||||
|
|
|
@ -8,3 +8,4 @@ pytest-xdist
|
||||||
pytest-cov
|
pytest-cov
|
||||||
pytest-benchmark
|
pytest-benchmark
|
||||||
Cython!=0.27
|
Cython!=0.27
|
||||||
|
twine
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
python setup.py register sdist upload --identity="Thomas Waldmann" --sign
|
|
||||||
|
|
20
scripts/sdist-sign
Executable file
20
scripts/sdist-sign
Executable file
|
@ -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
|
18
scripts/upload-pypi
Executable file
18
scripts/upload-pypi
Executable file
|
@ -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
|
Loading…
Reference in a new issue