Skip to content

Commit ca8bc22

Browse files
authored
Installation test to ensure the extra dependencies don't change their name (#1910)
1 parent ca7b7dc commit ca8bc22

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tools/source-package-verification.sh

+10
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,19 @@ python3 -m pip install .
3131

3232
if [[ $OS_NAME == linux && $ARCH == x64 ]]; then
3333
if [[ -z $TEST_CONSUMER_GROUP_PROTOCOL ]]; then
34+
# Run these actions and tests only in this case
35+
echo "Building documentation ..."
3436
flake8 --exclude ./_venv,*_pb2.py
3537
pip install -r requirements/requirements-docs.txt
3638
make docs
39+
40+
echo "Testing extra dependencies ..."
41+
python3 -m pip install --dry-run --report ./pip-install.json .[schema-registry,avro,json,protobuf]
42+
if [ $(jq '.install[0].metadata.provides_extra' pip-install.json | egrep '"(schema-registry|schemaregistry|avro|json|protobuf|rules)"' | wc -l) != "6" ]; then
43+
echo "Failing: package does not provide all extras necessary for backward compatibility"
44+
exit 1
45+
fi
46+
rm -f ./pip-install.json
3747
fi
3848
python -m pytest --timeout 1200 --ignore=dest
3949
else

0 commit comments

Comments
 (0)