diff --git a/setup.py b/setup.py index c847fd1..fbc9637 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,15 @@ # Ignore import error and assume Python 3 which already has setuptools. pass +from codecs import open +from os import path + +here = path.abspath(path.dirname(__file__)) + +# Get the long description from the README file +with open(path.join(here, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + from setuptools import setup, find_packages classifiers = ['Development Status :: 4 - Beta', @@ -18,7 +27,7 @@ 'Topic :: System :: Hardware'] setup(name = 'Adafruit_BMP', - version = '1.5.2', + version = '1.5.3', author = 'Tony DiCola', author_email = 'tdicola@adafruit.com', description = 'Library for accessing the BMP series pressure and temperature sensors like the BMP085/BMP180 on a Raspberry Pi or Beaglebone Black.', @@ -27,4 +36,7 @@ url = 'https://github.com/adafruit/Adafruit_Python_BMP/', dependency_links = ['https://github.com/adafruit/Adafruit_Python_GPIO/tarball/master#egg=Adafruit-GPIO-0.6.5'], install_requires = ['Adafruit-GPIO>=0.6.5'], - packages = find_packages()) + packages = find_packages(), + + long_description = long_description, + long_description_content_type = 'text/markdown')