Debian Codegraph @

setup.py

raw symbols SCIP
1 import os
2 import re
3 from setuptools import setup
4
5 # Get the version (borrowed from SQLAlchemy)
6 base_path = os.path.dirname(os.path.abspath(__file__))
7 with open(os.path.join(base_path, 'rfc6555.py')) as f:
8 VERSION = re.compile(r'.*__version__ = \'(.*?)\'', re.S).match(f.read()).group(1)
9
10 with open(os.path.join(base_path, 'README.rst')) as f:
11 long_description = f.read()
12
13 with open(os.path.join(base_path, 'CHANGES.rst')) as f:
14 changes = f.read()
15
16 if __name__ == '__main__':
17 setup(name='rfc6555',
18 description='Python implementation of the Happy Eyeballs Algorithm described in RFC 6555.',
19 long_description=long_description + '\n\n' + changes,
20 license='Apache-2.0',
21 url='https://www.github.com/SethMichaelLarson/rfc6555',
22 version=VERSION,
23 author='Seth Michael Larson',
24 author_email='[email protected]',
25 maintainer='Seth Michael Larson',
26 maintainer_email='[email protected]',
27 install_requires=[
28 'selectors2;python_version<"3.4"'
29 ],
30 py_modules=['rfc6555'],
31 zip_safe=False,
32 classifiers=['Intended Audience :: Developers',
33 'License :: OSI Approved :: Apache Software License',
34 'Natural Language :: English',
35 'Operating System :: OS Independent',
36 'Programming Language :: Python :: 2',
37 'Programming Language :: Python :: 2.6',
38 'Programming Language :: Python :: 2.7',
39 'Programming Language :: Python :: 3',
40 'Programming Language :: Python :: 3.3',
41 'Programming Language :: Python :: 3.4',
42 'Programming Language :: Python :: 3.5',
43 'Programming Language :: Python :: 3.6',
44 'Topic :: Internet',
45 'Topic :: System :: Networking'])