Skip to content

Commit b9dd8c9

Browse files
committed
Use PyPI Trusted Publishing
1 parent a8aa03c commit b9dd8c9

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Show package contents
3636
run: python scripts/show_wheel_content.py wheelhouse
3737
- name: Upload wheels
38-
uses: actions/upload-artifact@v3
38+
uses: actions/upload-artifact@v4
3939
with:
4040
name: wheels-windows
4141
path: ./wheelhouse/*.whl
@@ -58,7 +58,7 @@ jobs:
5858
- name: Show package contents
5959
run: python scripts/show_wheel_content.py wheelhouse
6060
- name: Upload wheels
61-
uses: actions/upload-artifact@v3
61+
uses: actions/upload-artifact@v4
6262
with:
6363
name: wheels-macos
6464
path: ./wheelhouse/*.whl
@@ -81,7 +81,7 @@ jobs:
8181
- name: Show package contents
8282
run: python scripts/show_wheel_content.py wheelhouse
8383
- name: Upload wheels
84-
uses: actions/upload-artifact@v3
84+
uses: actions/upload-artifact@v4
8585
with:
8686
name: wheels-macos-x86
8787
path: ./wheelhouse/*.whl
@@ -104,7 +104,7 @@ jobs:
104104
- name: Show package contents
105105
run: python scripts/show_wheel_content.py wheelhouse
106106
- name: Upload wheels
107-
uses: actions/upload-artifact@v3
107+
uses: actions/upload-artifact@v4
108108
with:
109109
name: wheels-linux
110110
path: ./wheelhouse/*.whl
@@ -115,12 +115,14 @@ jobs:
115115
environment:
116116
name: pypi
117117
url: https://pypi.org/p/mlc-python
118+
permissions:
119+
id-token: write
118120
steps:
119121
- uses: actions/setup-python@v5
120122
with:
121123
python-version: ${{ env.MLC_PYTHON_VERSION }}
122124
- name: Download all artifacts
123-
uses: actions/download-artifact@v3
125+
uses: actions/download-artifact@v4
124126
with:
125127
path: ./wheelhouse
126128
- name: Prepare distribution files
@@ -134,4 +136,3 @@ jobs:
134136
uses: pypa/gh-action-pypi-publish@release/v1
135137
with:
136138
packages-dir: dist/
137-
password: ${{ secrets.MLC_PYPI_API_TOKEN }}

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.15)
22

33
project(
44
mlc
5-
VERSION 0.0.2
6-
DESCRIPTION "MLC's FFI system"
5+
VERSION 0.0.3
6+
DESCRIPTION "PyMLC"
77
LANGUAGES C CXX
88
)
99

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mlc-python"
3-
version = "0.0.2"
3+
version = "0.0.3"
44
dependencies = ['numpy >= 1.22', "ml-dtypes >= 0.1", 'setuptools ; platform_system == "Windows"',]
55
description = ""
66
requires-python = ">=3.9"

0 commit comments

Comments
 (0)