rename envirophatplus -> enviroplus
authorPhil Howard <phil@gadgetoid.com>
Fri, 7 Jun 2019 11:10:16 +0000 (12:10 +0100)
committerPhil Howard <phil@gadgetoid.com>
Fri, 7 Jun 2019 11:10:16 +0000 (12:10 +0100)
12 files changed:
README.md
examples/gas.py
examples/light.py
examples/particles.py
library/.coveragerc
library/MANIFEST.in
library/README.rst
library/enviroplus/__init__.py [moved from library/envirophatplus/__init__.py with 100% similarity]
library/enviroplus/gas.py [moved from library/envirophatplus/gas.py with 100% similarity]
library/enviroplus/noise.py [moved from library/envirophatplus/noise.py with 100% similarity]
library/setup.py
library/tests/test_setup.py

index afdf46276e8b76f7e7ae8c17d8cd419f5c6eb501..d73c32e1b91373b7c7219f897e23cec611827001 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,19 +1,19 @@
 # Enviro pHAT Plus
 
 # Enviro pHAT Plus
 
-[![Build Status](https://travis-ci.com/pimoroni/envirophatplus-python.svg?branch=master)](https://travis-ci.com/pimoroni/envirophatplus-python)
-[![Coverage Status](https://coveralls.io/repos/github/pimoroni/envirophatplus-python/badge.svg?branch=master)](https://coveralls.io/github/pimoroni/envirophatplus-python?branch=master)
-[![PyPi Package](https://img.shields.io/pypi/v/envirophatplus.svg)](https://pypi.python.org/pypi/envirophatplus)
-[![Python Versions](https://img.shields.io/pypi/pyversions/envirophatplus.svg)](https://pypi.python.org/pypi/envirophatplus)
+[![Build Status](https://travis-ci.com/pimoroni/enviroplus-python.svg?branch=master)](https://travis-ci.com/pimoroni/enviroplus-python)
+[![Coverage Status](https://coveralls.io/repos/github/pimoroni/enviroplus-python/badge.svg?branch=master)](https://coveralls.io/github/pimoroni/enviroplus-python?branch=master)
+[![PyPi Package](https://img.shields.io/pypi/v/enviroplus.svg)](https://pypi.python.org/pypi/enviroplus)
+[![Python Versions](https://img.shields.io/pypi/pyversions/enviroplus.svg)](https://pypi.python.org/pypi/enviroplus)
 
 # Installing
 
 Stable library from PyPi:
 
 
 # Installing
 
 Stable library from PyPi:
 
-* Just run `sudo pip install envirophatplus`
+* Just run `sudo pip install enviroplus`
 
 Latest/development library from GitHub:
 
 
 Latest/development library from GitHub:
 
-* `git clone https://github.com/pimoroni/envirophatplus-python`
-* `cd envirophatplus-python`
+* `git clone https://github.com/pimoroni/enviroplus-python`
+* `cd enviroplus-python`
 * `sudo ./install.sh`
 
 * `sudo ./install.sh`
 
index 6da2a65f9cbf3f1cb66ef5a33377413399871c3f..8717922cdfc9d4122d2e501f64c6e67f35dbb89c 100755 (executable)
@@ -1,13 +1,13 @@
 #!/usr/bin/env python
 
 import time
 #!/usr/bin/env python
 
 import time
-from envirophatplus import gas
+from enviroplus import gas
 
 
 print("""gas.py - Print readings from the MICS6812 Gas sensor.
 
 Press Ctrl+C to exit!
 
 
 print("""gas.py - Print readings from the MICS6812 Gas sensor.
 
 Press Ctrl+C to exit!
-        
+
 """)
 
 try:
 """)
 
 try:
index aa895f1131a9fcd96ed1e893460f5907156af449..5700eb1f43fcbc42ccd1eca876375cc6d83fabea 100755 (executable)
@@ -7,7 +7,7 @@ import ltr559
 print("""light.py - Print readings from the LTR559 Light & Proximity sensor.
 
 Press Ctrl+C to exit!
 print("""light.py - Print readings from the LTR559 Light & Proximity sensor.
 
 Press Ctrl+C to exit!
-        
+
 """)
 
 try:
 """)
 
 try:
index f34e0d4f99150a0218e0c1d8fc896c3924f5cd9d..6123ad2934debe7b2b108455dc07716e02e9d111 100755 (executable)
@@ -7,7 +7,7 @@ from pms5003 import PMS5003
 print("""particles.py - Print readings from the PM5003 Particle sensor.
 
 Press Ctrl+C to exit!
 print("""particles.py - Print readings from the PM5003 Particle sensor.
 
 Press Ctrl+C to exit!
-        
+
 """)
 
 pms5003 = PMS5003()
 """)
 
 pms5003 = PMS5003()
index ee01f7faac9a58b1f28c0456a69e1d685f600225..48d2b5157e9e0ec73c481c84cb81ae66fb9048c2 100644 (file)
@@ -1,4 +1,4 @@
 [run]
 [run]
-source = envirophatplus
+source = enviroplus
 omit =
     .tox/*
 omit =
     .tox/*
index c2d4aa653ea7abdc119c4482fdd5940e8afe1df6..43329d99a3cb5bbe3479296dc3c7f0ab0b6afbbe 100644 (file)
@@ -2,4 +2,4 @@ include CHANGELOG.txt
 include LICENSE.txt
 include README.rst
 include setup.py
 include LICENSE.txt
 include README.rst
 include setup.py
-recursive-include envirophatplus *.py
+recursive-include enviroplus *.py
index 6e2d507b0080d4946b69c2b090f380761d8d2134..72c7ff4af0a5907454b90fa52ed5448978673662 100644 (file)
@@ -8,19 +8,19 @@ Installing
 
 Stable library from PyPi:
 
 
 Stable library from PyPi:
 
--  Just run ``sudo pip install envirophatplus``
+-  Just run ``sudo pip install enviroplus``
 
 Latest/development library from GitHub:
 
 
 Latest/development library from GitHub:
 
--  ``git clone https://github.com/pimoroni/envirophatplus-python``
--  ``cd envirophatplus-python``
+-  ``git clone https://github.com/pimoroni/enviroplus-python``
+-  ``cd enviroplus-python``
 -  ``sudo ./install.sh``
 
 -  ``sudo ./install.sh``
 
-.. |Build Status| image:: https://travis-ci.com/pimoroni/envirophatplus-python.svg?branch=master
-   :target: https://travis-ci.com/pimoroni/envirophatplus-python
-.. |Coverage Status| image:: https://coveralls.io/repos/github/pimoroni/envirophatplus-python/badge.svg?branch=master
-   :target: https://coveralls.io/github/pimoroni/envirophatplus-python?branch=master
-.. |PyPi Package| image:: https://img.shields.io/pypi/v/envirophatplus.svg
-   :target: https://pypi.python.org/pypi/envirophatplus
-.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/envirophatplus.svg
-   :target: https://pypi.python.org/pypi/envirophatplus
+.. |Build Status| image:: https://travis-ci.com/pimoroni/enviroplus-python.svg?branch=master
+   :target: https://travis-ci.com/pimoroni/enviroplus-python
+.. |Coverage Status| image:: https://coveralls.io/repos/github/pimoroni/enviroplus-python/badge.svg?branch=master
+   :target: https://coveralls.io/github/pimoroni/enviroplus-python?branch=master
+.. |PyPi Package| image:: https://img.shields.io/pypi/v/enviroplus.svg
+   :target: https://pypi.python.org/pypi/enviroplus
+.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/enviroplus.svg
+   :target: https://pypi.python.org/pypi/enviroplus
index 9d0a0244bb42b499aebd805e3944a0333fb2347d..23a965fffee07510dbb34b56cbee78e5c366be67 100755 (executable)
@@ -38,7 +38,7 @@ classifiers = ['Development Status :: 4 - Beta',
                'Topic :: System :: Hardware']
 
 setup(
                'Topic :: System :: Hardware']
 
 setup(
-    name='envirophatplus',
+    name='enviroplus',
     version='0.0.1',
     author='Philip Howard',
     author_email='phil@pimoroni.com',
     version='0.0.1',
     author='Philip Howard',
     author_email='phil@pimoroni.com',
@@ -47,8 +47,8 @@ setup(
     license='MIT',
     keywords='Raspberry Pi',
     url='http://www.pimoroni.com',
     license='MIT',
     keywords='Raspberry Pi',
     url='http://www.pimoroni.com',
-    project_urls={'GitHub': 'https://www.github.com/pimoroni/envirophatplus-python'},
+    project_urls={'GitHub': 'https://www.github.com/pimoroni/enviroplus-python'},
     classifiers=classifiers,
     classifiers=classifiers,
-    packages=['envirophatplus'],
+    packages=['enviroplus'],
     install_requires=['pimoroni-bme280', 'pms5003', 'ltr559', 'st7735', 'ads1015']
 )
     install_requires=['pimoroni-bme280', 'pms5003', 'ltr559', 'st7735', 'ads1015']
 )
index af3ed82d2694956ebacf5b3aa6bf82ad5152c2c5..b912a3764ee7bcf414c3856aded295ce719af1e0 100644 (file)
@@ -15,7 +15,7 @@ def test_gas_setup():
     smbus = mock.Mock()
     smbus.SMBus = SMBusFakeDevice
     sys.modules['smbus'] = smbus
     smbus = mock.Mock()
     smbus.SMBus = SMBusFakeDevice
     sys.modules['smbus'] = smbus
-    from envirophatplus import gas
+    from enviroplus import gas
     gas.setup()
     gas.setup()
 
     gas.setup()
     gas.setup()
 
@@ -26,7 +26,7 @@ def test_gas_read_all():
     smbus = mock.Mock()
     smbus.SMBus = SMBusFakeDevice
     sys.modules['smbus'] = smbus
     smbus = mock.Mock()
     smbus.SMBus = SMBusFakeDevice
     sys.modules['smbus'] = smbus
-    from envirophatplus import gas
+    from enviroplus import gas
     result = gas.read_all()
 
     assert type(result.oxidising) == float
     result = gas.read_all()
 
     assert type(result.oxidising) == float
@@ -47,7 +47,7 @@ def test_gas_read_each():
     smbus = mock.Mock()
     smbus.SMBus = SMBusFakeDevice
     sys.modules['smbus'] = smbus
     smbus = mock.Mock()
     smbus.SMBus = SMBusFakeDevice
     sys.modules['smbus'] = smbus
-    from envirophatplus import gas
+    from enviroplus import gas
 
     assert int(gas.read_oxidising()) == 16641
     assert int(gas.read_reducing()) == 16727
 
     assert int(gas.read_oxidising()) == 16641
     assert int(gas.read_reducing()) == 16727