Skip to content

Commit a1974f7

Browse files
authored
FIX: Use Py2-compatible version file template for fmriprep-docker (#3101)
CI checks for installing the wrapper in Python 2.7 are failing. This is due to `setuptools_scm` adding type annotations to the `_version.py` files. Note that you can't `pip install ./wrapper` anymore, but that's been true since we started using type-annotated build tools. As long as they don't inject type annotations, we can still build wheels that will install in Python 2.
1 parent fcc9116 commit a1974f7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wrapper/pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ raw-options = { version_scheme = "nipreps-calver", root = ".." }
4949

5050
[tool.hatch.build.hooks.vcs]
5151
version-file = "src/fmriprep_docker/_version.py"
52+
template = """\
53+
# file generated by setuptools_scm
54+
# don't change, don't track in version control
55+
__version__ = version = {version!r}
56+
__version_tuple__ = version_tuple = {version_tuple!r}
57+
"""
5258

5359
[tool.distutils.bdist_wheel]
5460
universal = true

0 commit comments

Comments
 (0)