-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding 'tox' [^1] makes it possible to test xocto against multiple versions of Python. [^1]: https://tox.wiki/
- Loading branch information
1 parent
a7b7d6a
commit d3e01e9
Showing
4 changed files
with
64 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,17 @@ their own pull requests. | |
When you are ready, commit both `pyproject.toml` and | ||
`requirements.txt`. | ||
|
||
## tox | ||
|
||
Run [tox](https://tox.wiki/) to test the package on supported versions | ||
of Python. | ||
|
||
Each versions of Python listed in `tox.ini` must be present on your | ||
system. On Linux it is probably easiest to build each version from | ||
source, using `make altinstall`. | ||
If you use Mac you can install each version using homebrew e.g., | ||
`brew install [email protected]`. | ||
|
||
## Publishing | ||
|
||
### Version number | ||
|
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
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,15 @@ | ||
[tox] | ||
min_version = 4.0 | ||
envlist = py39 | ||
|
||
[testenv] | ||
# Install wheels instead of source distributions for faster execution. | ||
package = wheel | ||
# Share the build environment between tox environments. | ||
wheel_build_env = .pkg | ||
|
||
# Run type checking because 'typing' and related packages vary among versions of Python | ||
allowlist_externals = make | ||
commands = | ||
uv pip sync requirements.txt | ||
make test mypy |