Skip to content

Commit 08c6c8f

Browse files
committed
Prep for v0.0.4
1 parent 1c05561 commit 08c6c8f

File tree

7 files changed

+67
-39
lines changed

7 files changed

+67
-39
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ usage:
99
@echo "install: install the library locally from source"
1010
@echo "uninstall: uninstall the local library"
1111
@echo "check: peform basic integrity checks on the codebase"
12-
@echo "python-readme: generate library/README.rst from README.md"
12+
@echo "python-readme: generate library/README.md from README.md"
1313
@echo "python-wheels: build python .whl files for distribution"
1414
@echo "python-sdist: build python source distribution"
1515
@echo "python-clean: clean python build and dist directories"
@@ -36,12 +36,14 @@ check:
3636
tag:
3737
git tag -a "v${LIBRARY_VERSION}" -m "Version ${LIBRARY_VERSION}"
3838

39-
python-readme: library/README.rst
39+
python-readme: library/README.md
4040

4141
python-license: library/LICENSE.txt
4242

43-
library/README.rst: README.md
44-
pandoc --from=markdown --to=rst -o library/README.rst README.md
43+
library/README.md: README.md library/CHANGELOG.txt
44+
cp README.md library/README.md
45+
printf "\n# Changelog\n" >> library/README.md
46+
cat library/CHANGELOG.txt >> library/README.md
4547

4648
library/LICENSE.txt: LICENSE
4749
cp LICENSE library/LICENSE.txt

library/CHANGELOG.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
0.0.4
2+
-----
3+
4+
* Add support for forced-mode on demand i2c
5+
* Change altitude formula
6+
* Allow manual temperature compensation for altitude
7+
* Allow oversampling settings to be configured on `__init__`
8+
19
0.0.3
210
-----
311

library/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include CHANGELOG.txt
22
include LICENSE.txt
3-
include README.rst
3+
include README.md
44
include setup.py
55
recursive-include bmp280 *.py

library/README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# BMP280 Temperature, Pressure, & Altitude Sensor
2+
3+
[![Build Status](https://travis-ci.com/pimoroni/bmp280-python.svg?branch=master)](https://travis-ci.com/pimoroni/bmp280-python)
4+
[![Coverage Status](https://coveralls.io/repos/github/pimoroni/bmp280-python/badge.svg?branch=master)](https://coveralls.io/github/pimoroni/bmp280-python?branch=master)
5+
[![PyPi Package](https://img.shields.io/pypi/v/bmp280.svg)](https://pypi.python.org/pypi/bmp280)
6+
[![Python Versions](https://img.shields.io/pypi/pyversions/bmp280.svg)](https://pypi.python.org/pypi/bmp280)
7+
8+
Suitable for measuring ambient temperature, barometric pressure, and altitude, the BMP280 is a basic weather sensor.
9+
10+
# Installing
11+
12+
Stable library from PyPi:
13+
14+
* Just run `sudo pip install bmp280`
15+
16+
Latest/development library from GitHub:
17+
18+
* `git clone https://github.com/pimoroni/bmp280-python`
19+
* `cd bmp280-python`
20+
* `sudo ./install.sh`
21+
22+
23+
# Changelog
24+
0.0.4
25+
-----
26+
27+
* Add support for forced-mode on demand i2c
28+
* Change altitude formula
29+
* Allow manual temperature compensation for altitude
30+
* Allow oversampling settings to be configured on `__init__`
31+
32+
0.0.3
33+
-----
34+
35+
* Migrate to i2cdevice>=0.0.6 set/get API
36+
37+
0.0.2
38+
-----
39+
40+
* Added `get_altitude` method
41+
* Corrected pressure to hPa
42+
43+
0.0.1
44+
-----
45+
46+
* Initial Release

library/README.rst

Lines changed: 0 additions & 29 deletions
This file was deleted.

library/bmp280/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import time
66

77

8-
__version__ = '0.0.3'
8+
__version__ = '0.0.4'
99

1010
CHIP_ID = 0x58
1111
I2C_ADDRESS_GND = 0x76
@@ -199,8 +199,8 @@ def get_pressure(self):
199199
return self.pressure
200200

201201
def get_altitude(self, qnh=1013.25, manual_temperature=None):
202-
# qnh = pressure at sea level where the readings are being taken.
203-
# The temperature should be the outdoor temperature.
202+
# qnh = pressure at sea level where the readings are being taken.
203+
# The temperature should be the outdoor temperature.
204204
# Use the manual_temperature variable if temperature adjustments are required.
205205
self.update_sensor()
206206
pressure = self.get_pressure()

library/setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@
3939

4040
setup(
4141
name='bmp280',
42-
version='0.0.3',
42+
version='0.0.4',
4343
author='Philip Howard',
4444
author_email='phil@pimoroni.com',
4545
description="""Python library for the BMP280 temperature and pressure sensor""",
46-
long_description=open('README.rst').read() + '\n' + open('CHANGELOG.txt').read(),
46+
long_description=open('README.md').read(),
47+
long_description_content_type='text/markdown',
4748
license='MIT',
4849
keywords='Raspberry Pi',
4950
url='http://www.pimoroni.com',

0 commit comments

Comments
 (0)