From c8c1baf4e1ee292b638e5c22fb32f18616cc8a42 Mon Sep 17 00:00:00 2001 From: Nikolay Izhikov Date: Sun, 25 Oct 2020 01:09:16 +0530 Subject: [PATCH] KAFKA-10592: Fix vagrant for a system tests with python3 Fix vagrant for a system tests with a python3. Author: Nikolay Izhikov Reviewers: Manikumar Reddy Closes #9480 from nizhikov/KAFKA-10592 --- tests/README.md | 8 ++++---- tests/setup.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/README.md b/tests/README.md index ae677e9c721..d2d97388f31 100644 --- a/tests/README.md +++ b/tests/README.md @@ -404,9 +404,9 @@ https://cwiki.apache.org/confluence/display/KAFKA/tutorial+-+set+up+and+run+Kafk * Install system test dependencies, including ducktape, a command-line tool and library for testing distributed systems. We recommend to use virtual env for system test development $ cd kafka/tests - $ virtualenv venv + $ virtualenv -p python3 venv $ . ./venv/bin/activate - $ python setup.py develop + $ python3 setup.py develop $ cd .. # back to base kafka directory * Run the bootstrap script to set up Vagrant for testing @@ -482,7 +482,7 @@ the test driver machine. * Start by making sure you're up to date, and install git and ducktape: - $ sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get install -y python-pip git + $ sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get install -y python3-pip git $ pip install ducktape * Get Kafka: @@ -548,7 +548,7 @@ Where are the unit tests? How do I run the unit tests? * cd kafka/tests # The base system test directory -* python setup.py test +* python3 setup.py test How can I add a unit test? * Follow the naming conventions - module name starts with "check", class name begins with "Check", test method name begins with "check" diff --git a/tests/setup.py b/tests/setup.py index b9398dd170b..7d846e37d10 100644 --- a/tests/setup.py +++ b/tests/setup.py @@ -51,7 +51,7 @@ setup(name="kafkatest", license="apache2.0", packages=find_packages(), include_package_data=True, - install_requires=["ducktape==0.7.9", "requests==2.22.0"], + install_requires=["ducktape==0.8.0", "requests==2.24.0"], tests_require=["pytest", "mock"], cmdclass={'test': PyTest}, )