diff --git a/setup.py b/setup.py index 90046a40..012fcc95 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,13 @@ from setuptools import setup +import sys +from os import path + +if sys.version_info >= (2, 7): + with open(path.join(path.abspath(path.dirname(__file__)), 'README.md')) as f: + long_description = f.read() +else: # Assuming we don't run setup in order to publish under python 2.6 + long_description = "NA" + setup( name="prometheus_client", @@ -6,9 +15,8 @@ author="Brian Brazil", author_email="brian.brazil@robustperception.io", description="Python client for the Prometheus monitoring system.", - long_description=( - "See https://github.com/prometheus/client_python/blob/master/README.md" - " for documentation."), + long_description=long_description, + long_description_content_type='text/markdown', license="Apache Software License 2.0", keywords="prometheus monitoring instrumentation client", url="https://github.com/prometheus/client_python",