Hi. While trying to run tests for PR #1585 I realized that the tests for the Python bindings are written to be Python 2 only (as of 98d83fb). Doing some quick checks with a rough pass of
2to3 --write .
also show that the examples and tests all contain Python 2 only code.
bindings/python/examples/
can be easily fixed by just properly applying the print()
function.bindings/python/tests/
are mostly also just need print()
functions but also have some string encoding differences and a breaking xrange
vs. range
changebindings/python/libs/
is properly guarded, so I think that's fine as is. To be able to run tests I'm willing to contribute a PR that updates the example and tests code to Python 3, but is there a desire to continue to run the tests for Python 2? I don't know how long the XRootD team plans to support Python 2 as it is now EOL for over a year and there isn't any clear statements in the docs about LTS given that the supported OS part of the docs
https://github.com/xrootd/xrootd/blob/98d83fb4b70159f31c3311ce9d1d217874ccef45/README#L12-L19
was added 10 years ago in 2011 and I don't think is accurate anymore.
Also, if I have this correct, is the https://gitlab.cern.ch/dss/xrootd GitLab mirror used to run the CI. Do you have instructions on how to have contributed PRs run the CI before they get merged so that PRs can link a passing test suite?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1