forked from acts-project/acts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump Python version to 3.12 and update requirements (acts-proj…
…ect#2770) This PR updates the existing requirements for python-based CI jobs to the newest possible version. It also tries to enforce `python 3.12` (newest) wherever possible. ## Performance boost linux_examples_tests: 18.5 min -> 15 min ## Important changes/notes The `pytest-check 2.2.0..2.2.2` soft-break some CI checks. Therefore, we fix it to `2.1.5.` More to this in issue acts-project#2777 : - linux_test_examples (verified) - test_exatrkx_python (very likely) `uproot 5.x` and `awkward 2.x` change the root-hashes. The test `test_exatrkx_python` got a new separate requirements-file, because the test only runs on `ubuntu 20.04` which uses `python 3.8`. The newest `numpy` (for `awkward` and `uproot`) doesn't support `python 3.8` anymore. When we migrate this test to a newer `OS`, we can use the shared `requirements.txt` again. `clang_tidy` had to be adapted at a few points, since some of`pydantic`'s functionalities were deprecated. ## Side note to `pip-compile` Before generating a new `requirements.txt` one should delete the old one. Otherwise, the versions for the packages are not updated (makes sense to some extent). ## Blocked by other PRs We created files, that were referred to at places we did not check. - acts-project#2778 ## Other Questions The release-workflows still use `3.8`. Should we upgrade as well, or are we too afraid, to break something in there? https://github.com/acts-project/acts/blob/main/.github/workflows/release.yml https://github.com/acts-project/acts/blob/main/.github/workflows/release_pr.yml -> An update to the release script will come in - acts-project#2779
- Loading branch information
Showing
18 changed files
with
263 additions
and
222 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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
PyYAML | ||
pyyaml | ||
rich | ||
pydantic | ||
codereport |
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 |
---|---|---|
@@ -1,39 +1,47 @@ | ||
# | ||
# This file is autogenerated by pip-compile with python 3.9 | ||
# To update, run: | ||
# This file is autogenerated by pip-compile with Python 3.12 | ||
# by the following command: | ||
# | ||
# pip-compile CI/clang_tidy/requirements.in | ||
# | ||
annotated-types==0.6.0 | ||
# via pydantic | ||
appdirs==1.4.4 | ||
# via fs | ||
codereport==0.3.2 | ||
# via -r CI/clang_tidy/requirements.in | ||
commonmark==0.9.1 | ||
# via rich | ||
fs==2.4.16 | ||
# via codereport | ||
jinja2==3.1.2 | ||
# via codereport | ||
markupsafe==2.1.1 | ||
markdown-it-py==3.0.0 | ||
# via rich | ||
markupsafe==2.1.3 | ||
# via jinja2 | ||
pydantic==1.9.0 | ||
mdurl==0.1.2 | ||
# via markdown-it-py | ||
pydantic==2.5.2 | ||
# via -r CI/clang_tidy/requirements.in | ||
pygments==2.11.2 | ||
pydantic-core==2.14.5 | ||
# via pydantic | ||
pygments==2.17.2 | ||
# via | ||
# codereport | ||
# rich | ||
python-slugify==6.1.2 | ||
# via codereport | ||
pyyaml==6.0 | ||
pyyaml==6.0.1 | ||
# via -r CI/clang_tidy/requirements.in | ||
rich==12.2.0 | ||
rich==13.7.0 | ||
# via -r CI/clang_tidy/requirements.in | ||
six==1.16.0 | ||
# via fs | ||
text-unidecode==1.3 | ||
# via python-slugify | ||
typing-extensions==4.1.1 | ||
# via pydantic | ||
typing-extensions==4.8.0 | ||
# via | ||
# pydantic | ||
# pydantic-core | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# setuptools |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
pytest | ||
pytest-check | ||
pytest-check==2.1.5 | ||
uproot | ||
awkward | ||
pytest-rerunfailures | ||
pytest-xdist | ||
pyyaml |
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 |
---|---|---|
@@ -1,47 +1,41 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# This file is autogenerated by pip-compile with Python 3.12 | ||
# by the following command: | ||
# | ||
# pip-compile Examples/Python/tests/requirements.in | ||
# | ||
attrs==21.4.0 | ||
# via pytest | ||
awkward==1.7.0 | ||
# via -r Examples/Python/tests/requirements.in | ||
execnet==1.9.0 | ||
awkward==2.5.0 | ||
# via | ||
# -r Examples/Python/tests/requirements.in | ||
# uproot | ||
awkward-cpp==26 | ||
# via awkward | ||
execnet==2.0.2 | ||
# via pytest-xdist | ||
iniconfig==1.1.1 | ||
iniconfig==2.0.0 | ||
# via pytest | ||
numpy==1.22.2 | ||
numpy==1.26.2 | ||
# via | ||
# awkward | ||
# awkward-cpp | ||
# uproot | ||
packaging==21.3 | ||
# via pytest | ||
pluggy==1.0.0 | ||
# via pytest | ||
py==1.11.0 | ||
packaging==23.2 | ||
# via | ||
# awkward | ||
# pytest | ||
# uproot | ||
pluggy==1.3.0 | ||
# via pytest | ||
pyparsing==3.0.7 | ||
# via packaging | ||
pytest==7.0.1 | ||
pytest==7.4.3 | ||
# via | ||
# -r Examples/Python/tests/requirements.in | ||
# pytest-check | ||
# pytest-rerunfailures | ||
# pytest-xdist | ||
pytest-check==1.0.4 | ||
# via -r Examples/Python/tests/requirements.in | ||
pytest-rerunfailures==10.2 | ||
pytest-check==2.1.5 | ||
# via -r Examples/Python/tests/requirements.in | ||
pytest-xdist==3.2.1 | ||
pytest-xdist==3.5.0 | ||
# via -r Examples/Python/tests/requirements.in | ||
pyyaml==6.0 | ||
pyyaml==6.0.1 | ||
# via -r Examples/Python/tests/requirements.in | ||
tomli==2.0.1 | ||
# via pytest | ||
uproot==4.1.9 | ||
uproot==5.1.2 | ||
# via -r Examples/Python/tests/requirements.in | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# setuptools |
Oops, something went wrong.