-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
61 lines (59 loc) · 2.07 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
from setuptools import setup, find_packages
from version import get_version
from pathlib import Path
current_dir = Path(__file__).resolve().parent
description = 'A Prometheus middleware for your Python Flask app.'
try:
history = current_dir.joinpath('CHANGELOG.md').read_text()
long_description = '\n\n'.join([current_dir.joinpath('../README.md').read_text(), history])
except FileNotFoundError:
long_description = 'A Prometheus middleware to add basic but very useful metrics for your Python Flask app.'
setup(
name='bb_flask_monitor',
description=description,
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Flask',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Operating System :: POSIX :: Linux',
'Environment :: Console',
'Environment :: MacOS X',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet',
],
author='Gustavo Coelho',
author_email='[email protected]',
url='https://github.com/labbsr0x/flask-monitor',
version=get_version(),
license='MIT',
python_requires='>=3.6',
zip_safe=False,
include_package_data=True,
packages=find_packages(exclude=['tests']),
install_requires=[
'prometheus-client>=0.6.0',
'APScheduler>=3.6.3',
'flask>=1.0.0',
'requests',
],
extras_require={
'flask': ['Flask>=1.0.0'],
},
test_suite='nose.collector',
tests_require=[
'nose',
'packaging'
],
)