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

Python3 only #35

Merged
merged 6 commits into from
Jul 1, 2021
Merged

Python3 only #35

merged 6 commits into from
Jul 1, 2021

Conversation

rtobar
Copy link
Contributor

@rtobar rtobar commented Jun 29, 2021

This set of commits incrementally move the minimum supported python version from 2.7 up to 3.7. First, python 2.7 support is removed, then all usage of six is removed and changed for the corresponding python 3 code. Additional code within daliuge to deal differently with python 2/3 was also adjusted/removed. Later on the minimum supported version is moved up again to python 3.7, which finally allows us to simplify our dependency management a bit.

@rtobar rtobar requested a review from davepallot June 29, 2021 04:52
@coveralls
Copy link

coveralls commented Jun 29, 2021

Coverage Status

Coverage increased (+0.4%) to 76.873% when pulling 1da1022 on python3-only into a317c9c on master.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
The only required change to perform this removal is simply to make the
statement. To make this statement stronger we are also removing 2.7 from
our build matrix.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
Now that we don't support Python 2.7 anymore there's no point on keeping
our dependency on six. This commit removes this dependency, and replaces
all usage of six with the appropriate python 3 code.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
There previously were only two more methods six didn't provide and we
did: b2s and u2s. These were defined separately for pyton 2.7 and 3,
which isn't necessary anymore. Moreover the u2s method is completely
unnecessary now, and since it was used only on a single module that
module was updated as well.

The b2s method could also still be removed in theory, but it would
require touching quite a few more lines of code in many modules, so I'll
refrain from doing it at the moment to keep changes small.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
This version of python will be supported until 2023, while 3.6 will end
support at the end of this calendar year. Establishing 3.7 as our
baseline also simplifies our dependency requirements, which is a nice
bonus.

To reflect this change on the minimum support python version I've
removed the old versions from our matrix builds.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
@davepallot
Copy link
Contributor

davepallot commented Jul 1, 2021

@rtobar Changes look fine. All tests pass. Go ahead and merge.

@rtobar
Copy link
Contributor Author

rtobar commented Jul 1, 2021

Thanks @davepallot!

@rtobar rtobar merged commit 1da1022 into master Jul 1, 2021
@rtobar rtobar deleted the python3-only branch July 1, 2021 06:02
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.

None yet

3 participants