Skip to content

Commit 2df7c75

Browse files
authored
MINOR: Fix requests version conflict with ducktape in tests/setup.py (apache#21415)
### Summary Fix Python dependency conflict between `requests` and `ducktape` that prevents `kafkatest` from being installed. ### Problem The `tests/setup.py` pins `requests==2.32.4`, but `ducktape==0.12.0` internally requires `requests==2.31.0`. This causes pip to fail with : ``` ERROR: Cannot install kafkatest and kafkatest==4.3.0.dev0 because these package versions have conflicting dependencies. The conflict is caused by: kafkatest 4.3.0.dev0 depends on requests==2.32.4 ducktape 0.12.0 depends on requests==2.31.0 ``` This was introduced by dependabot PR apache#19940 which bumped `requests` from 2.31.0 to 2.32.4 without checking ducktape's transitive dependencies. ### Solution Change `requests==2.32.4` to `requests>=2.31.0`. This allows pip to install `requests==2.31.0` (what ducktape needs) while still satisfying the version constraint. ### Changes - `tests/setup.py`: Change strict pin `requests==2.32.4` to flexible `requests>=2.31.0` ### Testing ✅ **System-test-Kafka-Branch-Builder** - [Workflow] [21/21 tests passed] https://confluent-open-source-kafka-branch-builder-system-test-results.s3-us-west-2.amazonaws.com/fix-cloud-tagging/2026-02-06--001.7f5b8f9a-4837-486a-864c-b5ad3b17391f--1770366328--confluentinc--fix-cloud-tagging--4b6335ab0f/report.html - Test: `tests/kafkatest/tests/client/client_compatibility_produce_consume_test.py` ### Notes This is a minimal fix. An alternative would be upgrading to `ducktape==0.13.0` which requires `requests==2.32.2`, but that introduces more changes and potential risk. Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
1 parent 200f389 commit 2df7c75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def run(self):
4949
license="apache2.0",
5050
packages=find_packages(),
5151
include_package_data=True,
52-
install_requires=["ducktape==0.12.0", "requests==2.32.4", "psutil==5.7.2", "pytest==8.3.3", "mock==5.1.0"],
52+
install_requires=["ducktape==0.12.0", "requests>=2.31.0", "psutil==5.7.2", "pytest==8.3.3", "mock==5.1.0"],
5353
cmdclass={'test': PyTest},
5454
zip_safe=False
5555
)

0 commit comments

Comments
 (0)