Skip to content

Commit

Permalink
Use PyPI Trusted Publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
potatomashed committed Aug 31, 2024
1 parent a8aa03c commit b9dd8c9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Show package contents
run: python scripts/show_wheel_content.py wheelhouse
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels-windows
path: ./wheelhouse/*.whl
Expand All @@ -58,7 +58,7 @@ jobs:
- name: Show package contents
run: python scripts/show_wheel_content.py wheelhouse
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels-macos
path: ./wheelhouse/*.whl
Expand All @@ -81,7 +81,7 @@ jobs:
- name: Show package contents
run: python scripts/show_wheel_content.py wheelhouse
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels-macos-x86
path: ./wheelhouse/*.whl
Expand All @@ -104,7 +104,7 @@ jobs:
- name: Show package contents
run: python scripts/show_wheel_content.py wheelhouse
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels-linux
path: ./wheelhouse/*.whl
Expand All @@ -115,12 +115,14 @@ jobs:
environment:
name: pypi
url: https://pypi.org/p/mlc-python
permissions:
id-token: write
steps:
- uses: actions/setup-python@v5
with:
python-version: ${{ env.MLC_PYTHON_VERSION }}
- name: Download all artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ./wheelhouse
- name: Prepare distribution files
Expand All @@ -134,4 +136,3 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
password: ${{ secrets.MLC_PYPI_API_TOKEN }}
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.15)

project(
mlc
VERSION 0.0.2
DESCRIPTION "MLC's FFI system"
VERSION 0.0.3
DESCRIPTION "PyMLC"
LANGUAGES C CXX
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mlc-python"
version = "0.0.2"
version = "0.0.3"
dependencies = ['numpy >= 1.22', "ml-dtypes >= 0.1", 'setuptools ; platform_system == "Windows"',]
description = ""
requires-python = ">=3.9"
Expand Down

0 comments on commit b9dd8c9

Please sign in to comment.