From: Phil Howard Date: Fri, 7 Jun 2019 11:10:16 +0000 (+0100) Subject: rename envirophatplus -> enviroplus X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/commitdiff_plain/8ab4cd2dbb0d51048f01e92a712e61d5da4fa120?ds=inline;hp=-c rename envirophatplus -> enviroplus --- 8ab4cd2dbb0d51048f01e92a712e61d5da4fa120 diff --git a/README.md b/README.md index afdf462..d73c32e 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@ # 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: -* Just run `sudo pip install envirophatplus` +* Just run `sudo pip install enviroplus` 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` diff --git a/examples/gas.py b/examples/gas.py index 6da2a65..8717922 100755 --- a/examples/gas.py +++ b/examples/gas.py @@ -1,13 +1,13 @@ #!/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! - + """) try: diff --git a/examples/light.py b/examples/light.py index aa895f1..5700eb1 100755 --- a/examples/light.py +++ b/examples/light.py @@ -7,7 +7,7 @@ import ltr559 print("""light.py - Print readings from the LTR559 Light & Proximity sensor. Press Ctrl+C to exit! - + """) try: diff --git a/examples/particles.py b/examples/particles.py index f34e0d4..6123ad2 100755 --- a/examples/particles.py +++ b/examples/particles.py @@ -7,7 +7,7 @@ from pms5003 import PMS5003 print("""particles.py - Print readings from the PM5003 Particle sensor. Press Ctrl+C to exit! - + """) pms5003 = PMS5003() diff --git a/library/.coveragerc b/library/.coveragerc index ee01f7f..48d2b51 100644 --- a/library/.coveragerc +++ b/library/.coveragerc @@ -1,4 +1,4 @@ [run] -source = envirophatplus +source = enviroplus omit = .tox/* diff --git a/library/MANIFEST.in b/library/MANIFEST.in index c2d4aa6..43329d9 100644 --- a/library/MANIFEST.in +++ b/library/MANIFEST.in @@ -2,4 +2,4 @@ include CHANGELOG.txt include LICENSE.txt include README.rst include setup.py -recursive-include envirophatplus *.py +recursive-include enviroplus *.py diff --git a/library/README.rst b/library/README.rst index 6e2d507..72c7ff4 100644 --- a/library/README.rst +++ b/library/README.rst @@ -8,19 +8,19 @@ Installing Stable library from PyPi: -- Just run ``sudo pip install envirophatplus`` +- Just run ``sudo pip install enviroplus`` 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`` -.. |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 diff --git a/library/envirophatplus/__init__.py b/library/enviroplus/__init__.py similarity index 100% rename from library/envirophatplus/__init__.py rename to library/enviroplus/__init__.py diff --git a/library/envirophatplus/gas.py b/library/enviroplus/gas.py similarity index 100% rename from library/envirophatplus/gas.py rename to library/enviroplus/gas.py diff --git a/library/envirophatplus/noise.py b/library/enviroplus/noise.py similarity index 100% rename from library/envirophatplus/noise.py rename to library/enviroplus/noise.py diff --git a/library/setup.py b/library/setup.py index 9d0a024..23a965f 100755 --- a/library/setup.py +++ b/library/setup.py @@ -38,7 +38,7 @@ classifiers = ['Development Status :: 4 - Beta', 'Topic :: System :: Hardware'] setup( - name='envirophatplus', + name='enviroplus', 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', - project_urls={'GitHub': 'https://www.github.com/pimoroni/envirophatplus-python'}, + project_urls={'GitHub': 'https://www.github.com/pimoroni/enviroplus-python'}, classifiers=classifiers, - packages=['envirophatplus'], + packages=['enviroplus'], install_requires=['pimoroni-bme280', 'pms5003', 'ltr559', 'st7735', 'ads1015'] ) diff --git a/library/tests/test_setup.py b/library/tests/test_setup.py index af3ed82..b912a37 100644 --- a/library/tests/test_setup.py +++ b/library/tests/test_setup.py @@ -15,7 +15,7 @@ def test_gas_setup(): smbus = mock.Mock() smbus.SMBus = SMBusFakeDevice sys.modules['smbus'] = smbus - from envirophatplus import gas + from enviroplus import gas gas.setup() gas.setup() @@ -26,7 +26,7 @@ def test_gas_read_all(): 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 @@ -47,7 +47,7 @@ def test_gas_read_each(): 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