From 44323c8acde502726fca574b2677fa76d042fcd4 Mon Sep 17 00:00:00 2001 From: Matthew Seal <1863892+MSeal@users.noreply.github.com> Date: Sun, 26 Nov 2017 02:13:08 -0800 Subject: [PATCH] Added PyPi and Travis build requirements --- .travis.yml | 9 +++++++++ MANIFEST.in | 5 +++++ README.md | 2 ++ setup.py | 4 ++-- 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .travis.yml create mode 100644 MANIFEST.in diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1145e3b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +sudo: false +language: python +python: + - "2.7" + - "3.5" + - "3.6" + +install: "python setup.py install" +script: "python setup.py test" diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..e83c20e --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,5 @@ +include README.md +include LICENSE +include requirements.txt + +exclude tests \ No newline at end of file diff --git a/README.md b/README.md index 8f1d62c..521017e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/MSeal/htu21df_sensor.svg?branch=master)](https://travis-ci.org/MSeal/htu21df_sensor) + # htu21df Sensor Library A lightweight library for talking to an htu21df sensor over i2c. Supports python 2 or 3. diff --git a/setup.py b/setup.py index 2b4b676..5d9594f 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ def read(fname): with open(fname, 'rU' if python_2 else 'r') as fhandle: return fhandle.read() -version = '0.1.3' +version = '0.1.4' required = [req.strip() for req in read('requirements.txt').splitlines() if req.strip()] setup( name='htu21df', @@ -25,7 +25,7 @@ def read(fname): download_url='https://github.com/MSeal/htu21df_sensor/tarball/v' + version, keywords=['sensors', 'raspberry_pi', 'adafruit', 'scripting'], classifiers=[ - 'Development Status :: 4 - Beta Development Status', + 'Development Status :: 4 - Beta', 'Topic :: Utilities', 'License :: OSI Approved :: MIT License', 'Natural Language :: English',