Skip to content

Commit e188bc9

Browse files
committed
allow circuitpython[-_]stubs-*.tar.gz
1 parent 29eeef9 commit e188bc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/test-stubs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ python3 -m venv test-stubs
55
pip install mypy isort black adafruit-circuitpython-typing wheel build
66
rm -rf circuitpython-stubs .mypy_cache
77
make stubs
8-
pip install --force-reinstall circuitpython-stubs/dist/circuitpython-stubs-*.tar.gz
8+
# Allow either dash or underscore as separator. setuptools v69.3.0 changed from "-" to "_".
9+
pip install --force-reinstall circuitpython-stubs/dist/circuitpython[-_]stubs-*.tar.gz
910
export MYPYPATH=circuitpython-stubs/
1011
echo "The following test should pass:"
1112
mypy -c 'import busio; b: busio.I2C; b.writeto(0x30, b"")'

0 commit comments

Comments
 (0)