33
44from setuptools import find_packages , setup
55
6+ # Import README.md into long_description
7+ from os import path
8+ this_directory = path .abspath (path .dirname (__file__ ))
9+ with open (path .join (this_directory , 'README.md' ), encoding = 'utf-8' ) as f :
10+ long_description = f .read ()
11+
612
713def check_setuptools ():
814 import pkg_resources
@@ -23,7 +29,7 @@ def check_setuptools():
2329 version = '1.11.5' ,
2430 url = 'https://www.instana.com/' ,
2531 project_urls = {
26- 'CI: Travis ' : 'https://travis-ci.org /instana/python-sensor' ,
32+ 'CI: CircleCI ' : 'https://circleci.com/gh /instana/python-sensor' ,
2733 'Documentation' : 'https://docs.instana.io/ecosystem/python/' ,
2834 'GitHub: issues' : 'https://github.com/instana/python-sensor/issues' ,
2935 'GitHub: repo' : 'https://github.com/instana/python-sensor' ,
@@ -34,8 +40,8 @@ def check_setuptools():
34403541 description = '🐍 Python Distributed Tracing & Metrics Sensor for Instana' ,
3642 packages = find_packages (exclude = ['tests' , 'examples' ]),
37- long_description = "The instana package collects and reports Python metrics and distributed \
38- traces to your Instana dashboard." ,
43+ long_description = long_description ,
44+ long_description_content_type = 'text/markdown' ,
3945 zip_safe = False ,
4046 install_requires = ['autowrapt>=1.0' ,
4147 'basictracer>=3.0.0' ,
@@ -52,46 +58,46 @@ def check_setuptools():
5258 'django19' : ['string = instana:load' ], # deprecated: use same as 'instana'
5359 },
5460 extras_require = {
55- 'test' : [
56- 'aiohttp>=3.5.4;python_version>="3.5"' ,
57- 'asynqp>=0.4;python_version>="3.5"' ,
58- 'django>=1.11,<2.2' ,
59- 'nose>=1.0' ,
60- 'flask>=0.12.2' ,
61- 'lxml>=3.4' ,
62- 'mock>=2.0.0' ,
63- 'MySQL-python>=1.2.5;python_version<="2.7"' ,
64- 'psycopg2>=2.7.1' ,
65- 'pyOpenSSL>=16.1.0;python_version<="2.7"' ,
66- 'pytest>=3.0.1' ,
67- 'redis<3.0.0' ,
68- 'requests>=2.17.1' ,
69- 'sqlalchemy>=1.1.15' ,
70- 'spyne>=2.9,<=2.12.14' ,
71- 'suds-jurko>=0.6' ,
72- 'tornado>=4.5.3,<6.0' ,
73- 'urllib3[secure]>=1.15'
74- ],
61+ 'test' : [
62+ 'aiohttp>=3.5.4;python_version>="3.5"' ,
63+ 'asynqp>=0.4;python_version>="3.5"' ,
64+ 'django>=1.11,<2.2' ,
65+ 'nose>=1.0' ,
66+ 'flask>=0.12.2' ,
67+ 'lxml>=3.4' ,
68+ 'mock>=2.0.0' ,
69+ 'MySQL-python>=1.2.5;python_version<="2.7"' ,
70+ 'psycopg2>=2.7.1' ,
71+ 'pyOpenSSL>=16.1.0;python_version<="2.7"' ,
72+ 'pytest>=3.0.1' ,
73+ 'redis<3.0.0' ,
74+ 'requests>=2.17.1' ,
75+ 'sqlalchemy>=1.1.15' ,
76+ 'spyne>=2.9,<=2.12.14' ,
77+ 'suds-jurko>=0.6' ,
78+ 'tornado>=4.5.3,<6.0' ,
79+ 'urllib3[secure]>=1.15'
80+ ],
7581 },
7682 test_suite = 'nose.collector' ,
7783 keywords = ['performance' , 'opentracing' , 'metrics' , 'monitoring' , 'tracing' , 'distributed-tracing' ],
7884 classifiers = [
79- 'Development Status :: 5 - Production/Stable' ,
80- 'Framework :: Django' ,
81- 'Framework :: Flask' ,
82- 'Intended Audience :: Developers' ,
83- 'Intended Audience :: Information Technology' ,
84- 'Intended Audience :: Science/Research' ,
85- 'Intended Audience :: System Administrators' ,
86- 'License :: OSI Approved :: MIT License' ,
87- 'Operating System :: OS Independent' ,
88- 'Programming Language :: Python' ,
89- 'Programming Language :: Python :: 2.7' ,
90- 'Programming Language :: Python :: 3' ,
91- 'Programming Language :: Python :: 3.4' ,
92- 'Programming Language :: Python :: 3.5' ,
93- 'Programming Language :: Python :: 3.6' ,
94- 'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware' ,
95- 'Topic :: System :: Monitoring' ,
96- 'Topic :: System :: Networking :: Monitoring' ,
97- 'Topic :: Software Development :: Libraries :: Python Modules' ])
85+ 'Development Status :: 5 - Production/Stable' ,
86+ 'Framework :: Django' ,
87+ 'Framework :: Flask' ,
88+ 'Intended Audience :: Developers' ,
89+ 'Intended Audience :: Information Technology' ,
90+ 'Intended Audience :: Science/Research' ,
91+ 'Intended Audience :: System Administrators' ,
92+ 'License :: OSI Approved :: MIT License' ,
93+ 'Operating System :: OS Independent' ,
94+ 'Programming Language :: Python' ,
95+ 'Programming Language :: Python :: 2.7' ,
96+ 'Programming Language :: Python :: 3' ,
97+ 'Programming Language :: Python :: 3.4' ,
98+ 'Programming Language :: Python :: 3.5' ,
99+ 'Programming Language :: Python :: 3.6' ,
100+ 'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware' ,
101+ 'Topic :: System :: Monitoring' ,
102+ 'Topic :: System :: Networking :: Monitoring' ,
103+ 'Topic :: Software Development :: Libraries :: Python Modules' ])
0 commit comments