File: setup.py

package info (click to toggle)
pygpgme 0.2-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 440 kB
  • sloc: ansic: 2,860; python: 1,389; makefile: 35; sh: 14
file content (49 lines) | stat: -rwxr-xr-x 1,565 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python
"""A Python module for working with OpenPGP messages

PyGPGME is a Python module that lets you sign, verify, encrypt and
decrypt messages using the OpenPGP format.

It is built on top of the GNU Privacy Guard and the GPGME library.
"""

from distutils.core import setup, Extension

gpgme = Extension(
    'gpgme._gpgme',
    ['src/gpgme.c',
     'src/pygpgme-error.c',
     'src/pygpgme-data.c',
     'src/pygpgme-context.c',
     'src/pygpgme-key.c',
     'src/pygpgme-signature.c',
     'src/pygpgme-import.c',
     'src/pygpgme-keyiter.c',
     'src/pygpgme-constants.c',
     'src/pygpgme-genkey.c',
     ],
    extra_compile_args=['-D_FILE_OFFSET_BITS=64'],
    libraries=['gpgme'])

description, long_description = __doc__.split("\n\n", 1)

setup(name='pygpgme',
      version='0.2',
      author='James Henstridge',
      author_email='james@jamesh.id.au',
      description=description,
      long_description=long_description,
      license='LGPL',
      classifiers=[
          'Intended Audience :: Developers',
          'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
          'Operating System :: POSIX',
          'Programming Language :: C',
          'Programming Language :: Python',
          'Topic :: Security :: Cryptography',
          'Topic :: Software Development :: Libraries :: Python Modules'
      ],
      url='https://launchpad.net/pygpgme',
      ext_modules=[gpgme],
      packages=['gpgme', 'gpgme.tests'],
      package_data={'gpgme.tests': ['keys/*.pub', 'keys/*.sec']})