-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
45 lines (38 loc) · 1.22 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
from setuptools import find_packages, setup
import re
def load_reqs(filename):
with open(filename) as reqs_file:
return [
re.sub('==', '>=', line) for line in reqs_file.readlines()
if not re.match('\s*#', line)
]
version = open('VERSION').read().rstrip('\n')
requirements = load_reqs('requirements.txt')
test_requirements = load_reqs('test-requirements.txt')
try:
README = open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read()
except IOError:
README = None
setup(
name='aioarangodb',
version=version,
description='AsyncIO ArangoDB driver',
long_description=README,
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
url='http://github.com/bloodbare/aioarangodb',
author='Ramon Navarro',
author_email='[email protected]',
license='MIT',
packages=find_packages(),
zip_safe=False,
install_requires=requirements,
test_suite='tests',
tests_require=test_requirements
)