Skip to content

Commit eacb152

Browse files
authored
Merge pull request #64 from tannewt/fix_packaging
Fix packaging
2 parents 4621e97 + d99232a commit eacb152

File tree

7 files changed

+6
-31
lines changed

7 files changed

+6
-31
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ _build
44
.env
55
bundles
66
.DS_Store
7+
.eggs
8+
*.egg-info
9+
build
10+
dist

adafruit_ble/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"This release is not compatible with CircuitPython 4.x; use library release 1.x.x")
3434
#pylint: enable=wrong-import-position
3535

36-
import board
3736
import _bleio
3837

3938
from .services import Service

docs/conf.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44
import sys
55
sys.path.insert(0, os.path.abspath('..'))
6-
sys.path.insert(0, os.path.abspath('mocks'))
76

87
# -- General configuration ------------------------------------------------
98

@@ -21,7 +20,7 @@
2120
# Uncomment the below if you use native CircuitPython modules such as
2221
# digitalio, micropython and busio. List the modules you use. Without it, the
2322
# autodoc module docs will fail to generate with a warning.
24-
autodoc_mock_imports = ["board"]
23+
autodoc_mock_imports = ["board", "microcontroller"]
2524
autodoc_member_order = "bysource"
2625
add_module_names = False
2726

docs/mocks/_bleio.py

-20
This file was deleted.

docs/mocks/microcontroller.py

-1
This file was deleted.

docs/mocks/micropython.py

-2
This file was deleted.

setup.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,5 @@
5555
# What does your project relate to?
5656
keywords='adafruit blinka circuitpython micropython ble bluetooth',
5757

58-
# You can just specify the packages manually here if your project is
59-
# simple. Or you can use find_packages().
60-
# TODO: IF LIBRARY FILES ARE A PACKAGE FOLDER,
61-
# CHANGE `py_modules=['...']` TO `packages=['...']`
62-
packages=['adafruit_ble'],
58+
packages=find_packages(include=["adafruit_ble.*"]),
6359
)

0 commit comments

Comments
 (0)