diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c2c3dd2..093f471 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,12 @@ Changelog ========= +v0.12.0 +----------- + +- Add support for Python3.12 + + v0.11.0 ----------- diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ee89424..ee9f34e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -11,7 +11,7 @@ jobs: parameters: job_name: ubuntu20_cpython image_name: ubuntu-20.04 - python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] test_suites: all: venv/bin/pytest -n 2 -vvs --reruns 2 @@ -19,7 +19,7 @@ jobs: parameters: job_name: ubuntu22_cpython image_name: ubuntu-22.04 - python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] test_suites: all: venv/bin/pytest -n 2 -vvs --reruns 2 @@ -27,7 +27,7 @@ jobs: parameters: job_name: macos11_cpython image_name: macOS-11 - python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] test_suites: all: venv/bin/pytest -n 2 -vvs --reruns 2 @@ -35,7 +35,7 @@ jobs: parameters: job_name: macos12_cpython image_name: macOS-12 - python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] test_suites: all: venv/bin/pytest -n 2 -vvs --reruns 2 @@ -43,7 +43,7 @@ jobs: parameters: job_name: macos13_cpython image_name: macos-13 - python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] test_suites: all: venv/bin/pytest -n 2 -vvs --reruns 2 @@ -51,7 +51,7 @@ jobs: parameters: job_name: win2019_cpython image_name: windows-2019 - python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] test_suites: all: venv\Scripts\pytest -n 2 -vvs --reruns 2 @@ -59,6 +59,6 @@ jobs: parameters: job_name: win2022_cpython image_name: windows-2022 - python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] test_suites: all: venv\Scripts\pytest -n 2 -vvs --reruns 2 diff --git a/src/python_inspector/utils_pypi.py b/src/python_inspector/utils_pypi.py index afb75a3..2af5d57 100644 --- a/src/python_inspector/utils_pypi.py +++ b/src/python_inspector/utils_pypi.py @@ -102,16 +102,17 @@ TRACE_ULTRA_DEEP = False # Supported environments -PYTHON_VERSIONS = "36", "37", "38", "39", "310", "311", "27" +PYTHON_VERSIONS = "27", "36", "37", "38", "39", "310", "311", "312" PYTHON_DOT_VERSIONS_BY_VER = { + "27": "2.7", "36": "3.6", "37": "3.7", "38": "3.8", "39": "3.9", "310": "3.10", - "27": "2.7", "311": "3.11", + "312": "3.12", } valid_python_versions = list(PYTHON_DOT_VERSIONS_BY_VER.keys()) @@ -126,13 +127,14 @@ def get_python_dot_version(version): ABIS_BY_PYTHON_VERSION = { + "27": ["cp27", "cp27m"], "36": ["cp36", "cp36m", "abi3"], "37": ["cp37", "cp37m", "abi3"], "38": ["cp38", "cp38m", "abi3"], "39": ["cp39", "cp39m", "abi3"], "310": ["cp310", "cp310m", "abi3"], "311": ["cp311", "cp311m", "abi3"], - "27": ["cp27", "cp27m"], + "312": ["cp312", "cp312m", "abi3"], } PLATFORMS_BY_OS = {