Skip to content

Commit c7b8aec

Browse files
committed
Prep for v0.1.0
1 parent 0b120a3 commit c7b8aec

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
LIBRARY_VERSION=$(shell grep version library/setup.cfg | awk -F" = " '{print $$2}')
22
LIBRARY_NAME=$(shell grep name library/setup.cfg | awk -F" = " '{print $$2}')
3+
PACKAGE_NAME="bme280"
34

45
.PHONY: usage install uninstall
56
usage:
@@ -30,8 +31,8 @@ check:
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

3637
tag:
3738
git tag -a "v${LIBRARY_VERSION}" -m "Version ${LIBRARY_VERSION}"

examples/local_altitude.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from smbus import SMBus
99
from bme280 import BME280
1010

11-
print("""local_altitude.py -
11+
print("""local_altitude.py -
1212
Allows you to correct the QNH for your local area.
1313
Do not rely on this approximation for landing planes.
1414
Press Ctrl+C to exit!
@@ -19,7 +19,7 @@
1919
bme280 = 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.
2323
You can find this by searching for a local METAR on the internet.
2424
>""")
2525
print("You have told us the QNH is", local_qnh)

library/CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
-----
33

44
* Switch to setup.cfg
5+
* Match humidity compensation to BOSCH formula
56

67
0.0.2
78
-----

library/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

2424
Latest/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

3839
0.0.2
3940
-----

library/bme280/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import time
66

77

8-
__version__ = '0.0.2'
8+
__version__ = '0.1.0'
99

1010
CHIP_ID = 0x60
1111
I2C_ADDRESS_GND = 0x76

library/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
[metadata]
33
name = pimoroni-bme280
4-
version = 0.0.3
4+
version = 0.1.0
55
author = Philip Howard
66
author_email = [email protected]
77
description = Python library for the bme280 temperature, pressure and humidity sensor

library/tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ deps =
1515
[testenv:qa]
1616
commands =
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
2121
deps =
2222
check-manifest
2323
flake8
24-
rstcheck
24+
twine

0 commit comments

Comments
 (0)