Skip to content

Commit 33fbae5

Browse files
authored
Fix deploy steps (#17)
This pull request updates the Python package build process in the GitHub Actions workflow to use a more streamlined approach with `uv` and `hatch`. The changes improve the build step by removing unnecessary commands and ensuring dependencies are upgraded before building. Build process improvements: * The build step now upgrades `hatch` via `uv pip install --upgrade hatch` instead of creating a new virtual environment and installing `hatch` separately, simplifying dependency management. * The package is built using `uv run hatch build`, which runs the build command directly, removing the need for explicit virtual environment creation and tag listing.
1 parent 719883c commit 33fbae5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ jobs:
8585
python-version: "3.13"
8686
- name: Build package
8787
run: |
88-
uv venv --python 3.13
89-
uv pip install hatch
90-
git tag
91-
hatch build
88+
uv pip install --upgrade hatch
89+
uv run hatch build
9290
- name: Publish to PyPI
9391
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)