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

remove support for Python 2.7 and 3.5 #4229

Merged
merged 50 commits into from
Apr 12, 2023
Merged

remove support for Python 2.7 and 3.5 #4229

merged 50 commits into from
Apr 12, 2023

Conversation

branfosj
Copy link
Member

This removes support for running EasyBuild on Python 2.x and 3.5.

@branfosj branfosj added this to the 5.0 milestone Mar 26, 2023
@boegel boegel added the EasyBuild-5.0 EasyBuild 5.0 label Mar 28, 2023
@boegel boegel changed the title [EB5] Remove support for Python 2 and 3.5 Remove support for Python 2 and 3.5 Mar 28, 2023
@branfosj branfosj marked this pull request as draft March 31, 2023 15:22
@boegelbot

This comment was marked as outdated.

branfosj and others added 2 commits April 12, 2023 13:48
@@ -152,6 +152,24 @@ def _recv(self, which, maxsize):
message = "Other end disconnected!"


def subprocess_popen_text(cmd, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think easybuild.tools.run is a better place for this, see branfosj#8

return metaclass(base_class_name, bases, {})


def mk_wrapper_baseclass(metaclass):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@branfosj If we copy these functions here, we should also import them from easybuild.base.wrapper in py2vs3/py3.py, to avoid having two copies of them?

see branfosj#8

relocate subprocess_popen_text + subprocess_terminate to easybuild.tools.run, import create_base_metaclass + mk_wrapper_baseclass from easybuild.base.wrapper in py2vs3/*.py
@boegel boegel changed the title Remove support for Python 2 and 3.5 remove support for Python 2.7 and 3.5 Apr 12, 2023
Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

A big step towards EasyBuild 5.0, thanks for the effort @branfosj!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants