From aaa8867ee8f9e0a1e694e6db11f678f4dd99bbf7 Mon Sep 17 00:00:00 2001 From: Kevin Sandi Date: Fri, 14 Mar 2025 20:34:36 -0600 Subject: [PATCH] Fix: Pin requests version to avoid bug in newer version Signed-off-by: Kevin Sandi Change-Id: Iec61d54c07b50e0d178a6930e9876b2a9d9cb6b9 --- pyproject.toml | 14 +++++++------- releasenotes/notes/fix-requests-bug-9f728ca89f280add.yaml | 6 ++++++ 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 releasenotes/notes/fix-requests-bug-9f728ca89f280add.yaml diff --git a/pyproject.toml b/pyproject.toml index 512f42b9..afb08a65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,7 +68,7 @@ dependencies = [ "pyrsistent", "python-jenkins", "PyYAML", - "requests", + "requests<2.32.0", "rsa", "ruamel.yaml", "ruamel.yaml.clib", @@ -103,12 +103,12 @@ openstack = [ ] test = [ - "pytest==5.3.5", - "pytest-click==0.3", - "pytest-cov", - "pytest-datafiles==2.0", - "pytest-mock==2.0.0", - "pytest-responses==0.4.0" + "pytest==8.3.5", + "pytest-click==1.1.0", + "pytest-cov==5.0.0", + "pytest-datafiles==3.0.0", + "pytest-mock==3.14.0", + "pytest-responses==0.5.1" ] [project.urls] diff --git a/releasenotes/notes/fix-requests-bug-9f728ca89f280add.yaml b/releasenotes/notes/fix-requests-bug-9f728ca89f280add.yaml new file mode 100644 index 00000000..b3b87969 --- /dev/null +++ b/releasenotes/notes/fix-requests-bug-9f728ca89f280add.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Pin requests Python package to version <2.32.0 to avoid bug in newer version + "urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+docker". + Also sync Pytest versions at pyproject.toml with the ones from tox.ini. -- 2.16.6