Skip to content

#11893 Move iocp dependency to Windows specific soft dependencies.#12144

Merged
adiroiban merged 3 commits intotrunkfrom
11893-iocp-deps
Jun 17, 2024
Merged

#11893 Move iocp dependency to Windows specific soft dependencies.#12144
adiroiban merged 3 commits intotrunkfrom
11893-iocp-deps

Conversation

@adiroiban
Copy link
Member

@adiroiban adiroiban commented Apr 30, 2024

Scope and purpose

Fixes #11893

This is done so that pip install twisted will no longer depend on our IOCP support.

The IOCP support package might get outdate, as we don't have an active maintainer for Twisted IOCP reactor.

This is a backward incompatible change... as those who want IOCP support, will now have to install it expliclitly.

I am not sure how to make this change in a backward compatible way.

What we can do, is to add a big warning at the top of the release notes and in the release email

How to test

Manual checks without IOCP

On Windows, get this branch and then run pip install .
Check that IOCP is not installed

You can run the same test on Linux, to make sure IOCP is not installed... just to be extra safe :)

Manual checks with IOCP

On Windows, get this branch and then run pip install .[windows-platform]
Check that IOCP is installed

CI checks

The iocp support is automatically installed in our CI via tox "-window-" environment marker

https://github.com/twisted/twisted/actions/runs/8895048158/job/24424587427?pr=12144#step:10:35

@adiroiban
Copy link
Member Author

I think that this is ready for a first round of reviews

needs-review

@chevah-robot chevah-robot requested a review from a team April 30, 2024 13:00
Copy link
Member

@glyph glyph left a comment

Choose a reason for hiding this comment

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

I agree, we should support the most minimal non-native-deps installation on Windows as we do on other platforms.

@codspeed-hq
Copy link

codspeed-hq bot commented Jun 17, 2024

CodSpeed Performance Report

Merging #12144 will not alter performance

Comparing 11893-iocp-deps (b86028f) with trunk (5b28483)

Summary

✅ 2 untouched benchmarks

@adiroiban
Copy link
Member Author

Thanks for the review.

I have enabled the auto-merge for this PR.

I have added the "release-blocker" tag to this PR, so that when we do the release, it can server as a reminder to add a top release note about explicit twisted-iocpsupport install

@adiroiban adiroiban merged commit 1416c8c into trunk Jun 17, 2024
@adiroiban adiroiban deleted the 11893-iocp-deps branch June 17, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

twisted-iocpsupport should be part of the windows-platform extra, not a hard requirement

3 participants