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 python2 support #94

Merged
merged 10 commits into from
Mar 8, 2020
Merged

Conversation

greschd
Copy link
Member

@greschd greschd commented Mar 6, 2020

Fixes #93

Removes the obvious ways in which python2 support was maintained, and explicitly changes the required / supported Python versions in the setup and on Travis.

@greschd greschd requested a review from giovannipizzi March 6, 2020 18:40
Copy link
Member

@giovannipizzi giovannipizzi left a comment

Choose a reason for hiding this comment

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

One minor detail, otherwise good to go!

spec = importlib.util.spec_from_file_location(module_name, full_path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
import importlib.util # pylint: disable=import-error
Copy link
Member

Choose a reason for hiding this comment

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

Probably we don't need this disable anymore (this was to avoid that the py2 pylint complained)

Copy link
Member Author

Choose a reason for hiding this comment

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

True! Funny that pylint didn't throw a useless-suppression, though.

Copy link
Member

Choose a reason for hiding this comment

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

interesting - I never saw this message!

@greschd greschd requested a review from giovannipizzi March 6, 2020 19:59
@giovannipizzi giovannipizzi merged commit dcda325 into aiidateam:develop Mar 8, 2020
@greschd greschd deleted the remove_py2_support branch March 8, 2020 21:56
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.

Remove Python2 support
2 participants