Skip to content

remove support for Python 2.7 and 3.5#4229

Merged
boegel merged 50 commits intoeasybuilders:5.0.xfrom
branfosj:py2
Apr 12, 2023
Merged

remove support for Python 2.7 and 3.5#4229
boegel merged 50 commits intoeasybuilders:5.0.xfrom
branfosj:py2

Conversation

@branfosj
Copy link
Copy Markdown
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
Comment thread easybuild/tools/py2vs3/__init__.py
Comment thread requirements.txt Outdated
Comment thread requirements.txt Outdated
Comment thread requirements.txt Outdated
@branfosj branfosj marked this pull request as draft March 31, 2023 15:22
@boegelbot

This comment was marked as outdated.

Comment thread easybuild/tools/py2vs3/py3.py Outdated
branfosj and others added 2 commits April 12, 2023 13:48
Comment thread easybuild/tools/asyncprocess.py Outdated
message = "Other end disconnected!"


def subprocess_popen_text(cmd, **kwargs):
Copy link
Copy Markdown
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

Comment thread easybuild/base/wrapper.py
return metaclass(base_class_name, bases, {})


def mk_wrapper_baseclass(metaclass):
Copy link
Copy Markdown
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

Comment thread easybuild/tools/py2vs3/__init__.py
Comment thread easybuild/tools/py2vs3/__init__.py
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
Copy Markdown
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