Skip to content

Commit 5580c99

Browse files
committed
fix: resolve types-requests dependency conflicts
Resolves dependency conflict between `types-requests` and `boto3`/`moto` on Python 3.9 for #331
1 parent 2feabd5 commit 5580c99

File tree

3 files changed

+35
-9
lines changed

3 files changed

+35
-9
lines changed

providers/openfeature-provider-flipt/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ dev = [
3030
"mypy>=1.18.0,<2.0.0",
3131
"pytest>=8.4.0,<9.0.0",
3232
"requests-mock>=1.12.0,<2.0.0",
33-
"types-requests>=2.32.0,<3.0.0",
33+
"types-requests>=2.31.0,<2.32.0; python_version<'3.10'", # NOTE: types-requests>=2.32.0 has dependency conflicts with boto3/moto on Python 3.9
34+
"types-requests>=2.32.0,<3.0.0; python_version>='3.10'",
3435
]
3536

3637
[tool.uv.build-backend]

providers/openfeature-provider-ofrep/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ dev = [
3131
"mypy>=1.18.0,<2.0.0",
3232
"pytest>=8.4.0,<9.0.0",
3333
"requests-mock>=1.12.0,<2.0.0",
34-
"types-requests>=2.32.0,<3.0.0",
34+
"types-requests>=2.31.0,<2.32.0; python_version<'3.10'", # NOTE: types-requests>=2.32.0 has dependency conflicts with boto3/moto on Python 3.9
35+
"types-requests>=2.32.0,<3.0.0; python_version>='3.10'",
3536
]
3637

3738
[tool.uv.build-backend]

uv.lock

Lines changed: 31 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)