Skip to content

Commit

Permalink
Setup infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
rm-hull committed Nov 14, 2016
1 parent 999f25c commit 93a6f5c
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sudo: false
language: python
python:
- "2.7"
- "3.4"
install: pip install -U pip tox-travis
script: tox

13 changes: 13 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
include README.rst LICENSE.md tox.ini

recursive-include bme280 *.py

recursive-include examples *

recursive-include doc *
prune docs/_build

recursive-exclude * __pycache__
recursive-exclude * *.py[co]
recursive-exclude * *~
recursive-exclude * .coverage
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
BME280 Sensor Driver
====================
.. image:: https://travis-ci.org/rm-hull/bme280.svg?branch=master
:target: https://travis-ci.org/rm-hull/bme280

.. image:: https://img.shields.io/pypi/v/bme280.svg
:target: https://pypi.python.org/pypi/bme280

Interfacing a Bosch BME280 digital sensor module (capable of sensing
temperature, humidity and pressure) in Python 2 or 3 using I2C on the Raspberry
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python

import os
from distutils.core import setup, Extension
from setuptools import setup

README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()

Expand Down
18 changes: 18 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[tox]
envlist = py{27,34}, docs
skip_missing_interpreters = True

[travis]
python =
2.7: py27
3.4: py34, docs

[testenv]
commands =
python setup.py install

[testenv:docs]
commands =
rstcheck README.rst
deps =
rstcheck

0 comments on commit 93a6f5c

Please sign in to comment.