-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
29 lines (26 loc) · 852 Bytes
/
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
from setuptools import setup, find_packages
import subprocess
def git_version(fallback):
try:
version = subprocess.check_output('git describe --tags --match v[0-9].[0-9]*'.split()).strip()
return version[1:] if version.startswith('v') else version
except Exception as e:
print(e)
return fallback
setup(
name='prom_redis_exporter',
version=git_version('0.3.0'),
author='Felix Ruess',
author_email='felix.ruess@roboception.de',
classifieres=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3'
],
packages=find_packages(),
install_requires=['prometheus_client', 'pyyaml', 'redis'],
entry_points={
'console_scripts': [
"prom-redis-exporter = prom_redis_exporter.prom_redis_exporter:main"
],
}
)