Skip to content

Commit b584462

Browse files
authored
fix(build): Fix version tag (#18)
Following #17, which doesn't seem to have fixed the issue.
1 parent ae6774e commit b584462

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install cibuildwheel
2929
run: python -m pip install cibuildwheel=="${{ env.MLC_CIBW_VERSION }}"
3030
- name: Build wheels
31-
run: rm -rf .gitignore && python -m cibuildwheel --output-dir wheelhouse
31+
run: python -m cibuildwheel --output-dir wheelhouse
3232
env:
3333
CIBW_BUILD: ${{ env.MLC_CIBW_WIN_BUILD }}
3434
- name: Show package contents
@@ -51,7 +51,7 @@ jobs:
5151
- name: Install cibuildwheel
5252
run: python -m pip install cibuildwheel==${{ env.MLC_CIBW_VERSION }}
5353
- name: Build wheels
54-
run: rm -rf .gitignore && python -m cibuildwheel --output-dir wheelhouse
54+
run: python -m cibuildwheel --output-dir wheelhouse
5555
env:
5656
CIBW_BUILD: ${{ env.MLC_CIBW_MAC_BUILD }}
5757
- name: Show package contents
@@ -74,7 +74,7 @@ jobs:
7474
- name: Install cibuildwheel
7575
run: python -m pip install cibuildwheel==${{ env.MLC_CIBW_VERSION }}
7676
- name: Build wheels
77-
run: rm -rf .gitignore && python -m cibuildwheel --output-dir wheelhouse
77+
run: python -m cibuildwheel --output-dir wheelhouse
7878
env:
7979
CIBW_BUILD: ${{ env.MLC_CIBW_MAC_X86_BUILD }}
8080
- name: Show package contents
@@ -97,7 +97,7 @@ jobs:
9797
- name: Install cibuildwheel
9898
run: python -m pip install cibuildwheel==${{ env.MLC_CIBW_VERSION }}
9999
- name: Build wheels
100-
run: rm -rf .gitignore && python -m cibuildwheel --output-dir wheelhouse
100+
run: python -m cibuildwheel --output-dir wheelhouse
101101
env:
102102
CIBW_BUILD: ${{ env.MLC_CIBW_LINUX_BUILD }}
103103
- name: Show package contents

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
build
44
build-cpp-tests
55
python/mlc/_version.py
6+
wheelhouse/
7+
uv.lock

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ build-backend = "scikit_build_core.build"
4343

4444
[tool.setuptools_scm]
4545
version_file = "python/mlc/_version.py"
46+
write_to = "python/mlc/_version.py"
4647

4748
[tool.scikit-build]
4849
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
@@ -54,6 +55,7 @@ wheel.license-files = []
5455
wheel.install-dir = "mlc"
5556
install.strip = false
5657
build-dir = "build-wheels/{wheel_tag}-{build_type}"
58+
sdist.include = ["python/mlc/_version.py"]
5759

5860
[tool.scikit-build.wheel.packages]
5961
"mlc" = "python/mlc"

0 commit comments

Comments
 (0)