[Pkg-gnupg-commit] [gpgme] 226/412: python: Improve python packaging.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:26:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit 57b51685528153f5a50ab0999feec25c83190501
Author: Justus Winter <justus at g10code.com>
Date:   Tue Jul 12 16:20:35 2016 +0200

    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 <justus at g10code.com>
---
 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 eecc7d4..0ac1dd0 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 4667a9d..787d6a3 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 at 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',
+      ],
 )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list