Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(package-managers/python)!: Support Python 3.11
Add "3.11" to the list of python versions which ORT allows to pass to `python-inspector` via the `-p` option. Doing so leads to a successful analysis of python projects which require python version 3.11. This also work for any analysis triggered from `Poetry.kt` via the approch to generate the `requirements` file from `pyproject.toml`. In particular, this works without upgrading the installed python verison to `3.11` The change is breaking, because also the default Python version is changed to 3.11. For analyzing Python projects targeting 3.10 the Python version as of now must be explicitly specified. Note: The reason why binary URL of `MarkupSafe` became empty seems to be, because there is just no release artifact for Python version 3.11, see [1]. The reason why the package did not disappear at all is not entirely understood. However, `pyproject.toml` only defines `^3.6` as contraint for the Python version. So, this explains why `MarkupSafe` is contained in the requirements file generated by `poetry export` [2]. Python inspector probably should not report `MarkupSafe` 2.0.1 as dependency, because it has not been released for that python version. [1] https://pypi.org/project/MarkupSafe/2.0.1/#files [2] `markupsafe==2.0.1 ; python_version>="3.6" and python_version<"4.0"` Signed-off-by: Frank Viernau <[email protected]>
- Loading branch information