From dd51f7a8d5db2003798af9263948c3437156fc3f Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 18 Dec 2019 16:02:29 -0800 Subject: [PATCH 1/3] A couple fixes --- .github/workflows/build.yml | 2 +- README.rst | 2 +- requirements.txt | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54c6663..b6ca849 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,7 @@ jobs: sudo apt-get install -y gettext pip install -r requirements.txt pip install circuitpython-build-tools Sphinx sphinx-rtd-theme - pip install --force-reinstall pylint==1.9.2 + pip install --force-reinstall "pylint<3" - name: Library version run: git describe --dirty --always --tags - name: PyLint diff --git a/README.rst b/README.rst index ccf5e2d..c5b731a 100644 --- a/README.rst +++ b/README.rst @@ -14,7 +14,7 @@ Introduction :alt: Build Status BLE service for Magic Light BLE RGB bulbs. Available from Amazon -[here](https://www.amazon.com/gp/product/B073S1KV4F). +`here `_. Dependencies diff --git a/requirements.txt b/requirements.txt index cd28fed..edf9394 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1 @@ Adafruit-Blinka -adafruit-circuitpython-ble From 064bf98013c7e2a11b021a9fda884f0ef6b0fe79 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 18 Dec 2019 16:38:10 -0800 Subject: [PATCH 2/3] Mock out adafruit_ble --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 5145ecd..dabece1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -20,7 +20,7 @@ # Uncomment the below if you use native CircuitPython modules such as # digitalio, micropython and busio. List the modules you use. Without it, the # autodoc module docs will fail to generate with a warning. -# autodoc_mock_imports = ["digitalio", "busio"] +autodoc_mock_imports = ["adafruit_ble"] intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)} From 5da5d198dfb88e2d519927787db91affe31ee045 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 18 Dec 2019 17:11:07 -0800 Subject: [PATCH 3/3] Fixup services import --- adafruit_ble_magic_light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_ble_magic_light.py b/adafruit_ble_magic_light.py index 6a39b0f..1382238 100644 --- a/adafruit_ble_magic_light.py +++ b/adafruit_ble_magic_light.py @@ -28,7 +28,7 @@ """ -from adafruit_ble.service import Service +from adafruit_ble.services import Service from adafruit_ble.uuid import VendorUUID from adafruit_ble.characteristics import Characteristic