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

Add py 3.12 to tests #570

Merged
merged 10 commits into from
Dec 13, 2024
Merged

Add py 3.12 to tests #570

merged 10 commits into from
Dec 13, 2024

Conversation

calum-chamberlain
Copy link
Member

What does this PR do?

Add Python 3.12 to test suite and remove 3.8

Why was it initiated? Any relevant Issues?

Python 3.12 is being pushed out on conda-forge. We need to test this first here to make sure EQcorrscan runs correctly on 3.12.

@calum-chamberlain
Copy link
Member Author

Currently tests on Windows and MacOS are failing due to an issue sharing Client objects between processes. This looks like an upstream change, but I have opened an issue on obspy here to see if anyone else has run into this.

@calum-chamberlain
Copy link
Member Author

It looks like I will need to add a way to cope with the non-pickle-ability of obspy FDSN Clients. This could probably be handled by checking whether the client is an fdsn client and if it is passing the client kwargs (note, not just the url as other things might be needed) rather than the client, then instantiating a new client in each of the processes. This is probably the better way of doing it anyway.

@calum-chamberlain calum-chamberlain merged commit c816af1 into master Dec 13, 2024
19 of 20 checks passed
@calum-chamberlain calum-chamberlain deleted the py3.12-testing branch December 13, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant