Skip to content

Commit 4db8eb9

Browse files
switch to uv
1 parent 79c2f7b commit 4db8eb9

File tree

5 files changed

+1688
-1648
lines changed

5 files changed

+1688
-1648
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v6
1616

17-
- name: set up Python
18-
uses: actions/setup-python@v6
17+
- uses: astral-sh/setup-uv@v7
1918
with:
20-
python-version: "3.x"
19+
enable-cache: true
20+
cache-dependency-glob: "uv.lock"
2121

22-
- name: set up Poetry
23-
uses: abatilo/actions-poetry@v4
22+
- name: Install Python
23+
run: uv python install
2424

2525
- name: Get version
2626
run: echo "VERSION=$(echo ${GITHUB_REF/refs\/tags\//})" >> $GITHUB_ENV
2727

2828
- name: set version
2929
run: |
3030
VERSION=${{ env.VERSION }}
31-
poetry version ${VERSION#v}
31+
sed -i "s/^version = .*/version = \"${VERSION#v}\"/" pyproject.toml
3232
33-
- name: publish
34-
env:
35-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
36-
run: poetry publish --build
33+
- name: Build and publish
34+
run: |
35+
uv build
36+
uv publish --token ${{ secrets.PYPI_API_TOKEN }}
3737
3838
- name: Create GitHub release entry
3939
uses: softprops/action-gh-release@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
__pycache__/
22
*.egg-info/
3+
.venv/
34
node_modules/

0 commit comments

Comments
 (0)