-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
35 lines (30 loc) · 1008 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
30
31
32
33
34
35
import os
from pip.download import PipSession
from pip.req import parse_requirements
from setuptools import find_packages, setup
def read_requirements(file_name):
return [
str(requirement.req) for requirement in
parse_requirements(file_name, session=PipSession())
]
setup(
name='celery-prometheus-exporter',
version=os.getenv('SERVICE_VERSION', '1.0.0'),
description='Prometheus exporter for celery metrics',
author='Georgy Gritsenko',
author_email='[email protected]',
packages=find_packages(exclude=('*.tests', 'tests.*')),
include_package_data=True,
classifiers=[
'Programming Language :: Python :: 3.6',
],
entry_points={
'console_scripts': [
'celery-exporter=celery_prometheus_exporter.main:main'
]
},
install_requires=read_requirements('requirements/requirements.txt'),
extras_require={
'develop': read_requirements('requirements/requirements-develop.txt'),
}
)