pybricks: move into src/ directory

Moving the pybricks package into a src/ directory so that we can add
additional packages without polluting the top-level directory.
This commit is contained in:
David Lechner
2021-07-14 09:41:30 +02:00
committed by laurensvalk
parent 5a8baeff4c
commit 7126431f9f
29 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ from sphinx.domains.python import PyClassmember, PythonDomain
import toml
TOP_DIR = os.path.abspath(os.path.join('..', '..'))
sys.path.insert(0, TOP_DIR)
sys.path.insert(0, os.path.join(TOP_DIR, 'src'))
sys.path.append(os.path.abspath('../common/extensions'))
from pybricks.hubs import EV3Brick # noqa E402
+3 -1
View File
@@ -13,7 +13,9 @@ classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: Implementation :: MicroPython",
]
include = ["pybricks/py.typed"]
packages = [
{ include = "pybricks", from = "src" },
]
[tool.poetry.dependencies]
python = "^3.8"