-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
58 lines (45 loc) · 1.42 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
from os.path import dirname, join
from setuptools import find_packages, setup
KEYWORDS = []
CLASSIFIERS = [
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python',
'Topic :: Software Development',
]
INSTALL_REQUIRES = []
PROJECT_DIR = dirname(__file__)
README_FILE = join(PROJECT_DIR, 'README.rst')
ABOUT_FILE = join(PROJECT_DIR, 'src', 'aiocontext', '__about__.py')
def get_readme():
with open(README_FILE) as fileobj:
return fileobj.read()
def get_about():
about = {}
with open(ABOUT_FILE) as fileobj:
exec(fileobj.read(), about)
return about
ABOUT = get_about()
setup(
name=ABOUT['__title__'],
version=ABOUT['__version__'],
description=ABOUT['__summary__'],
long_description=get_readme(),
author=ABOUT['__author__'],
author_email=ABOUT['__email__'],
license=ABOUT['__license__'],
url=ABOUT['__uri__'],
keywords=KEYWORDS,
classifiers=CLASSIFIERS,
package_dir={'': 'src'},
packages=find_packages('src'),
install_requires=INSTALL_REQUIRES,
python_requires='>=3.4, <4',
zip_safe=False,
)