-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: bundle devicetree Python package
dtsh implementation is tightly coupled to the edtlib (sometimes private) API, which: a) is part of the Zephyr project source tree (at zephyr/scripts/dts/python-devicetree): this is the "authoritative" source for the edtlib library source code b) has its own, work-in-progress, repository (as project zephyrproject-rtos/python-devicetree): it lacks behind (a) and is not intended for public use yet [1] c) is also available from PyPI (as project devicetree): this package also lacks behind a), and additionally its version numbers can't be easily matched with Zephyr tags The approach here is to: - NOT rely on PyPI to get edtlib (i.e.. remove 'devicetree' from the dtsh Python requirements in setup.py and friends) - bundle edtlib with dtsh, and update it with each new Zephyr stable version Limitation: bundling edtlib definitely plays against installing dtsh within the same Python virtual environment as west. [1]: https://github.com/zephyrproject-rtos/zephyr/tree/main/scripts/dts
- Loading branch information
Showing
10 changed files
with
5,465 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"include": [ | ||
"src", | ||
"tests" | ||
], | ||
|
||
"exclude": [ | ||
"tests/bindings" | ||
], | ||
|
||
"pythonVersion": "3.8", | ||
"pythonPlatform": "All", | ||
|
||
"venvPath": ".", | ||
"venv": ".venv", | ||
|
||
"executionEnvironments": [ | ||
{ | ||
"root": "tests", | ||
"extraPaths": [ | ||
"src" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# pytest configuration. | ||
# | ||
# See: | ||
# - https://docs.pytest.org/en/7.3.x/reference/customize.html#pytest-ini | ||
# - https://docs.pytest.org/en/7.3.x/reference/reference.html#ini-options-ref | ||
|
||
[pytest] | ||
testpaths = tests | ||
pythonpath = src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Python requirements for development/tests. | ||
# | ||
mypy | ||
types-PyYAML | ||
pyright | ||
pylint | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.