-
Notifications
You must be signed in to change notification settings - Fork 31
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
Removal of python-future compatibility code #531
Conversation
for more information, see https://pre-commit.ci
13115ca
to
43a887f
Compare
@sbesson I have gotten to the point where tests are now failing because the underlying |
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.
From a code review perspective, the series of changes proposed here look good and I think we are ready to include this the nightly OME CI builds and schedule a formal round of functional testing.
For #531, one possible temporary approach to run the tests on Python 3.12 would be sbesson@2edac67. Once we have an omero-py
release with Python 3.12 support, this commit will need to be reverted. I suspect we'll also want to update
Line 54 in 9841167
"omero-py>=5.7.0", |
f0c5f6b
to
52c84a6
Compare
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.
With the caveat that the temporary commit pointing to my branch should be updated before merging, all changes look sensible to me from an initial code review. I'll let the OME team schedule the functional testing of this set of maintenance/Python 3.12 support PR.
2edac67 broke today's installation of omero-server. It highlights an issue in the ci-build |
I think the issue is with 52c84a6 rather than the
I suspect force pushing away 52c84a6 should be sufficient to keep testing this PR through GitHub actions (as per the |
I have now removed the excluded label since I found the issue in the CI job leading to the unexpected behaviour |
Sorry yes, wrong cut and paste. No need to force push the commit |
The |
See ome/devspace@096b024 for the adjustment (new CI) |
Conflicting PR. Removed from build OMERO-python-superbuild-push#2. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-python-superbuild-push#452. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-python-superbuild-push#3. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-python-superbuild-push#453. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-python-superbuild-push#454. See the console output for more details.
|
What is the reason for dropping Python 3.8 from the testing matrix? |
Just an oversight, I made a mistake undoing the removal. |
@@ -296,8 +295,8 @@ def set_if(k, v, func=lambda a: a is not None): | |||
|
|||
def decode(shape_field): |
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.
The comment line 382 could probably be removed now
# Handle string for python2 and bytes python3. TODO: lower level fix
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.
Thank you
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.
Looks good, thanks.
Just one TODO to cleanup but not a blocker 👍
if value is not None and isinstance(value, str) and len(value) > 0: | ||
value = str( | ||
smart_str(value) | ||
) # TODO: This is probably a noop now |
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.
if isinstance(value, str)
then we don't need to do anything - can pass
here?
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.
I probably left it in because I wasn't sure that smart_str
would not do something
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.
Also worth noting this is a deprecated form (scheduled for removal in a future version) so I would not spend extensive time fixing it.
This PR implements issue #528 to review the OMERO.web source code to update all paths with either Python 2 or Python 2/3 logic to pure Python 3+, similar to @sbesson's work for OMERO.py at ome/omero-py#390.