-
Notifications
You must be signed in to change notification settings - Fork 71
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
Python3.10 #1648
Python3.10 #1648
Conversation
So I think we have some success!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some brilliant work here :)
There seems to be a few CI items that are a little unhappy still though...
Latest changes might do the trick.
|
lib/pymedphys/_utilities/test.py
Outdated
exe = str(pathlib.Path(np.__file__).parents[4].joinpath("bin", "python")) | ||
exe = str( | ||
pathlib.Path(np.__file__).parents[4].joinpath("bin", "python") | ||
) # pylint: disable=no-member |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This need for no-member has me confused...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One possibility is that pylint
somehow recognises that pathlib.Path(np.__file__).parents[4]
could return an Exception (IndexError) and so joinpath()
would not be a "member". Dunno.
…nto python3.10
…nto python3.10
I think I got everything except the Mosaiq tests passing (notwithstanding that not every combination of test task, python version and OS are being tested!). I'm likely not going to be able to spend any longer on this for a couple of days, but understand that:
I'll try to revisit midweek. In the meantime, if anyone (@SimonBiggs, @dg1an3?) has a quick fix for the Mosaiq stuff they can add, I'd be very much obliged! |
My rule of thumb, if a new pylint error is added I will initially add it to the list of ignored errors in the config file, and then at a later date decide whether or not to scour the repo and fix up all of those.
Streamlit is okay to be upgraded, it just needs to stay pinned for end user installation for now. But, streamlit is stabalising significantly. So this might not be an issue. But if upgrading streamlit doesn't cause CI issues, it's fair game. |
…nto python3.10
…nto python3.10
@SimonBiggs I could give it a try, but I think someone more experienced than me might be more suitable. As a sidenote, I see that here the tests Library / Tests (ubuntu, updates) (pull_request) and Library / Tests (windows, docs) (pull_request) are passing, whereas in #1638 they are failing, possibly due to Python3.9? |
Not actually due to 3.9. @Matthew-Jennings actually did quite a bit of work in here fixing the various tests by updating the required dependencies. |
Hi @nlambriICH, if you're up for it, you could have a go! I'm likely out until next week now - I won't have access to a suitable workstation for coding. But I can still review PRs, etc. I think the way to go would be to:
Don't worry about all of that if you're not keen. I only write this since you expressed interest in trying! |
I had a small stab at this to no avail. Though my SQL skills are little more than "beginner" level. |
Alright, having these tests not pass is blocking other PRs being able to be merged. I'll give this a crack. |
Fix broken anon docs link
Given this is merging into the other Python 3.10 branch, I'll merge this into there and work on it further there. |
No description provided.