This repository was archived by the owner on Jul 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
38 lines (34 loc) · 1.56 KB
/
setup.py
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
import os
import re
from setuptools import setup
# Get the version (borrowed from SQLAlchemy)
base_path = os.path.dirname(__file__)
with open(os.path.join(base_path, 'selectors2.py')) as f:
VERSION = re.compile(r'.*__version__ = \'(.*?)\'', re.S).match(f.read()).group(1)
with open('README.rst') as f:
long_description = f.read()
with open('CHANGELOG.rst') as f:
changelog = f.read()
if __name__ == '__main__':
setup(name='selectors2',
description='Back-ported, durable, and portable selectors',
long_description=long_description + '\n\n' + changelog,
license='MIT',
url='https://www.github.com/sethmlarson/selectors2',
version=VERSION,
author='Seth Michael Larson',
author_email='[email protected]',
maintainer='Seth Michael Larson',
maintainer_email='[email protected]',
install_requires=[],
keywords=['async', 'file', 'socket', 'select', 'backport'],
py_modules=['selectors2'],
zip_safe=False,
classifiers=['Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'License :: OSI Approved :: Python Software Foundation License',
'License :: OSI Approved :: MIT License'])