-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
68 lines (59 loc) · 1.69 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
import setuptools
# version
with open("./prometheus_push_client/version.py") as fd:
exec(fd.read())
# description
github_url = 'https://github.com/gistart/prometheus-push-client'
readme_lines = []
with open('README.md') as fd:
readme_lines = filter(None, fd.read().splitlines())
readme_lines = list(readme_lines)[:14]
readme_lines.append('Read more at [github page](%s).' % github_url)
readme = '\n\n'.join(readme_lines)
# requirements
extras_require = {}
extras_require["http"] = [
"aiohttp<4",
"requests<3",
]
extras_require["test"] = [
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-mock",
*extras_require["http"]
]
extras_require["dev"] = [
"ipython",
"setuptools",
"wheel",
"twine",
*extras_require["test"]
]
# setup
setuptools.setup(
name="prometheus_push_client",
version=__version__,
author="gistart",
author_email="[email protected]",
description="Push Prometheus metrics to VictoriaMetrics or other exporters",
long_description=readme,
long_description_content_type="text/markdown",
url=github_url,
packages=setuptools.find_packages(include=["prometheus_push_client*"]),
license="Apache License 2.0",
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
install_requires=[
"prometheus_client>=0.4.0",
],
extras_require=extras_require,
)