File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 59
59
fetch-depth : 0
60
60
fetch-tags : true
61
61
62
- # See: https://github.com/pypa/setuptools-scm/issues/455
63
- - name : Suppress git version tag
64
- if : github.event_name == 'push' && github.ref_name == 'main'
65
- run : |
66
- echo 'local_scheme = "no-local-version"' >> pyproject.toml
67
- git update-index --assume-unchanged pyproject.toml
68
-
69
62
- uses : ilammy/msvc-dev-cmd@v1
70
63
71
64
@@ -210,6 +203,9 @@ jobs:
210
203
env :
211
204
CIBW_BUILD : " cp3*-${{ matrix.platform_tag }}"
212
205
CIBW_SKIP : " cp3{5,6,7,8}*"
206
+ # Suppress the git version tag (necessary for TestPyPI)
207
+ CIBW_ENVIRONMENT : >
208
+ SETUPTOOLS_SCM_OVERRIDES_FOR_HALIDE='{local_scheme="no-local-version"}'
213
209
CIBW_ENVIRONMENT_MACOS : >
214
210
CMAKE_PREFIX_PATH='${{ github.workspace }}/opt'
215
211
Python_ROOT_DIR=''
Original file line number Diff line number Diff line change 2
2
requires = [
3
3
" pybind11>=2.11.1" ,
4
4
" scikit-build-core==0.11.5" ,
5
+ " setuptools-scm>=8.3.1" ,
5
6
]
6
7
build-backend = " scikit_build_core.build"
7
8
@@ -111,6 +112,9 @@ if.platform-system = "^win32"
111
112
inherit.cmake.define = " append"
112
113
cmake.define.Halide_WASM_BACKEND = " OFF"
113
114
115
+ [tool .setuptools_scm ]
116
+ # Needs to exist for scikit-build-core to use setuptools_scm
117
+
114
118
[tool .ruff .lint ]
115
119
# docs: https://docs.astral.sh/ruff/rules/
116
120
select = [
@@ -165,7 +169,3 @@ search = "#define HALIDE_VERSION_MINOR {current_version}"
165
169
src = " src/runtime/HalideRuntime.h"
166
170
version_template = " {patch}"
167
171
search = " #define HALIDE_VERSION_PATCH {current_version}"
168
-
169
- # Must be last table in file since pip.yml appends to it
170
- # See: https://github.com/pypa/setuptools-scm/issues/455
171
- [tool .setuptools_scm ]
You can’t perform that action at this time.
0 commit comments