Skip to content

Commit 3b2d1b6

Browse files
committed
FIX: fake out setuptools scm in tox on ci
The repository in GHA is a shallow checkout (so to tags) so we are going to get the version wrong no matter what. However, a recent change to our build dependencies (we think meson-python at 0.17) causes setumtools scm to fail to extract any version when installing from a generated sdist. By setting a pretend version setuptools_scm will never try to look at git. It is not yet clear if this fixes the sdist itself or just continues to use the pretend version when installing.
1 parent e2cbe8b commit 3b2d1b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tox.ini

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ setenv =
1212
MPLCONFIGDIR={envtmpdir}/.matplotlib
1313
PIP_USER = 0
1414
PIP_ISOLATED = 1
15+
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MATPLOTLIB = 0.0.0
16+
1517
usedevelop = True
1618
commands =
1719
pytest --pyargs matplotlib.tests {posargs}

0 commit comments

Comments
 (0)