-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add support for Python=3.12 #2228
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2228 +/- ##
=======================================
Coverage 94.51% 94.51%
=======================================
Files 246 246
Lines 14024 14024
=======================================
Hits 13255 13255
Misses 769 769 ☔ View full report in Codecov by Sentry. |
The Flake8 errors seem to be a Flake8 bug, where that tool checks f-strings and complains about missing space after |
indeed @zklaus - next hurdle |
fixed! Now on to the next hurdle... |
the
|
OK |
the PR is there cedadev/MyProxyClient#20 - I have spoken with @agstephens in the meantime, and he was kind enough to see if we can get that through @alaniwi and merged, so we can up the version or build of MyProxyClient. This is an unforlding situation, like BBC says 😁 |
@bouweandela |
OK I'll revoke that too - |
OK final env: prospector==1.10.3 from conda-forge, flake8==7 from pypi 🥳 https://github.com/ESMValGroup/ESMValCore/actions/runs/9268654163/job/25497753109?pr=2228 |
@valeriupredoi Do you want to run the actions again? Or do you think it's ok? |
@chrisbillowsMO We would like to include these changes in the upcoming release if possible. We can still keep the pin on Python <3.12 for the ESMValTool v2.11 package, but this will allow us to start switch the development version of ESMValTool v2.12 with Python 3.12 once all dependencies are up to date. |
@bouweandela thanks a lot, bud! Only took us 8 months 🤣 |
Hi @bouweandela - have added to our checklist here: #2389 (comment) |
many thanks @chrisbillowsMO 🍺 |
Co-authored-by: Bouwe Andela <[email protected]>
Description
Closes #2227
Link to documentation: not yet available, to be posted
As of 28 May 2024
The prospector-related issue vs flake8 dependencies solved/workarounded in #2437 by @bouweandela (merged that branch here to have the full support)
Historical info
Only incompatibility is
prospector
- needs prospector-dev/prospector#645 that, in turn, needs a fix/workaround ofmaster
proposed in prospector-dev/prospector#658Things are clear now:
flake8==7.0.0
is not barfing at all - all clear (bar one actual PEP8 error that fixed in 57fcea4 ) - but, prospector is not happy to have latest flake8, am trying to push updated prospector pins in prospector-dev/prospector#645 - once that's merged, we will wait for a new prospector release, then I'll build a new prospector conda package myself. That should fix it all 👍Incompatible packages
But
flake8
is barfing! -> according to @zklaus @bouweandela and myself, the flake8 issue is a bug that I will reportEDIT on flake8 (as of 7 November 2023): thanks to tests done by @ehogan we now see
flake8=6.1.0
almost not barfing at all (just a couple of errors, unlikeflake8=5
that completely poops the bed, as seen from the GA tests linked); problem is,flake8=6.1.0
(latest version) is currently rejected by prospector; I'll have to go chase Carl at prospector get us a new version (probably with support forpylint >=3
), then I'll rebuild it on feedstock.Tests failing
flake8
(see above) https://github.com/ESMValGroup/ESMValCore/actions/runs/6708774145/job/18230325803This has now been fixed with a new version of MyProxyClient and a rebuild oftests/unit/esgf/test_logon.py
due toSafeConfigParser
being removed completely from new Python (viaesgf-pyclient
viaMyProxyClient
); once replace the use ofSafeConfigParser
with bogstandardConfigParser
(and use direct import ofconfigparser
, not viasix
anymore) cedadev/MyProxyClient#20 is merged, and a new vesrion of MyProxyClient is on conda-forge, things will be a-ok (I tested with the dev branch in that PR)esgf-pyclient
for Python 3.12 (both by yours truly)Historical incompatible packages (resolved)
These seem to be the only ones - env solves fine with these out of the picture! Fiona plan on a 1.9.5 in a day or two anyway Toblerity/Fiona#1301 - gonna take up the Python=3.12 with the MO folk then 👍
Work started elsewhere
Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number pull requests: