Repository navigation
#12642 Remove 3.9 and promote 3.14 and 3.15 - #12643
Conversation
|
Should we also remove these conditions which are now always true? Line 113 in 75facb2 Can be: |
|
Also perhaps update the |
|
@gudnimg thanks
Yes. All of that. Feel free to leave inline comments or push your changes to this branch. This is still WIP ... I am also trying to see where we stand with Python 3.14 and 3.15 ... and pushing various changes between meetings at work |
|
I will apply the current chagnes mentioned by you... no need to re-add them |
If you need any help, I'll be able to do some work over the weekend :) My Linux machine at home has now Ubuntu 26.04 and it ships with Python 3.14. I also have Windows 11 with Python 3.14. No MacOS though. |
|
Thanks. A review would help a lot. Python 3.14 should be ok... all looks good. I am not checking 3.15... I see that GitHub has 3.15 beta... but on my On my local env the only test that fails is: trial twisted.trial.test.test_doctest |
gudnimg
left a comment
There was a problem hiding this comment.
One minor comment. Besides that the pull request looks good to me. 👍
There was a problem hiding this comment.
Shouldn't this be raised to Python 3.10? Otherwise this will allow users to build the package for Python 3.9
| license = { text = "MIT License" } | ||
| # When updating this value, make sure our CI matrix includes a matching minimum version. | ||
| requires-python = ">=3.9.12" | ||
| requires-python = ">=3.10.20" |
There was a problem hiding this comment.
| requires-python = ">=3.10.20" | |
| requires-python = ">=3.10" |
Hmm I wonder, is Python 3.10.20 not available on Windows?
I don't see any executable/installer https://www.python.org/downloads/release/python-31020/
But I see it for Python 3.10.11 https://www.python.org/downloads/release/python-31011/
Instead of specifying the minor version, can the toml file just say ">= 3.10"?
There was a problem hiding this comment.
Seems strange to me to put a requirement on the minor version without good reason.
There was a problem hiding this comment.
There was an error. I have fixed it.
In the past, GitHub Python action didn't had all micro-releases...so we were requiring the oldes micro-release available.
The idea was that since we don't test on older micro-releases, it's hard to guarante that it will work.
glyph
left a comment
There was a problem hiding this comment.
Assuming CI is happy, looks good. None of the feedback is blocking.
| # that is support by GitHub Actions for the target OS. | ||
| # This is also used to run tests with minimum dependency versions. | ||
| - python-version: '3.9' | ||
| - python-version: '3.10.4' |
There was a problem hiding this comment.
In principle I guess we should be pinning the micro-version here so we don't get any surprises. But it worries me that we don't have any way to have this upgraded automatically for security fixes, and also why are we going with an old/unsupported version rather than the current (3.10.20)?
| if: always() # Always run the coverage report, even when the tests fail. | ||
| # Always run the coverage report, even when the tests fail. | ||
| # As long as the job is not cancelled. | ||
| if: ${{ !cancelled() }} |
There was a problem hiding this comment.
| # Is very important to force running this always, as otherwise it will be | ||
| # skipped by default. | ||
| if: always() | ||
| if: ${{ !cancelled() }} |
There was a problem hiding this comment.
Just curious, why is the previous version bare but this version is in {{ }}?
| "pyobjc-core >= 12", | ||
| "pyobjc-framework-CFNetwork >= 12", | ||
| "pyobjc-framework-Cocoa >= 12", |
Oh, I see. Separate PR to upgrade 'black' then. Jeez do we ever need dependabot. |
|
Thanks for the review.
For I don't think that we need dependabot... I think that dependabot is useful for end user applications... but for libraries, it's ok to keep support for older dependencies. now... we might want to keep the dev tools up to date ... so maybe yes. we can enable dependbot to trigger updates for the dev tools, once every 3 months or so
Maybe the "bare" version would also work... but I remember there were some issues with the exclamation mark... |
Co-authored-by: Glyph <[email protected]> Co-authored-by: Adi Roiban <[email protected]>
Scope and purpose
Fixes #12642
Fixes #12430
This updates GitHub Actions and prepare for a future release where Python 3.9 is no longer supported.
It also enabled all Python 3.14 as it looks like all issues were fixed.
It also enables a few Python 3.15 tests to help adding support for 3.15
It uses a new release of the test helper... which is waiting a review here Release 26.4.1 cython-test-exception-raiser#20
Run tests on Ubuntu 24.04 (from 22.04) by default... I expect that Ubuntu 22.04 will be removed at some time and I 24.04 was required for GTK tests.
Separate sphinx + pydoctor deps, and don't install them on all dev enviromnents. Most devs don't build the docs... pydoctor apidocs take a very long time to build...and some sphinx extensions are not yet available on Python 3.15
Enable all Python 3.14 tests
Enable some Python 3.15 tests ... trial tests are skipped and will be fixed in #12645 Fix Python 3.15 compatibility issues in trial #12602