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

#11965 fix cfreactor on Python 3.8 and Python 3.9 #11966

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

graingert
Copy link
Member

@graingert graingert commented Sep 8, 2023

Scope and purpose

Fixes #11965

Contributor Checklist:

This process applies to all pull requests - no matter how small.
Have a look at our developer documentation before submitting your Pull Request.

Below is a non-exhaustive list (as a reminder):

  • The title of the PR should describe the changes and starts with the associated issue number, like “#9782 Remove twisted.news. #1234 Brief description”.
  • A release notes news fragment file was create in src/twisted/newsfragments/ (see: Release notes fragments docs.)
  • The automated tests were updated.
  • Once all checks are green, request a review by leaving a comment that contains exactly the string please review.
    Our bot will trigger the review process, by applying the pending review label
    and requesting a review from the Twisted dev team.

@graingert graingert changed the title fix cfreactor on Python 3.8 fix cfreactor on Python 3.8 and Python 3.9 Sep 8, 2023
@graingert graingert changed the title fix cfreactor on Python 3.8 and Python 3.9 #11965 fix cfreactor on Python 3.8 and Python 3.9 Sep 8, 2023
@graingert
Copy link
Member Author

@adiroiban what do you want to do re the automated tests on this one? the macos tests are only run on 3.11 maybe they should run on 3.8 also?

@graingert graingert marked this pull request as ready for review September 8, 2023 11:47
@chevah-robot chevah-robot requested a review from a team September 8, 2023 11:47
@adiroiban
Copy link
Member

Thanks. Enabling them on 3.8 should be ok.

I see that we also run Windows tests on 3.8 and 3.11.
Maybe also update Windows to run on 3.8 and 3.12

so for macOS and Windows we can run on the oldest and newest version that we support.

Do you use Twisted with cfreactor ? If yes, then I think we should run the cfreator tests on any Python version that you use.

Copy link
Member

@adiroiban adiroiban left a comment

Choose a reason for hiding this comment

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

Thanks. Looks good.

Please also consider enabling the GHA macOS tests for python 3.8.

With that, this should be ready to land.

thanks again!

@graingert
Copy link
Member Author

Do you use Twisted with cfreactor ? If yes, then I think we should run the cfreator tests on any Python version that you use.

I do not, I only noticed this by running mypy with 3.8.0

@graingert
Copy link
Member Author

I'll enable macos 3.8 tests in a followup

@graingert graingert merged commit 7fbc900 into twisted:trunk Sep 8, 2023
22 checks passed
@graingert graingert deleted the fix-cfreactor branch September 8, 2023 12:27
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.internet.cfreactor not importable on Python 3.8
3 participants