forked from ilex/aiomongodel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (42 loc) · 1.52 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
"""Setup script."""
import os.path
import re
from setuptools import setup, find_packages
install_requires = ['motor>=2.0,<3.0']
tests_require = ['pytest']
def version():
cur_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(cur_dir, 'aiomongodel', '__init__.py'), 'r') as f:
try:
version = re.findall(
r"^__version__ = '([^']+)'\r?$",
f.read(), re.M)[0]
except IndexError:
raise RuntimeError('Could not determine version.')
return version
long_description = '\n'.join((open('README.rst').read(),
open('CHANGELOG.rst').read()))
setup(
name="aiomongodel",
version=version(),
description=('ODM to use with asynchronous MongoDB Motor driver.'),
long_description=long_description,
setup_requires=['pytest-runner'],
install_requires=install_requires,
tests_require=tests_require,
packages=find_packages(exclude=['tests*']),
author='ilex',
author_email='[email protected]',
url='https://github.com/ilex/aiomongodel',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Database',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
]
)