-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (46 loc) · 1.64 KB
/
Copy pathsetup.py
File metadata and controls
50 lines (46 loc) · 1.64 KB
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
50
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Get the version (borrowed from hyper)
version_regex = r'__version__ = ["\']([^"\']*)["\']'
with open('backports/ssl/__init__.py', 'r') as f:
text = f.read()
match = re.search(version_regex, text)
if match:
version = match.group(1)
else:
raise RuntimeError('No version number found!')
setup(
name='backports.ssl',
version=version,
description='The Python 3.4 standard `ssl` module API implemented on top of pyOpenSSL',
long_description=open('README.rst').read(),
author='Alek Storm',
author_email='alek.storm@gmail.com',
url='https://github.com/alekstorm/backports.ssl',
packages=['backports', 'backports.ssl'],
package_data={'': ['CONTRIBUTORS.rst', 'LICENSE', 'NOTICES.rst', 'README.rst']},
include_package_data=True,
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries',
],
extras_requires={'full': ['pyOpenSSL>=0.14', 'pyasn1>=0.1.7']},
)