-
-
Notifications
You must be signed in to change notification settings - Fork 223
Migrate from poetry to uv for dependency and package management #986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a6ff8d0
to
914a54b
Compare
914a54b
to
e009300
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #986 +/- ##
=======================================
Coverage 92.55% 92.55%
=======================================
Files 96 96
Lines 6100 6100
Branches 1504 1504
=======================================
Hits 5646 5646
Misses 354 354
Partials 100 100 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of quick comments. For some reason I need to manually define -p python
for uv commands, or it fails otherwise like this:
uv sync --all-extras
error: No interpreter found for executable name `kasa37` in managed installations or system path
Which version of uv are you using? I have been using 0.4.5 installed via |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
## [0.7.3](https://github.com/python-kasa/python-kasa/tree/0.7.3) (2024-09-10) [Full Changelog](0.7.2...0.7.3) **Release summary:** - Migrate from `poetry` to `uv` for package/project management. - Various minor code improvements **Project maintenance:** - Do not regenerate aes key pair [\#1114](#1114) (@sdb9696) - Fix tests due to yarl URL str output change [\#1112](#1112) (@sdb9696) - Add missing type hints to alarm module [\#1111](#1111) (@rytilahti) - Add KH100 EU fixtures [\#1109](#1109) (@rytilahti) - Migrate from poetry to uv for dependency and package management [\#986](#986) (@sdb9696)
As of uv 0.3 there is now official support for package management/projects.
To use the environment (
.venv
) simply run:Obviously the speed is great but also the support for downloading and using multiple python versions is really great.
Notes:
MANIFEST.in
to be added.poetry version
to update the project version so theRELEASING.md
step usessed
. (hatch
has some support for this but I think it's better to keep it simple for now.)uv run
works fine so was able to drop therun-in-env.sh script
required for a couple of pre-commit checks. (This may have actually worked with poetry too although I seem to recall it had problems in the CI on windows)uv.lock
file.yarl>=1.9.5
released since the 31st August break our tests as thestr(URL)
now omits port 80 so I've fixed those tests.Replaces #985