Skip to content

Installation test to ensure the extra dependencies don't change their name #1910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tools/source-package-verification.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,19 @@ python3 -m pip install .

if [[ $OS_NAME == linux && $ARCH == x64 ]]; then
if [[ -z $TEST_CONSUMER_GROUP_PROTOCOL ]]; then
# Run these actions and tests only in this case
echo "Building documentation ..."
flake8 --exclude ./_venv,*_pb2.py
pip install -r requirements/requirements-docs.txt
make docs

echo "Testing extra dependencies ..."
python3 -m pip install --dry-run --report ./pip-install.json .[schema-registry,avro,json,protobuf]
if [ $(jq '.install[0].metadata.provides_extra' pip-install.json | egrep '"(schema-registry|schemaregistry|avro|json|protobuf|rules)"' | wc -l) != "6" ]; then
echo "Failing: package does not provide all extras necessary for backward compatibility"
exit 1
fi
rm -f ./pip-install.json
fi
python -m pytest --timeout 1200 --ignore=dest
else
Expand Down