Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/python_inspector/utils_pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
TRACE_ULTRA_DEEP = False

# Supported environments
PYTHON_VERSIONS = "27", "36", "37", "38", "39", "310", "311", "312"
PYTHON_VERSIONS = "27", "36", "37", "38", "39", "310", "311", "312", "313"

PYTHON_DOT_VERSIONS_BY_VER = {
"27": "2.7",
Expand All @@ -113,6 +113,7 @@
"310": "3.10",
"311": "3.11",
"312": "3.12",
"313": "3.13",
}

valid_python_versions = list(PYTHON_DOT_VERSIONS_BY_VER.keys())
Expand All @@ -135,6 +136,7 @@ def get_python_dot_version(version):
"310": ["cp310", "cp310m", "abi3"],
"311": ["cp311", "cp311m", "abi3"],
"312": ["cp312", "cp312m", "abi3"],
"313": ["cp313", "cp313m", "abi3"],
}

PLATFORMS_BY_OS = {
Expand Down
2,629 changes: 2,629 additions & 0 deletions tests/data/azure-devops.req-313-expected.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_api_with_unsupported_os():

def test_api_with_wrong_pyver():
with pytest.raises(ValueError):
resolver_api(specifiers=["flask==2.1.2"], python_version="3.13", operating_system="linux")
resolver_api(specifiers=["flask==2.1.2"], python_version="3.14", operating_system="linux")


def test_api_with_python_311():
Expand Down
18 changes: 18 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,24 @@ def test_cli_with_azure_devops_with_python_312():
)


@pytest.mark.online
def test_cli_with_azure_devops_with_python_313():
requirements_file = test_env.get_test_loc("azure-devops.req.txt")
expected_file = test_env.get_test_loc("azure-devops.req-313-expected.json", must_exist=False)
extra_options = [
"--operating-system",
"linux",
"--python-version",
"313",
]
check_requirements_resolution(
requirements_file=requirements_file,
expected_file=expected_file,
extra_options=extra_options,
regen=REGEN_TEST_FIXTURES,
)


@pytest.mark.online
def test_cli_with_azure_devops_with_python_38():
requirements_file = test_env.get_test_loc("azure-devops.req.txt")
Expand Down
Loading