File tree Expand file tree Collapse file tree 7 files changed +14
-11
lines changed
Expand file tree Collapse file tree 7 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 11LIBRARY_VERSION =$(shell grep version library/setup.cfg | awk -F" = " '{print $$2}')
22LIBRARY_NAME =$(shell grep name library/setup.cfg | awk -F" = " '{print $$2}')
3+ PACKAGE_NAME ="bme280"
34
45.PHONY : usage install uninstall
56usage :
3031 @! grep -IUrn --color " " --exclude-dir=sphinx --exclude-dir=.tox --exclude-dir=.git --exclude=Makefile
3132 @echo " Checking library/CHANGELOG.txt"
3233 @cat library/CHANGELOG.txt | grep ^${LIBRARY_VERSION}
33- @echo " Checking library/${LIBRARY_NAME } /__init__.py"
34- @cat library/${LIBRARY_NAME } /__init__.py | grep " ^__version__ = '${LIBRARY_VERSION} '"
34+ @echo " Checking library/${PACKAGE_NAME } /__init__.py"
35+ @cat library/${PACKAGE_NAME } /__init__.py | grep " ^__version__ = '${LIBRARY_VERSION} '"
3536
3637tag :
3738 git tag -a " v${LIBRARY_VERSION} " -m " Version ${LIBRARY_VERSION} "
Original file line number Diff line number Diff line change 88 from smbus import SMBus
99from bme280 import BME280
1010
11- print ("""local_altitude.py -
11+ print ("""local_altitude.py -
1212Allows you to correct the QNH for your local area.
1313Do not rely on this approximation for landing planes.
1414Press Ctrl+C to exit!
1919bme280 = BME280 (i2c_dev = bus )
2020
2121# asks the user for their local QNH value and confirms it
22- local_qnh = input ("""Please enter your local QNH value.
22+ local_qnh = input ("""Please enter your local QNH value.
2323You can find this by searching for a local METAR on the internet.
2424>""" )
2525print ("You have told us the QNH is" , local_qnh )
Original file line number Diff line number Diff line change 22-----
33
44* Switch to setup.cfg
5+ * Match humidity compensation to BOSCH formula
56
670.0.2
78-----
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ You can optionally run `sudo raspi-config` or the graphical Raspberry Pi Configu
1717
1818# Installing
1919
20- Stable library from PyPi:
20+ Stable library from PyPi, the smbus library is also needed :
2121
22- * Just run ` sudo pip install pimoroni-bme280 `
22+ * Just run ` sudo pip install pimoroni-bme280 smbus `
2323
2424Latest/development library from GitHub:
2525
@@ -34,6 +34,7 @@ Latest/development library from GitHub:
3434-----
3535
3636* Switch to setup.cfg
37+ * Match humidity compensation to BOSCH formula
3738
38390.0.2
3940-----
Original file line number Diff line number Diff line change 55import time
66
77
8- __version__ = '0.0.2 '
8+ __version__ = '0.1.0 '
99
1010CHIP_ID = 0x60
1111I2C_ADDRESS_GND = 0x76
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22[metadata]
33name = pimoroni-bme280
4- version = 0.0.3
4+ version = 0.1.0
55author = Philip Howard
6677description = Python library for the bme280 temperature, pressure and humidity sensor
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ deps =
1515[testenv:qa]
1616commands =
1717 check-manifest --ignore tox.ini,tests/*,.coveragerc
18- python setup.py check -m -r -s
18+ python setup.py sdist bdist_wheel
19+ twine check dist/*
1920 flake8 --ignore E501
20- rstcheck README.rst
2121deps =
2222 check-manifest
2323 flake8
24- rstcheck
24+ twine
You can’t perform that action at this time.
0 commit comments