-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
65 lines (54 loc) · 2.04 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
#!/usr/bin/env python
from setuptools.command.test import test as TestCommand
from setuptools import setup, find_packages
import sys
import os
class PyTest(TestCommand):
user_options = []
def initialize_options(self):
TestCommand.initialize_options(self)
def run_tests(self):
import pytest
sys.exit(pytest.main('tests'))
cwd = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(cwd, 'requirements.txt')) as requirements_file:
requirements = requirements_file.read().splitlines()
with open(os.path.join(cwd, 'README.rst')) as readme_file:
long_description = readme_file.read()
# Keep these separated for tox extras
test_requirements = ['mock', 'pytest']
integration_test_requirements = ['docker']
setup(
name='Requests-OpenTracing',
version='0.3.0',
url='http://github.com/opentracing-contrib/python-requests',
download_url='http://github.com/opentracing-contrib/python-requests/tarball/master',
author='SignalFx, Inc.',
author_email='[email protected]',
description='OpenTracing support for Requests',
long_description=long_description,
packages=find_packages(),
platforms='any',
license='Apache Software License v2',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
install_requires=requirements,
tests_require=test_requirements + integration_test_requirements,
extras_require=dict(
unit_tests=test_requirements,
integration_tests=test_requirements + integration_test_requirements
),
cmdclass=dict(test=PyTest)
)