Skip to content

Commit

Permalink
pyproject: pin requests to 2.31
Browse files Browse the repository at this point in the history
With requests 2.32 the following failure shows up:
FAILED
test/test_lava_test_plans.py::test_call_lava_test_plan_testcase_lkft_android[param105]
- requests.exceptions.InvalidURL: Not supported URL scheme http+docker

This is an issue in requests, so pinning to 2.31 for now will solve the
problem.

Link: psf/requests#6707
Signed-off-by: Anders Roxell <[email protected]>
  • Loading branch information
roxell committed May 21, 2024
1 parent ef8b7ec commit a35e0f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Build-Depends: bash-completion,
python3-configobj,
python3-docker,
python3-jinja2,
python3-requests,
python3-requests (== 2.31),
python3-ruamel.yaml,
python3-pytest,
python3-pytest-cov,
Expand Down
4 changes: 2 additions & 2 deletions lava-test-plans.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BuildRequires: python3-pytest-mock
BuildRequires: python3-configobj
BuildRequires: python3-docker
BuildRequires: python3-jinja2
BuildRequires: python3-requests
BuildRequires: python3-requests == 2.31
BuildRequires: python3-ruamel-yaml

BuildArch: noarch
Expand All @@ -27,7 +27,7 @@ Requires: python3 >= 3.6
Requires: python3-configobj
Requires: python3-docker
Requires: python3-jinja2
Requires: python3-requests
Requires: python3-requests == 2.31
Requires: python3-ruamel-yaml

%global debug_package %{nil}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies = [
"configobj",
"docker",
"jinja2",
"requests",
"requests==2.31",
"ruamel.yaml",
]

Expand Down

0 comments on commit a35e0f3

Please sign in to comment.