Skip to content

Commit 43f1f1a

Browse files
committed
migrated to uv
1 parent 72df8e4 commit 43f1f1a

File tree

5 files changed

+1014
-1220
lines changed

5 files changed

+1014
-1220
lines changed

.github/workflows/pypi.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ jobs:
88
name: Build and publish package to PyPI
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- name: Check out repository code
12+
uses: actions/checkout@v4
13+
1214
- name: Set up Python
13-
uses: actions/setup-python@v1
15+
uses: astral-sh/setup-uv@v5
1416
with:
15-
python-version: "3.9"
16-
- name: Install poetry
17-
run: |
18-
curl -fsS -o get-poetry.py https://install.python-poetry.org
19-
python get-poetry.py -y
17+
enable-cache: true
18+
python-version: "3.11"
19+
20+
- name: Build
21+
run: uv build
22+
2023
- name: Publish
2124
env:
2225
PYPI_TOKEN: ${{ secrets.pypi_password }}
23-
run: |
24-
$HOME/.local/bin/poetry config pypi-token.pypi $PYPI_TOKEN
25-
$HOME/.local/bin/poetry build -f sdist
26-
$HOME/.local/bin/poetry publish
26+
run: uv publish --token $PYPI_TOKEN

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
3+
- repo: https://github.com/psf/black-pre-commit-mirror
4+
rev: 25.1.0
5+
hooks:
6+
- id: black
7+
# It is recommended to specify the latest version of Python
8+
# supported by your project here, or alternatively use
9+
# pre-commit's default_language_version, see
10+
# https://pre-commit.com/#top_level-default_language_version
11+
language_version: python3.11
12+
- repo: https://github.com/pycqa/flake8
13+
rev: '7.3.0' # pick a git hash / tag to point to
14+
hooks:
15+
- id: flake8

0 commit comments

Comments
 (0)