Skip to content
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

Dependency on lxml breaks CI on Python 3.11 #25

Closed
jaraco opened this issue Jun 8, 2022 · 5 comments
Closed

Dependency on lxml breaks CI on Python 3.11 #25

jaraco opened this issue Jun 8, 2022 · 5 comments

Comments

@jaraco
Copy link
Owner

jaraco commented Jun 8, 2022

Once again, I'm finding the lxml dependency means the CI pipelines are broken in Python 3.11 until lxml provides binary builds for that Python version.

Originally posted by @jaraco in #24 (comment)

@jaraco
Copy link
Owner Author

jaraco commented Jun 8, 2022

Last year, it took ~3 months to get wheels (https://bugs.launchpad.net/lxml/+bug/1929359).

@jaraco
Copy link
Owner Author

jaraco commented Jun 8, 2022

Filed https://bugs.launchpad.net/lxml/+bug/1977998 to track the need for Python 3.11.

@jaraco
Copy link
Owner Author

jaraco commented Jun 8, 2022

This issue is annoying, because lxml is not a runtime dependency of cssutils, but is used by a couple of tools/examples files. One thing we could do:

  • Make lxml conditionally installed only on Python < 3.11 and when lxml isn't present, skip the testing of those modules that import lxml.

@jaraco
Copy link
Owner Author

jaraco commented Jun 9, 2022

Workaround is sufficient for now.

@jaraco jaraco closed this as completed Jun 9, 2022
@jayaddison
Copy link

A note that I think this might be re-resolvable (for most platforms) by unpinning the lxml dependency in setup.cfg.

One catch to look out for, though: some versions of MacOS appear to have trouble building lxml from source (which they attempt by default during installation of that package) -- but are generally fine when using prebuilt binary wheels.

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

No branches or pull requests

2 participants