-
-
Couldn't load subscription status.
- Fork 114
Poetry to uv round 2 #3907
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
base: main
Are you sure you want to change the base?
Poetry to uv round 2 #3907
Conversation
# Conflicts: # poetry.lock # pyproject.toml
|
Hi, thanks for persevering with this and yeah dev containers are quite neat, though I've only got them running from examples and never had the time to really get to grips with them, too busy on the python code to fix the devops. I managed to get the environment built and running ./scripts/develop does start HA but DevContainer tasks aren't working. Within .vscode there's a tasks file that has a single task to run HA dev, that fails within You get to the tasks with a Cmd Shift P and Tasks: Run Task if you've never seen it before. Really appreciate the effort your putting in, if your happy to work on it and learn about dev containers I'll continue testing iterations. |
|
A quick test and the custom_components folder isn't being mapped so HA can't find Battery Notes. Within the old develop script this did it |
|
Can you share steps to reproduce the error you're getting so I can test and validate? I assume it's something in the dev instance of homeassistant once you spin it up? |
|
If you start the HA within the dev instance, create your account etc. then try and add Battery Notes integration it is not found. Another thing, I used to have colorlog, which isn't there anymore. |
|
I can add colorlog back! I don't find a reference to it being imported in any scripts in the project? How are you using it? The command I'll run to add it is uv add colorlog uv pip install colorlog should add it to the venv but won't add it to the pyproject.toml or the lock file Here's some background! |
|
Colorlog was added via the requirements.txt, it gave me nice color output from HA logs (never really looked into it beyond that) |
|
A quick test and this is looking good.. want to do a lot more though and it's approaching UK evening and I'm more of a morning person. Will try a few common tasks like updating HA min version so I'm comfortable with it. |




@andrew-codechimp this includes all the previous changes from #3902 but I think** I got the devcontainer working. please clone my branch and test and let me know if there are any issues! happy to tackle any.
I switched everything up and moved to a uv based image: https://docs.astral.sh/uv/guides/integration/docker/?utm_source=chatgpt.com#installing-a-project
Figured going with a minimal build made the most sense (add anything needed as part of the build process) and had to create a Dockerfile to enable that, and creating the vscode user. also allowed for simplifying the setup file since UV is already installed by default, and the Dockerfile is cd'ing to the project dir, we can just run uv sync to update the .venv
I hadn't messed with devcontainers before. this is neat!
(devcontainer builds and lets me run uv commands on the terminal)