-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
82 lines (69 loc) · 2.42 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import os
import re
from setuptools import find_packages, setup
PACKAGE_NAME = 'intracing'
REPOSITORY_URL = 'https://github.com/inspectorioinc/intracing'
OPENTRACING_INSTRUMENTATION_LINK = (
'git+https://github.com/Jamim/opentracing-python-instrumentation.git'
'@fix/psycopg2'
'#egg=opentracing_instrumentation'
)
def read(*paths):
path = os.path.join(os.path.abspath(os.path.dirname(__file__)), *paths)
with open(path) as input_file:
return input_file.read()
def get_version():
"""Get a version string from the source code"""
return re.search(
r"^__version__ = '(?P<version>.*?)'.*$",
read(PACKAGE_NAME, '__init__.py'), re.MULTILINE
).group('version')
def get_long_description():
"""Generate a long description from the README file"""
return read('README.md')
setup(
name=PACKAGE_NAME,
url=REPOSITORY_URL,
version=get_version(),
description='OpenTracing instrumentation helper. '
'Helps to easily enable tracing for any applications.',
long_description=get_long_description(),
long_description_content_type='text/markdown',
author='Aliaksei Urbanski',
author_email='mimworkmail@gmail.com',
license='MIT',
install_requires=[
'jaeger-client<4',
'opentracing<2',
'opentracing-instrumentation @ ' + OPENTRACING_INSTRUMENTATION_LINK,
'six',
],
python_requires='>=2.7',
extras_require={
'django': ['django_opentracing==0.1.20'],
'flask': ['flask-opentracing==0.2.0'],
},
packages=find_packages(
exclude=['tests']
),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules',
],
project_urls={
'Source': REPOSITORY_URL,
'Tracker': REPOSITORY_URL + '/issues',
},
)