Migrate from poetry to uv for dependency and package management (#986)

This commit is contained in:
Steven B.
2024-09-06 15:48:43 +01:00
committed by GitHub
parent 1773f98aad
commit a967d5cd3a
12 changed files with 1931 additions and 2504 deletions

View File

@@ -33,21 +33,21 @@ git checkout -b release/$NEW_RELEASE
### Update the version number
```bash
poetry version $NEW_RELEASE
sed -i "0,/version = /{s/version = .*/version = \"${NEW_RELEASE}\"/}" pyproject.toml
```
### Update dependencies
```bash
poetry install --all-extras --sync
poetry update
uv sync --all-extras
uv lock --upgrade
```
### Run pre-commit and tests
```bash
pre-commit run --all-files
pytest kasa
uv run pre-commit run --all-files
uv run pytest
```
### Create release summary (skip for dev releases)
@@ -215,7 +215,7 @@ git cherry-pick commitSHA2 -S
### Update the version number
```bash
poetry version $NEW_RELEASE
sed -i "0,/version = /{s/version = .*/version = \"${NEW_RELEASE}\"/}" pyproject.toml
```
### Manually edit the changelog