forked from aiokitchen/aiomisc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (55 loc) · 1.92 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
59
60
61
62
63
64
65
66
67
68
import os
from setuptools import setup, find_packages
from importlib.machinery import SourceFileLoader
module_name = 'aiomisc'
try:
version = SourceFileLoader(
module_name,
os.path.join(module_name, 'version.py')
).load_module()
version_info = version.version_info
except FileNotFoundError:
version_info = (0, 0, 0)
__version__ = '{}.{}.{}'.format(*version_info)
def load_requirements(fname):
""" load requirements from a pip requirements file """
with open(fname) as f:
line_iter = (line.strip() for line in f.readlines())
return [line for line in line_iter if line and line[0] != '#']
setup(
name=module_name,
version=__version__,
author='Dmitry Orlov',
author_email='me@mosquito.su',
license='MIT',
description='aiomisc - miscellaneous utils for asyncio',
long_description=open("README.rst").read(),
platforms="all",
classifiers=[
"Framework :: Pytest",
'Intended Audience :: Developers',
'Natural Language :: Russian',
'Operating System :: MacOS',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
],
packages=find_packages(exclude=['tests']),
install_requires=load_requirements('requirements.txt'),
extras_require={
'aiohttp': ['aiohttp'],
'carbon': ['aiocarbon~=0.15'],
'develop': load_requirements('requirements.dev.txt'),
'raven': ['raven-aiohttp'],
'uvloop': ['uvloop<1'],
':python_version < "3.7"': 'async-generator',
},
entry_points={
"pytest11": ["aiomisc = aiomisc_pytest.pytest_plugin"]
},
url='https://github.com/mosquito/aiomisc'
)