Skip to content

Commit 3dc6b9b

Browse files
committed
Switch CI workflow and build system to Poetry for dependency management
- Replace manual `pip` installation of `build` and `twine` with Poetry's dependency groups. - Update workflow commands to use `poetry install` and `poetry run`. - Add build-specific dependencies to `pyproject.toml`. - Update the lock file accordingly.
1 parent 6cade44 commit 3dc6b9b

File tree

3 files changed

+706
-27
lines changed

3 files changed

+706
-27
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,14 @@ jobs:
1515
uses: actions/setup-python@v5
1616
with:
1717
cache: "pip"
18-
- name: Install pypa/build
19-
run: |
20-
python3 -m pip upgrade
21-
python3 -m pip install --user --upgrade build twine
22-
build --version
23-
twine --version
18+
- name: Install poetry
19+
run: python3 -m pip install poetry==2.2.1
20+
- name: Install build dependencies
21+
run: poetry install --only build
2422
- name: Build a binary wheel and a source tarball
25-
run: python3 -m build
23+
run: poetry run python -m build
2624
- name: Check the distribution files with `twine`
27-
run: |
28-
twine --version
29-
twine check --strict dist/*
25+
run: poetry run twine check --strict dist/*
3026
- name: Upload artifact
3127
id: artifact-upload-step
3228
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)