Skip to content

Commit 4737bf4

Browse files
fix: update tests to include setuptools
- Added setuptools package installation to `pipenv install` commands in the github testing script to resolve test runtime failures caused by `pkg_resources` missing from Python >= 3.12 default installs. Co-authored-by: sqrrrl <346343+sqrrrl@users.noreply.github.com>
1 parent 2521253 commit 4737bf4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/scripts/test.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export SERVICE_ACCOUNT_CREDENTIALS="${HOME}/secrets/service_account.json"
2222
dirs=()
2323

2424
if [ -f "requirements.txt" ]; then
25-
pipenv install -r "requirements.txt"
25+
pipenv install setuptools -r "requirements.txt"
2626
fi
2727

2828
IFS=$'\n' read -r -d '' -a dirs < <( find . -name '*_test.py' -exec dirname '{}' \; | sort -u )
@@ -34,7 +34,7 @@ for dir in "${dirs[@]}"; do
3434
if [ -f "requirements.txt" ]; then
3535
# If requirements.txt present, create a new isolated environment
3636
touch Pipfile
37-
pipenv install -r "requirements.txt"
37+
pipenv install setuptools -r "requirements.txt"
3838
fi
3939
pipenv run python -m unittest discover
4040
status=$?

0 commit comments

Comments
 (0)