Skip to content

Fix test failure related to pycares#230

Closed
SukramJ wants to merge 4 commits into
MatthewFlamm:masterfrom
SukramJ:Fix-test-failure
Closed

Fix test failure related to pycares#230
SukramJ wants to merge 4 commits into
MatthewFlamm:masterfrom
SukramJ:Fix-test-failure

Conversation

@SukramJ
Copy link
Copy Markdown
Contributor

@SukramJ SukramJ commented Dec 17, 2025

No description provided.

Comment thread requirements_test.txt

numpy==2.3.2

pycares<5.0.0 # Pin to 4.x until aiodns supports pycares 5.0 breaking changes
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The generate action should handle this if the other fix is correct.

Suggested change
pycares<5.0.0 # Pin to 4.x until aiodns supports pycares 5.0 breaking changes

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm this is weird that it now fails.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering whether the tests in the CI here do not get updated library versions after generating the new package.

Copy link
Copy Markdown
Owner

@MatthewFlamm MatthewFlamm Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering whether the tests in the CI here do not get updated library versions after generating the new package.

There does seem to be some bug here in the CI for pytest-homeassistant-custom-component, which is why manually adding the pin appeared to work, however, this is not a true fix.

After downloading the artifact, the pycares pin does not show up in the requirements file because of #230 (comment)

Co-authored-by: MatthewFlamm <39341281+MatthewFlamm@users.noreply.github.com>
@MatthewFlamm
Copy link
Copy Markdown
Owner

The pin in homeassistant is in this file

https://github.com/home-assistant/core/blob/04746b6843392cc60d84ea9affe83f524a479e26/homeassistant/package_constraints.txt

Note that this PR removes the constraints reference, which cannot be used in setup.py install-requires

This sort of sub-dependency constraint in homeassistant will be really hard for this package to control....

@MatthewFlamm
Copy link
Copy Markdown
Owner

I don't see a clean way to handle this in this package. Either downstream packages need to pin it, or wait for aio-libs/aiodns#218, or similar, to be merged. I will leave this open in case there are any other ideas to fix.

@SukramJ
Copy link
Copy Markdown
Contributor Author

SukramJ commented Dec 17, 2025

pycares<5.0.0 # Pin to 4.x until aiodns supports pycares 5.0 breaking changes

For me this was the temporary fix!

@SukramJ
Copy link
Copy Markdown
Contributor Author

SukramJ commented Dec 20, 2025

I think this is no longer needed.

@SukramJ SukramJ closed this Dec 20, 2025
@SukramJ SukramJ deleted the Fix-test-failure branch March 25, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants