Skip to content

Commit c2caae7

Browse files
authored
Merge pull request #9186 from dhalbert/9.0.x-setuptools
9.0.x - Handle change in tar file name caused by setuptools update #9185
2 parents 29eeef9 + 35fe339 commit c2caae7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@
110110
autoapi_python_class_content = "both"
111111
autoapi_python_use_implicit_namespaces = True
112112
autoapi_root = "shared-bindings"
113+
114+
# Suppress cache warnings to prevent "unpickable" [sic] warning
115+
# about autoapi_prepare_jinja_env() from sphinx >= 7.3.0.
116+
# See https://github.com/sphinx-doc/sphinx/issues/12300
117+
suppress_warnings = ["config.cache"]
118+
113119
def autoapi_prepare_jinja_env(jinja_env):
114120
jinja_env.globals['support_matrix_reverse'] = modules_support_matrix_reverse
115121

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)