aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lang/gpygme/requirements.txt1
-rw-r--r--lang/gpygme/setup.py66
2 files changed, 67 insertions, 0 deletions
diff --git a/lang/gpygme/requirements.txt b/lang/gpygme/requirements.txt
new file mode 100644
index 00000000..378728af
--- /dev/null
+++ b/lang/gpygme/requirements.txt
@@ -0,0 +1 @@
+cffi>=1.0.2
diff --git a/lang/gpygme/setup.py b/lang/gpygme/setup.py
new file mode 100644
index 00000000..00b6ab71
--- /dev/null
+++ b/lang/gpygme/setup.py
@@ -0,0 +1,66 @@
+#!/usr/bin/env python
+
+import os
+import sys
+
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
+
+__author__ = 'Ben McGinnes <[email protected]>'
+__version__ = '0.0.1'
+
+packages = [
+ 'gpygme',
+ 'gpygme.gnupg',
+ 'gpygme.gpgsm'
+]
+
+if sys.argv[-1] == 'publish':
+ os.system('python setup.py sdist upload')
+ sys.exit()
+
+setup(
+ name='GPyGME',
+ version=__version__,
+ install_requires=['cffi>=1.0.2'],
+ author='Ben McGinnes',
+ author_email='[email protected]',
+ license=open('COPYING.LESSER').read(),
+ license=open('COPYING').read(),
+ url='http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=summary',
+ keywords='gpg gnupg openpgp api rest-like json encryption signing',
+ description='Actively maintained, pure Python wrapper and API for the \
+ GPGME cryptographic engine C API. Provides Python modules for Python \
+ 3 and a stand alone API for developers using any other language.',
+ long_description=open('README.org').read() + '\n\n' +
+ open('FAQ.org').read(),
+ include_package_data=True,
+ packages=packages,
+ classifiers=[
+ 'Development Status :: 3 - Alpha',
+ 'Intended Audience :: Developers',
+ 'Natural Language :: English',
+ 'License :: OSI Approved :: LGPL 2.1+',
+ 'License :: OSI Approved :: GPL 3.0+',
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.3',
+ 'Programming Language :: Python :: 3.4',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+ 'Topic :: Software Development :: API',
+ 'Topic :: Security :: Cryptography',
+ 'Topic :: Security :: Cryptography :: Encryption',
+ 'Topic :: Security :: Cryptography :: Decryption',
+ 'Topic :: Security :: Cryptography :: Digital Signing',
+ 'Topic :: Security :: Cryptography :: Digital Signature Validation',
+ 'Topic :: Security :: Cryptography :: Authentication',
+ 'Topic :: Internet'
+ ]
+ # extras_require={
+ # 'security': ['pyOpenSSL'],
+ # 'library': ['cython']
+ # },
+)