File tree Expand file tree Collapse file tree 4 files changed +301
-199
lines changed
Expand file tree Collapse file tree 4 files changed +301
-199
lines changed Original file line number Diff line number Diff line change 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/*
Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff line change 1+ [build-system ]
2+ requires = [
3+ " setuptools>=62" ,
4+ " wheel>=0.38" ,
5+ " packaging>=21" ,
6+ ]
7+ build-backend = " setuptools.build_meta"
You can’t perform that action at this time.
0 commit comments