forked from mongodb-labs/drivers-atlas-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (52 loc) · 2.02 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
import io
import os
import sys
from setuptools import setup
# Single source the version.
version_file = os.path.realpath(os.path.join(
os.path.dirname(__file__), 'astrolabe', 'version.py'))
version = {}
with io.open(version_file, 'rt', encoding='utf-8') as fp:
exec(fp.read(), version)
# Dynamically generate long-description.
readme_file = os.path.realpath('README.rst')
if os.path.exists(readme_file) and os.path.isfile(readme_file):
with io.open('README.rst', 'rt', encoding='utf-8') as fp:
readme_content = fp.read()
else:
readme_content = ''
# Dynamically generate requirements.
install_requires = [
'click>=7,<8', 'requests>=2,<3',
'pymongo>=3.10,<4', 'dnspython>=1.16,<2',
'pyyaml>=5,<6', 'tabulate>=0.8,<0.9',
'junitparser>=1,<2']
if sys.platform == 'win32':
install_requires.append('certifi')
setup(
name='astrolabe',
version=version['__version__'],
description=("Command-line utility for testing Drivers against MongoDB "
"Atlas <https://www.mongodb.com/cloud/atlas>"),
long_description=readme_content,
author="Prashant Mital",
author_email="[email protected]",
url="https://github.com/mongodb-labs/drivers-atlas-testing",
keywords=["mongodb", "mongodbatlas", "atlas", "mongo"],
license="Apache License, Version 2.0",
python_requires=">=3.5",
packages=["atlasclient", "astrolabe"],
install_requires=install_requires,
entry_points={
'console_scripts': ['astrolabe=astrolabe.cli:cli']},
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Testing"])