Skip to content

Commit c14aa35

Browse files
committed
Sign release packages and tags with GnuPG
1 parent 842d260 commit c14aa35

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,21 @@ clean:
2929
build:
3030
python setup.py sdist bdist_wheel
3131

32+
sign-build: build
33+
(\
34+
cd dist; \
35+
rm -f *.asc; \
36+
for a in *.whl *.gz; do \
37+
gpg --armor --detach-sign "$$a"; \
38+
done)
39+
3240
upload:
3341
twine upload dist/*
3442

3543
tag:
36-
git tag $$(python setup.py --version)
44+
git tag -s $$(python setup.py --version)
3745

38-
release: clean build upload tag
46+
release: clean build sign-build upload tag
3947

4048
.PHONY: format \
4149
dev install \

0 commit comments

Comments
 (0)