-
-
Notifications
You must be signed in to change notification settings - Fork 36.4k
Use new python library for picnic component #139111
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
|
Hey there @corneyl, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
So, did we do our due diligence and tried emailing them for example? (oh lol, I opened the linked issue, forgot about that one) |
The second link in my "proposed changes" section takes you to a comment stating this, yes :(
Fully understandable with the amount of time that passed :) |
|
Seems like local tests successfully used |
|
As far as I can see, tests are failing because of OneDrive |
|
Do you need help with updating the documentation or such? |
There are no changes to how the integration functions and the docs do not mention the library used in the integration, so I am not aware of any changes that would be required. I also can't really add tests for this change, since the only thing changed are the imports. |
|
Okay so going forward, we want all dependencies to be created and published in the CI. As in, we require this for new integrations, but I think it would also be wise to start doing this now with a new dependency. This way we can be more confident that the code we use is the one stored in the repository, and not something someone made on their computer. So I am leaning towards the question if we are able to add it now. |
I am wondering about this from when I started using Home Assistant and can fully understand that source package availability on PyPi alone isn't cutting it. What will this change entail? I am fully open to using this dependency change as a "test wagon" - if you want to have a more synchronised communication, feel free to contact me on Discord too ( |
|
In theory it would just be a CI action that you kick off and that it publishes that to PyPI. So it doesn't have to be much in theory |
And that CI should run under the core repository or the library's CI? I am planning the latter for python-picnic-api2 anyway, if that is everything there should be no issue. |
|
The library's repository should do that yes. Be sure to look into trusted publishers. That makes it really easy to just define the repository and workflow in PyPI, and it will automatically figure everything out |
Done: |
|
Can we use that version in here directly as well? |
Bump to version that publishes to PyPi via trusted publishers
To my surprise, the job successfully ran with the same version number already configured in this PR; either because No matter, I've just released a new patch version for only this purpose and bumped the manifest. |
|
Check! Also, if you want to help out as codeowner, feel free to add yourself to the list. On that topic, @corneyl can you send me a message on discord? |
Should be included in this PR :) b7fdb39 |
|
Oh, not all files in the PR have been regenerated, can you fix that? Also be sure to send me a message on discord then |
Fixed. Pylint seems to have crashed (?) in CI though |
|
Yea that was because something else. It got fixed now though, so I am fine with merging it with it failing |
Proposed change
This PR changes the python library of the
picniccomponent (python-picnic-api) to my maintained forkpython-picnic-api2. A fork of the underlying library has shown necessary, as the community was unable to contact the original maintainer (see MikeBrink/python-picnic-api#25 and MikeBrink/python-picnic-api#26 (comment)) which caused the component to be dysfunctional one way or another for the last ~10 months. With the component now unable to initialize at all and no one having access to the package on PyPi, I started to maintain a fork and am planning to continue doing that.A rough changelog can be found here: https://github.com/codesalatdev/python-picnic-api/releases/tag/v1.2.1
PyPi: https://pypi.org/project/python-picnic-api2/
Type of change
Additional information
Because of the dependency change and the fixes included in it, more than one issue is fixed implicitly.
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: