forked from jpoullet2000/atlasclient
-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
67 lines (56 loc) · 2.13 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
import os
import sys
here = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, here)
from atlasclient import __version__ as version
# read the contents of your README file
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
requirements_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)), "requirements.txt"
)
test_requirements_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)), "test_requirements.txt"
)
setup_requirements_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)), "setup_requirements.txt"
)
with open(requirements_path) as requirements_file:
requirements = requirements_file.readlines()
with open(test_requirements_path) as test_requirements_file:
test_requirements = test_requirements_file.readlines()
with open(setup_requirements_path) as setup_requirements_file:
setup_requirements = setup_requirements_file.readlines()
setup_args = dict(
name="pyatlasclient",
version=version,
description="Apache Atlas Python Client",
long_description=long_description,
long_description_content_type="text/markdown",
author="Verdan Mahmood",
author_email="[email protected]",
url="https://github.com/verdan/pyatlasclient",
packages=find_packages(include=["atlasclient"]),
include_package_data=True,
install_requires=requirements,
license="Apache Software License 2.0",
zip_safe=False,
keywords="atlasclient, pyatlasclient, apache atlas, atlas",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
test_suite="tests",
tests_require=test_requirements,
)
setup(**setup_args)