Skip to content

Commit 28dc1b0

Browse files
committed
pip install sageattention==2.2.0
1 parent 1bd826a commit 28dc1b0

File tree

4 files changed

+301
-199
lines changed

4 files changed

+301
-199
lines changed

.github/workflows/publish.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.10"
19+
20+
- name: Upgrade pip
21+
run: |
22+
python -m pip install --upgrade pip
23+
24+
- name: Install build backend
25+
run: |
26+
python -m pip install build==1.2.1 twine==5.1.1 packaging
27+
28+
- name: Build sdist only
29+
env:
30+
SAGEATTN_SKIP_CUDA_BUILD: "1"
31+
run: |
32+
python -m build --sdist
33+
34+
- name: Check distribution files
35+
run: |
36+
twine check dist/*
37+
38+
- name: Publish to PyPI
39+
if: startsWith(github.ref, 'refs/tags/')
40+
env:
41+
TWINE_USERNAME: __token__
42+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
43+
run: |
44+
python -m twine upload --skip-existing dist/*

MANIFEST.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include README.md
2+
include LICENSE
3+
recursive-include sageattention *.py
4+
recursive-include csrc *.h *.hpp *.cuh *.cu *.cpp
5+
recursive-include sageattention/triton *.py
6+
global-exclude __pycache__
7+
global-exclude *.py[cod]

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=62",
4+
"wheel>=0.38",
5+
"packaging>=21",
6+
]
7+
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)