Skip to content

Commit

Permalink
don't install optional dependencies when testing on pypy3 since 'blac…
Browse files Browse the repository at this point in the history
…k' depends on 'typed_ast' which isn't supported on pypy3
  • Loading branch information
CleanCut committed Dec 5, 2023
1 parent 35139b1 commit 480c339
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test_versions
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ for PYTHON_VERSION in ${PYTHON_VERSIONS} ; do
exit 7
fi
hash -r
REQUIREMENTS_FILE="requirements-optional.txt"
if [ "${PYTHON}" == "pypy3" ] ; then
# `black` depends on `typed_ast` which isn't supported by pypy3. We can remove this once
# `black` starts depending on built-in `ast`
REQUIREMENTS_FILE="requirements.txt"
fi
${VENV_DIR}/bin/pip install -r requirements-optional.txt | grep -Ev "Requirement already|however version|consider upgrading"
deactivate
done
Expand Down

0 comments on commit 480c339

Please sign in to comment.