Skip to content

Commit

Permalink
Prep for v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Oct 30, 2020
1 parent 0b120a3 commit c7b8aec
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 11 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
LIBRARY_VERSION=$(shell grep version library/setup.cfg | awk -F" = " '{print $$2}')
LIBRARY_NAME=$(shell grep name library/setup.cfg | awk -F" = " '{print $$2}')
PACKAGE_NAME="bme280"

.PHONY: usage install uninstall
usage:
Expand Down Expand Up @@ -30,8 +31,8 @@ check:
@! grep -IUrn --color "" --exclude-dir=sphinx --exclude-dir=.tox --exclude-dir=.git --exclude=Makefile
@echo "Checking library/CHANGELOG.txt"
@cat library/CHANGELOG.txt | grep ^${LIBRARY_VERSION}
@echo "Checking library/${LIBRARY_NAME}/__init__.py"
@cat library/${LIBRARY_NAME}/__init__.py | grep "^__version__ = '${LIBRARY_VERSION}'"
@echo "Checking library/${PACKAGE_NAME}/__init__.py"
@cat library/${PACKAGE_NAME}/__init__.py | grep "^__version__ = '${LIBRARY_VERSION}'"

tag:
git tag -a "v${LIBRARY_VERSION}" -m "Version ${LIBRARY_VERSION}"
Expand Down
4 changes: 2 additions & 2 deletions examples/local_altitude.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from smbus import SMBus
from bme280 import BME280

print("""local_altitude.py -
print("""local_altitude.py -
Allows you to correct the QNH for your local area.
Do not rely on this approximation for landing planes.
Press Ctrl+C to exit!
Expand All @@ -19,7 +19,7 @@
bme280 = BME280(i2c_dev=bus)

# asks the user for their local QNH value and confirms it
local_qnh = input("""Please enter your local QNH value.
local_qnh = input("""Please enter your local QNH value.
You can find this by searching for a local METAR on the internet.
>""")
print("You have told us the QNH is", local_qnh)
Expand Down
1 change: 1 addition & 0 deletions library/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-----

* Switch to setup.cfg
* Match humidity compensation to BOSCH formula

0.0.2
-----
Expand Down
5 changes: 3 additions & 2 deletions library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ You can optionally run `sudo raspi-config` or the graphical Raspberry Pi Configu

# Installing

Stable library from PyPi:
Stable library from PyPi, the smbus library is also needed:

* Just run `sudo pip install pimoroni-bme280`
* Just run `sudo pip install pimoroni-bme280 smbus`

Latest/development library from GitHub:

Expand All @@ -34,6 +34,7 @@ Latest/development library from GitHub:
-----

* Switch to setup.cfg
* Match humidity compensation to BOSCH formula

0.0.2
-----
Expand Down
2 changes: 1 addition & 1 deletion library/bme280/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import time


__version__ = '0.0.2'
__version__ = '0.1.0'

CHIP_ID = 0x60
I2C_ADDRESS_GND = 0x76
Expand Down
2 changes: 1 addition & 1 deletion library/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
[metadata]
name = pimoroni-bme280
version = 0.0.3
version = 0.1.0
author = Philip Howard
author_email = phil@pimoroni.com
description = Python library for the bme280 temperature, pressure and humidity sensor
Expand Down
6 changes: 3 additions & 3 deletions library/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ deps =
[testenv:qa]
commands =
check-manifest --ignore tox.ini,tests/*,.coveragerc
python setup.py check -m -r -s
python setup.py sdist bdist_wheel
twine check dist/*
flake8 --ignore E501
rstcheck README.rst
deps =
check-manifest
flake8
rstcheck
twine

0 comments on commit c7b8aec

Please sign in to comment.