ansible-test - Prepare for Python 3.13 (#83414)

Includes an update to `coverage` and pinned Python requirements.
pull/83426/head
Matt Clay 2 years ago committed by GitHub
parent d16ad25e4b
commit 14df8c2cf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - Update ``coverage`` to version 7.5.3.

@ -1,2 +1,2 @@
# The test-constraints sanity test verifies this file, but changes must be made manually to keep it in up-to-date.
coverage == 7.3.2 ; python_version >= '3.8' and python_version <= '3.12'
coverage == 7.5.3 ; python_version >= '3.8' and python_version <= '3.13'

@ -9,3 +9,5 @@ requests-ntlm >= 1.1.0 # message encryption support
requests-credssp >= 0.1.0 # message encryption support
mock >= 2.0.0 # needed for features backported from Python 3.6 unittest.mock (assert_called, assert_called_once...)
pytest-mock >= 1.4.0 # needed for mock_use_standalone_module pytest option
cffi == 1.17.0rc1 ; python_version >= '3.13' # temporary hack to support Python 3.13
pyyaml == 6.0.2rc1 ; python_version >= '3.13' # temporary hack to support Python 3.13

@ -69,7 +69,7 @@ class CoverageVersion:
COVERAGE_VERSIONS = (
# IMPORTANT: Keep this in sync with the ansible-test.txt requirements file.
CoverageVersion('7.3.2', 7, (3, 8), (3, 12)),
CoverageVersion('7.5.3', 7, (3, 8), (3, 13)),
)
"""
This tuple specifies the coverage version to use for Python version ranges.

@ -412,9 +412,9 @@ def get_venv_packages(python: PythonConfig) -> dict[str, str]:
# See: https://github.com/ansible/base-test-container/blob/main/files/installer.py
default_packages = dict(
pip='23.1.2',
setuptools='67.7.2',
wheel='0.37.1',
pip='24.0',
setuptools='70.0.0',
wheel='0.43.0',
)
override_packages: dict[str, dict[str, str]] = {

@ -53,14 +53,14 @@ customize_bashrc()
fi
# Improve shell prompts for interactive use.
echo "export PS1='\[\e]0;\u@\h: \w\a\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> ~/.bashrc
echo "export PS1='"'\[\e]0;\u@\h: \w\a\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '"'" >> ~/.bashrc
}
install_pip() {
if ! "${python_interpreter}" -m pip.__main__ --version --disable-pip-version-check 2>/dev/null; then
case "${python_version}" in
*)
pip_bootstrap_url="https://ci-files.testing.ansible.com/ansible-test/get-pip-23.1.2.py"
pip_bootstrap_url="https://ci-files.testing.ansible.com/ansible-test/get-pip-24.0.py"
;;
esac

Loading…
Cancel
Save