Skip to content

Commit d612306

Browse files
Migrate build tooling from PDM to uv
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 562e3a1 commit d612306

File tree

6 files changed

+833
-917
lines changed

6 files changed

+833
-917
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,17 @@ jobs:
1717
with:
1818
ref: ${{ github.event.release.tag_name }}
1919

20-
- name: Setup PDM
21-
uses: pdm-project/setup-pdm@v4
20+
- uses: actions/setup-python@v5
2221
with:
23-
python-version: 3.11
24-
version: 2.10.0
22+
python-version: "3.12"
23+
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v5
26+
with:
27+
version: "0.6.14"
28+
29+
- name: Build package
30+
run: uv build
2531

2632
- name: Publish package distributions to PyPI
27-
run: pdm publish
33+
run: uv publish

.gitignore

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,8 @@ ipython_config.py
101101
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102102
#poetry.lock
103103

104-
# pdm
105-
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106-
#pdm.lock
107-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108-
# in version control.
109-
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
110-
.pdm.toml
111-
.pdm-python
112-
.pdm-build/
113-
114-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
115-
__pypackages__/
104+
# uv
105+
.python-version
116106

117107
# Celery stuff
118108
celerybeat-schedule

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ repos:
154154
args: [--disable, MD013]
155155
- id: markdownlint-fix
156156
args: [--disable, MD013]
157-
- repo: https://github.com/pdm-project/pdm
158-
rev: 2.12.3
157+
- repo: https://github.com/astral-sh/uv-pre-commit
158+
rev: 0.6.14
159159
hooks:
160-
- id: pdm-lock-check
160+
- id: uv-lock

0 commit comments

Comments
 (0)