65 lines
2.1 KiB
Python
65 lines
2.1 KiB
Python
#!/usr/bin/python
|
|
# from distutils.core import setup
|
|
from setuptools import setup
|
|
from pip.req import parse_requirements
|
|
|
|
# this is dirty
|
|
import sys
|
|
sys.path.append('pgpy')
|
|
import _author
|
|
|
|
# long_description is the contents of README.rst
|
|
with open('README.rst') as readme:
|
|
long_desc = readme.read()
|
|
|
|
# requirements generators
|
|
reqs = [ str(ir.req) for ir in parse_requirements('requirements.txt') ]
|
|
test_reqs = parse_requirements('requirements-test.txt')
|
|
|
|
##TODO: fill in blank fields
|
|
setup(
|
|
# basic metadata
|
|
name = 'PGPy',
|
|
version = _author.__version__,
|
|
description = 'Pretty Good Privacy for Python',
|
|
long_description = long_desc,
|
|
author = _author.__author__,
|
|
author_email = "mgreene@securityinnovation.com",
|
|
license = _author.__license__,
|
|
|
|
# dependencies
|
|
install_requires = reqs,
|
|
|
|
# # urls
|
|
url = "https://github.com/Commod0re/PGPy",
|
|
download_url = "https://github.com/Commod0re/PGPy/archive/{pgpy_ver}.tar.gz".format(pgpy_ver=_author.__license__),
|
|
# bugtrack_url = "https://github.com/Commod0re/PGPy/issues",
|
|
|
|
# classifiers, keywords, etc
|
|
classifiers = [
|
|
'Development Status :: 4 - Beta',
|
|
'Operating System :: POSIX :: Linux',
|
|
'Operating System :: MacOS :: MacOS X',
|
|
'Operating System :: Microsoft :: Windows',
|
|
'Intended Audience :: Developers',
|
|
'Programming Language :: Python',
|
|
'Programming Language :: Python :: 3.4',
|
|
'Programming Language :: Python :: 3.3',
|
|
'Programming Language :: Python :: 3.2',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
'Topic :: Security',
|
|
'Topic :: Security :: Cryptography',
|
|
'Topic :: Software Development :: Libraries',
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
'License :: OSI Approved :: BSD License',
|
|
],
|
|
keywords = ["PGP", "pgp", "Pretty Good Privacy", "GPG", "gpg", "OpenPGP"],
|
|
|
|
# package hierarchy
|
|
packages = [
|
|
"pgpy",
|
|
"pgpy.packet",
|
|
],
|
|
)
|