From 57b51685528153f5a50ab0999feec25c83190501 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 12 Jul 2016 16:20:35 +0200 Subject: [PATCH] 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 --- lang/python/Makefile.am | 10 ++++++++-- lang/python/setup.py.in | 19 ++++++++++++++++++- 2 files changed, 26 insertions(+), 3 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 diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in index 4667a9d5..787d6a3f 100755 --- a/lang/python/setup.py.in +++ b/lang/python/setup.py.in @@ -147,11 +147,28 @@ setup(name="pyme3", cmdclass={'build': BuildExtFirstHack}, version="@VERSION@", description='Python bindings for GPGME GnuPG cryptography library', + # XXX add a long description + #long_description=long_description, author='The GnuPG hackers', author_email='gnupg-devel@gnupg.org', url='https://www.gnupg.org', ext_modules=[swige], packages = ['pyme', 'pyme.constants', 'pyme.constants.data', 'pyme.constants.keylist', 'pyme.constants.sig'], - license="LGPL2.1+ (the library), GPL2+ (tests and examples)" + license="LGPL2.1+ (the library), GPL2+ (tests and examples)", + classifiers=[ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Topic :: Software Development :: Build Tools', + 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3 :: Only', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Operating System :: POSIX', + 'Operating System :: Microsoft :: Windows', + 'Topic :: Communications :: Email', + 'Topic :: Security :: Cryptography', + ], )