-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
Also remove unnecessary shebangs in module files -- these can not be executed directly.
Inside the contextmanager, tempfile.TemporaryDirectory yields only the string with the directory's name
There was a problem hiding this 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!
tests/calculations/test_example.py
Outdated
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 |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
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.