-
Notifications
You must be signed in to change notification settings - Fork 306
/
setup.py
75 lines (68 loc) · 2.68 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
68
69
70
71
72
73
74
75
# Unless explicitly stated otherwise all files in this repository are licensed under the BSD-3-Clause License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2015-Present Datadog, Inc.
from setuptools import setup
from io import open
import sys
def get_readme_md_contents():
"""read the contents of your README file"""
with open("README.md", encoding='utf-8') as f:
long_description = f.read()
return long_description
version = {}
with open("datadog/version.py") as fp:
exec(fp.read(), version)
# `typing` package is only required for Python versions older than 3.5, but we include it here so
# that a single wheel build can be used for all supported Python versions. Installing `typing` on
# Python 3.5+ has no effect.
#
# `configparser` package is only required for Python versions older than 3 (it is included here for
# the same reason as the `typing` package).
install_reqs = [
"requests>=2.6.0",
'typing;python_version<"3.5"',
'configparser<5;python_version<"3.0"',
]
setup(
name="datadog",
version=version["__version__"],
install_requires=install_reqs,
tests_require=["pytest", "mock", "freezegun", "psutil"],
packages=["datadog", "datadog.api", "datadog.dogstatsd", "datadog.threadstats", "datadog.util", "datadog.dogshell"],
package_data={"datadog": ["py.typed"]},
author="Datadog, Inc.",
long_description=get_readme_md_contents(),
long_description_content_type="text/markdown",
description="The Datadog Python library",
license="BSD",
keywords="datadog",
url="https://www.datadoghq.com",
project_urls={
"Bug Tracker": "https://github.com/DataDog/datadogpy/issues",
"Documentation": "https://datadogpy.readthedocs.io/en/latest/",
"Source Code": "https://github.com/DataDog/datadogpy",
},
entry_points={
"console_scripts": [
"dog = datadog.dogshell:main",
"dogwrap = datadog.dogshell.wrap:main",
"dogshell = datadog.dogshell:main",
"dogshellwrap = datadog.dogshell.wrap:main"
]
},
test_suite="tests",
classifiers=[
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: PyPy",
],
# Required by Mypy when declaring PEP 561 compatibility with `py.typed`
# file.
zip_safe=False
)