diff --git a/.gitignore b/.gitignore index 2e24c88..7702655 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,7 @@ _build .env bundles .DS_Store +.eggs +*.egg-info +build +dist diff --git a/adafruit_ble/__init__.py b/adafruit_ble/__init__.py index f3facc7..2b7d761 100755 --- a/adafruit_ble/__init__.py +++ b/adafruit_ble/__init__.py @@ -33,7 +33,6 @@ "This release is not compatible with CircuitPython 4.x; use library release 1.x.x") #pylint: enable=wrong-import-position -import board import _bleio from .services import Service diff --git a/docs/conf.py b/docs/conf.py index 5f4535c..8485cc8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -3,7 +3,6 @@ import os import sys sys.path.insert(0, os.path.abspath('..')) -sys.path.insert(0, os.path.abspath('mocks')) # -- General configuration ------------------------------------------------ @@ -21,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 = ["board"] +autodoc_mock_imports = ["board", "microcontroller"] autodoc_member_order = "bysource" add_module_names = False diff --git a/docs/mocks/_bleio.py b/docs/mocks/_bleio.py deleted file mode 100644 index 60887a8..0000000 --- a/docs/mocks/_bleio.py +++ /dev/null @@ -1,20 +0,0 @@ -class Attribute: - NO_ACCESS = 0 - OPEN = 0 - ENCRYPT_NO_MITM = 0 - ENCRYPT_WITH_MITM = 0 - LESC_ENCRYPT_WITH_MITM = 0 - SIGNED_NO_MITM = 0 - SIGNED_WITH_MITM = 0 - -class UUID: - def __init__(self, uuid): - pass - -class Characteristic: - BROADCAST = 0 - READ = 0 - WRITE = 0 - NOTIFY = 0 - INDICATE = 0 - WRITE_NO_RESPONSE = 0 diff --git a/docs/mocks/microcontroller.py b/docs/mocks/microcontroller.py deleted file mode 100644 index 8b13789..0000000 --- a/docs/mocks/microcontroller.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/mocks/micropython.py b/docs/mocks/micropython.py deleted file mode 100644 index b5af9b3..0000000 --- a/docs/mocks/micropython.py +++ /dev/null @@ -1,2 +0,0 @@ -def const(x): - return x diff --git a/setup.py b/setup.py index cf7fc1a..730c78f 100644 --- a/setup.py +++ b/setup.py @@ -55,9 +55,5 @@ # What does your project relate to? keywords='adafruit blinka circuitpython micropython ble bluetooth', - # You can just specify the packages manually here if your project is - # simple. Or you can use find_packages(). - # TODO: IF LIBRARY FILES ARE A PACKAGE FOLDER, - # CHANGE `py_modules=['...']` TO `packages=['...']` - packages=['adafruit_ble'], + packages=find_packages(include=["adafruit_ble.*"]), )