-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
52 lines (40 loc) · 1.23 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 os
from setuptools import setup, find_packages
ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
VERSION_FILE = os.path.join(ROOT_DIR, 'VERSION')
BUILD_NUMBER = os.environ.get('BUILD_NUMBER')
def read_file(file_path):
return open(file_path).read().strip()
__version__ = read_file(os.path.join(ROOT_DIR, 'VERSION'))
if BUILD_NUMBER:
full_version = '%s.%s' % (__version__, BUILD_NUMBER)
f = open(VERSION_FILE, 'w')
try:
f.writelines([full_version])
finally:
f.close()
setup(
name='aiohttp_prometheus_monitoring',
version=read_file(os.path.join(ROOT_DIR, 'VERSION')),
packages=find_packages(),
long_description=read_file(os.path.join(ROOT_DIR, 'README.md')),
include_package_data=True,
author='Wargaming Team',
install_requires=[
'aiohttp',
'prometheus_client>=0.5.0',
'prometheus-async>=18.4.0',
],
extras_require={
'amqp': ['aioamqp>=0.9.0'],
'postgres': ['aiopg'],
'redis': ['aioredis'],
'mysql': ['aiomysql'],
},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
]
)