From 35e8864be4f5f17f98525fe0895e3bf7393cd88b Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Tue, 16 Apr 2024 19:28:34 -0400 Subject: [PATCH] allow circuitpython[-_]stubs-*.tar.gz --- tools/test-stubs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test-stubs.sh b/tools/test-stubs.sh index d3628e489047b..128b28273098c 100755 --- a/tools/test-stubs.sh +++ b/tools/test-stubs.sh @@ -5,7 +5,8 @@ python3 -m venv test-stubs pip install mypy isort black adafruit-circuitpython-typing wheel build rm -rf circuitpython-stubs .mypy_cache make stubs -pip install --force-reinstall circuitpython-stubs/dist/circuitpython-stubs-*.tar.gz +# Filename separator changed from "-" to "_" in setuptools v69.3.0. Allow either. +pip install --force-reinstall circuitpython-stubs/dist/circuitpython[-_]stubs-*.tar.gz export MYPYPATH=circuitpython-stubs/ echo "The following test should pass:" mypy -c 'import busio; b: busio.I2C; b.writeto(0x30, b"")'