-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
57 lines (51 loc) · 1.66 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
import re
from os import path
from setuptools import find_packages, setup
PACKAGE_NAME = "tekdrive"
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md"), "r", encoding="utf-8") as readme:
README = readme.read()
with open(path.join(here, PACKAGE_NAME, "settings.py"), encoding="utf-8") as settings:
VERSION = re.search('__version__ = "([^"]+)"', settings.read()).group(1)
extras = {
"lint": [
"black ==20.8b1",
"flake8 >=3.8.4",
],
"test": [
"pytest >=6.2.2",
"vcrpy >=4.1.1",
],
"release": [
"twine ==3.4.2",
]
}
extras["dev"] = extras["lint"] + extras["test"]
setup(
name=PACKAGE_NAME,
author="Initial State",
author_email="[email protected]",
python_requires=">=3.6",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Utilities",
],
description=("Package to interact with the TekDrive API."),
install_requires=["requests >=2.25.0, <3.0"],
extras_require=extras,
keywords="tektronix tekdrive tekcloud",
long_description=README,
long_description_content_type='text/markdown',
packages=find_packages(exclude=["tests", "tests.*"]),
version=VERSION,
)