forked from epsagon/epsagon-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·63 lines (59 loc) · 1.95 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
#!/usr/bin/env python
import re
import os
from setuptools import setup, find_packages
try:
# For pip >= 10.
from pip._internal.req import parse_requirements
from pip._internal.download import PipSession
except ImportError:
# For pip <= 9.0.3.
from pip.req import parse_requirements
from pip.download import PipSession
install_reqs = parse_requirements('./requirements.txt', session=PipSession())
reqs = [str(ir.req) for ir in install_reqs]
# Get version
with open(os.path.join('epsagon', 'constants.py'), 'rt') as consts_file:
version = re.search(r'__version__ = \'(.*?)\'', consts_file.read()).group(1)
setup(
name='epsagon',
version=version,
description='Epsagon Instrumentation for Python',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='Epsagon',
author_email='[email protected]',
url='https://github.com/epsagon/epsagon-python',
packages=find_packages(exclude=('tests', 'examples')),
install_requires=reqs,
license='MIT',
setup_requires=['pytest-runner'],
tests_require=['pytest'],
entry_points={
'epsagon': ['string = epsagon:auto_load']
},
keywords=[
'serverless',
'microservices',
'epsagon',
'tracing',
'distributed-tracing',
'lambda',
'aws-lambda',
'debugging',
'monitoring'
],
classifiers=(
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
)
)