InvenTree/src/backend
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
..
InvenTree Fixes to make compatible with Python 3.12 (#7112) 2024-04-29 20:59:24 +10:00
eslint.config.js Bump eslint from 8.57.0 to 9.0.0 in /src/backend (#6979) 2024-04-19 22:11:17 +10:00
package-lock.json Bump eslint in /src/backend in the dependencies group (#7100) 2024-04-25 10:49:19 +10:00
package.json Bump eslint in /src/backend in the dependencies group (#7100) 2024-04-25 10:49:19 +10:00
requirements-dev.in Remove coveralls integration (#7099) 2024-04-23 08:42:31 +10:00
requirements-dev.txt Pin hashes in requirements (#7081) 2024-04-23 17:15:52 +10:00
requirements.in [PUI] Add licenses texts to PUI (#6855) 2024-04-04 10:31:20 +11:00
requirements.txt Bump idna from 3.6 to 3.7 in /src/backend (#7110) 2024-04-23 21:05:29 +10:00