-
Notifications
You must be signed in to change notification settings - Fork 16
Support Python 3.13 and drop Python 3.9 #157
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
Comments
Proper NetCDF4 wheels are now available. However, we must wait for Python 3.13.1 because of the bug reported here. |
I hoped that PEP 667 would allow us to manipulate the (optimised) namespaces of functions, too, so that patterns like this became possible: from hydpy.models.hland_96 import *
simulationstep("1h")
parameterstep("1d")
def add_rconcmodel(main):
with main.add_rconcmodel_v1("rconc_uh"):
uh("triangle", tb=0.36728)
add_rconcmodel(model) The error under Python 3.12 is: The (current) error under Python 3.13.0 is: The latter message will likely change under Python 3.13.1 due to PR 125616. However, adding and removing names from optimised scopes will still not be supported, so everything will stay as is from the user's perspective. (We might need to adapt HydPy's source code, but I expect at most minor changes.). |
I completed the above two tasks and a little more refurbishing (with the help of PyUpdater) and pushed everything into the branch feature/python_3.13. That's it for now. I will wait for Python 3.13.1, which can apparently be expected for December. |
Hopefully, Python 3.13.1 is now well-supported. Unfortunately, it seems not to be installed on Travis-CI so far. Additionally, on AppVeyor, we get the following strange error:
So we better wait a little longer... |
@holgeralbert: Travis-CI still uses Python 3.13.0 and AppVeyor an older release candidate (if I am not mistaken). Is there something we can do? (select another image, create a custom one, or so) |
No progress on AppVeyor and Travis-CI, but at least an explanation for the |
The AppVeyor maintainers already responded and fixed the problem. So, at least on AppVeyor, we can run our test suit with Python 3.13 and build the corresponding wheels for Windows. Using Python 3.12. instead of 3.13 on Travis CI should make no relevant difference because, besides testing, this job is only responsible for creating and deploying the online documentation. |
Uh oh!
There was an error while loading. Please reload this page.
I checked our dependencies, and we still have to wait for suitable NetCDF4 binaries (but they are already in preparation, NetCDF4 issue 1370). Hence, the following to-do list is only preliminary:
|
operator instead oftyping.Union
(see PEP 604).with
statements like this one by using parentheses (see Python issue 56991)The text was updated successfully, but these errors were encountered: