-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathsetup.py
52 lines (44 loc) · 1.62 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
#!/usr/bin/env python
import setuptools
# Pinning tenacity as the api has changed slightly which breaks all tests.
application_dependencies = ["requests>=2.16", "tenacity>=5.1.0"]
prod_dependencies = []
test_dependencies = ["pytest", "pytest-env", "pytest-cov", "vcrpy", "requests-mock"]
lint_dependencies = ["flake8", "flake8-docstrings", "black", "isort"]
docs_dependencies = []
dev_dependencies = test_dependencies + lint_dependencies + docs_dependencies + ["ipdb"]
deploy_dependencies = ["requests", "twine"]
with open("README.md", "r") as fh:
long_description = fh.read()
with open("VERSION", "r") as buf:
version = buf.read()
setuptools.setup(
name="api-client",
version=version,
description="Separate the high level client implementation from the underlying CRUD.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Mike Wooster",
author_email="",
url="https://github.com/MikeWooster/api-client",
python_requires=">=3.6",
packages=["apiclient"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
],
install_requires=application_dependencies,
extras_require={
"production": prod_dependencies,
"test": test_dependencies,
"lint": lint_dependencies,
"docs": dev_dependencies,
"dev": dev_dependencies,
"deploy": deploy_dependencies,
},
include_package_data=True,
zip_safe=False,
)