-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
65 lines (54 loc) · 1.99 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
#
# Copyright (c) 2017-2022 by QA Cafe.
# All Rights Reserved.
#
from setuptools import setup, find_packages
from codecs import open
from os import path
import sys
def read(rel_path):
here = path.abspath(path.dirname(__file__))
with open(path.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
here = path.abspath(path.dirname(__file__))
sys.path.insert(0, here)
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="cdrouter",
version=get_version("cdrouter/__init__.py"),
description="Python client for the CDRouter Web API",
long_description=long_description,
url="https://github.com/qacafe/cdrouter.py",
author="QA Cafe",
author_email="[email protected]",
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Environment :: Web Environment",
"Topic :: Software Development",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
keywords="cdrouter json rest api client",
packages=["cdrouter"],
install_requires=["future", "marshmallow>=3.13.0,<4.0.0", "requests", "requests-toolbelt", "urllib3<2"],
)