InvenTree/.github/workflows
Matthias Mair a205fd5967
Fixes to make compatible with Python 3.12 (#7112)
* Remove use of deprecated imp.load_source

The entire `imp` module has been removed from Python 3.12. This patch applies the recommended replacement using `importlib`.

* Fix usage of from importlib.metadata.entry_points to work with newer importlib & Python 3.12

* Update registry.py

Fix order of imports

* Use importlib.util.module_from_spec() instead of deprecated load_module()

* auto-fixed import style (isort)

* enable py 12

* run coverage for lower and upper bound

* fix style error

* make import conditional

* fix?

* fix env

* style fix

* only use new loader on 3.12

* fix order

* fix module loading

* reimplement assertDictContainsSubset

* remove old testing alias

---------

Co-authored-by: Thea Flowers <thea@winterbloom.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-04-29 20:59:24 +10:00
..
backport.yaml [CI] Small nitpick changes (#7016) 2024-04-21 22:20:13 +10:00
check_translations.yaml [CI] Small nitpick changes (#7016) 2024-04-21 22:20:13 +10:00
docker.yaml fix ci filters (#7121) 2024-04-27 10:51:42 +10:00
qc_checks.yaml Fixes to make compatible with Python 3.12 (#7112) 2024-04-29 20:59:24 +10:00
release.yaml Pin hashes in requirements (#7081) 2024-04-23 17:15:52 +10:00
scorecard.yaml [CI] Small nitpick changes (#7016) 2024-04-21 22:20:13 +10:00
stale.yaml [CI] Small nitpick changes (#7016) 2024-04-21 22:20:13 +10:00
translations.yaml [CI] Small nitpick changes (#7016) 2024-04-21 22:20:13 +10:00
update.yml.disabled Pin hashes in requirements (#7081) 2024-04-23 17:15:52 +10:00