Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release

on:
push:
branches:
- main
workflow_dispatch:

jobs:

release:
runs-on: ubuntu-latest

environment:
name: pypi
permissions:
id-token: write
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v8.3.2
with:
python-version: "3.13"

- name: Build sdist and wheel
run: uv build

- name: Publish to PyPI
run: uv publish --trusted-publishing always

- name: Create release tag
# Adding a `--prerelease` flag in `gh release create` makes the release not
# show up as the latest stable release.
run: |
version="$(uv version --short)"
if uv run --no-project --with packaging python -c \
"import sys; from packaging.version import Version; sys.exit(0 if Version('${version}').is_prerelease else 1)"; then
prerelease="--prerelease"
else
prerelease=""
fi
gh release create "v${version}" --title "v${version}" --generate-notes ${prerelease}
env:
GH_TOKEN: ${{ github.token }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers = [
"Environment :: GPU :: NVIDIA CUDA :: 11.8",
]
requires-python = ">=3.10" # We are using `match` statements
version = "0.2.0"
version = "v1.0.0rc1"
dependencies = [
'singledispatchmethod', # Adds decorator that allows to use different methods for different types of arguments (similar to method overloading in Java)
'zstandard', # Compression library
Expand Down