aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/Makefile.am
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-07-12 14:20:35 +0000
committerJustus Winter <[email protected]>2016-07-12 16:34:12 +0000
commit57b51685528153f5a50ab0999feec25c83190501 (patch)
treeba32f178a3402a97f705e47516e06105bf3e1412 /lang/python/Makefile.am
parentm4: Don't set fpic for qt on windows (diff)
downloadgpgme-57b51685528153f5a50ab0999feec25c83190501.tar.gz
gpgme-57b51685528153f5a50ab0999feec25c83190501.zip
python: Improve python packaging.
* lang/python/Makefile.am: Sign source releases, and upload them. * lang/python/setup.py.in: Add categories. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r--lang/python/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
index eecc7d4c..0ac1dd01 100644
--- a/lang/python/Makefile.am
+++ b/lang/python/Makefile.am
@@ -46,11 +46,17 @@ all-local: copystamp
CFLAGS="$(CFLAGS) -I$(top_srcdir)" \
$(PYTHON) setup.py build --verbose
-dist/pyme3-$(VERSION).tar.gz: copystamp
+dist/pyme3-$(VERSION).tar.gz dist/pyme3-$(VERSION).tar.gz.asc: copystamp
CFLAGS="$(CFLAGS) -I$(top_srcdir)" \
$(PYTHON) setup.py sdist --verbose
+ gpg2 --detach-sign --armor dist/pyme3-$(VERSION).tar.gz
-sdist: dist/pyme3-$(VERSION).tar.gz
+.PHONY: sdist
+sdist: dist/pyme3-$(VERSION).tar.gz dist/pyme3-$(VERSION).tar.gz.asc
+
+.PHONY: upload
+upload: dist/pyme3-$(VERSION).tar.gz dist/pyme3-$(VERSION).tar.gz.asc
+ twine upload $^
CLEANFILES = gpgme.h errors.i gpgme_wrap.c pyme/pygpgme.py \
copystamp