From 70b891367f76787ca1b6a650a83eb2010d5407db Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 19 Feb 2020 12:23:04 -0800 Subject: [PATCH] Remove _bleio `_bleio` is now provided by the [`adafruit-blinka-bleio`]( https://github.com/adafruit/Adafruit_Blinka_bleio) package. --- setup.py | 2 +- src/_bleio.py | 46 ---------------------------------------------- 2 files changed, 1 insertion(+), 47 deletions(-) delete mode 100755 src/_bleio.py diff --git a/setup.py b/setup.py index a33cfc7..073fd18 100755 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ setup( packages=find_packages("src"), # py_modules lists top-level single file packages to include. # find_packages only finds packages in directories with __init__.py files. - py_modules=['_bleio', 'analogio', 'bitbangio', 'board', 'busio', 'digitalio', 'micropython', 'pulseio', 'neopixel_write'], + py_modules=['analogio', 'bitbangio', 'board', 'busio', 'digitalio', 'micropython', 'pulseio', 'neopixel_write'], package_data={'adafruit_blinka.microcontroller.bcm283x.pulseio': ['libgpiod_pulsein']}, install_requires=[ "Adafruit-PlatformDetect", diff --git a/src/_bleio.py b/src/_bleio.py deleted file mode 100755 index d6c1426..0000000 --- a/src/_bleio.py +++ /dev/null @@ -1,46 +0,0 @@ -"""This is a stub of _bleio for use in GitHub Actions CI. It is NOT meant to provide _bleio - functionality in CPython.""" - -adapter = None - -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 Descriptor: - @staticmethod - def add_to_characteristic(characteristic, uuid, *, read_perm=Attribute.OPEN, - write_perm=Attribute.OPEN, max_length=20, fixed_length=False, - initial_value=b''): - pass - -class CharacteristicBuffer: - pass - -class PacketBuffer: - pass - -class Characteristic: - BROADCAST = 0 - READ = 0 - WRITE = 0 - NOTIFY = 0 - INDICATE = 0 - WRITE_NO_RESPONSE = 0 - - @staticmethod - def add_to_service(service, uuid, *, properties=0, read_perm=Attribute.OPEN, - write_perm=Attribute.OPEN, max_length=20, fixed_length=False, - initial_value=None): - raise NotImplementedError() - - -- 2.49.0