Skip to content

Gsoc: drop six dependencies#151

Merged
sphuber merged 7 commits intoaiidateam:asynciofrom
unkcpz:gsoc-drop-six
Apr 29, 2020
Merged

Gsoc: drop six dependencies#151
sphuber merged 7 commits intoaiidateam:asynciofrom
unkcpz:gsoc-drop-six

Conversation

@unkcpz
Copy link
Copy Markdown
Member

@unkcpz unkcpz commented Apr 28, 2020

@sphuber
This PR

  • remove all six dependency and
  • remove all from __future__ clause.
  • remove < 3.5 test in .travis ci, add an additional python 3.8 test

I assume to bring pre-commit related modified task in the next parallel PR, so that all subsequent changes can have code style checks easily turned on.

Copy link
Copy Markdown
Collaborator

@sphuber sphuber left a comment

Choose a reason for hiding this comment

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

Thanks a lot @unkcpz . Just a few minor comments in your changes. Then there are a few additional things we can improve now that we are dropping Python 2 support:

  • Remove useless object inheritance, i.e. change class Sub(object): to class Sub:.
  • Remove the corresponding pylint disable statements # pylint: disable=useless-object-inheritance
  • Remove the python-modernize hook from the pre-commit-config.yaml
  • Replace occurrences of u'some string' to 'some string', the u unicode indicator is no longer necessary
  • Get rid of SavableFuture._tb_logger and related functionality
  • Replace custom utils.SimpleNamespace with builtin types.SimpleNamespace
  • Update classifiers in setup.py
  • Remove 'pylint<2; python_version<"3"' from setup.py extra requires

Comment thread .pylintrc Outdated
Comment thread setup.py Outdated
Comment thread test/base/test_statemachine.py Outdated
@unkcpz
Copy link
Copy Markdown
Member Author

unkcpz commented Apr 29, 2020

Except for _tb_logger which still used by tornado Future not removed, all you suggested are done.
_tb_logger will be removed after tornado.concurrent.Future is replaced.

@unkcpz
Copy link
Copy Markdown
Member Author

unkcpz commented Apr 29, 2020

And I turn on pre-commit this time, so there are some code style fixes.

@unkcpz unkcpz requested a review from sphuber April 29, 2020 04:01
@sphuber sphuber merged commit 01039c9 into aiidateam:asyncio Apr 29, 2020
@sphuber
Copy link
Copy Markdown
Collaborator

sphuber commented Apr 29, 2020

Thanks a lot @unkcpz ! Great first step. I will now first move from Travis to Github actions just like all our other projects and then we can continue with the rest of your changes

@unkcpz unkcpz deleted the gsoc-drop-six branch April 29, 2020 10:54
unkcpz added a commit to unkcpz/plumpy that referenced this pull request Dec 14, 2024
 * Remove six dependency
 * Remove Python 2.7 and add Python 3.8 to CI
 * Update Python supported versions `classifiers` in `setup.py`
 * Remove useless object inheritance and corresponding pylint disable statements
 * Remove the `python-modernize` hook from the `pre-commit-config.yaml`
 * Replace occurrences of `u'some string'` to `'some string'`
 * Get rid of `SavableFuture._tb_logger` and related functionality
 * Replace custom `utils.SimpleNamespace` with builtin `types.SimpleNamespace`
 * Remove `'pylint<2; python_version<"3"'` from `setup.py` extra requires
agoscinski pushed a commit to agoscinski/plumpy that referenced this pull request Apr 13, 2026
 * Remove six dependency
 * Remove Python 2.7 and add Python 3.8 to CI
 * Update Python supported versions `classifiers` in `setup.py`
 * Remove useless object inheritance and corresponding pylint disable statements
 * Remove the `python-modernize` hook from the `pre-commit-config.yaml`
 * Replace occurrences of `u'some string'` to `'some string'`
 * Get rid of `SavableFuture._tb_logger` and related functionality
 * Replace custom `utils.SimpleNamespace` with builtin `types.SimpleNamespace`
 * Remove `'pylint<2; python_version<"3"'` from `setup.py` extra requires
agoscinski pushed a commit that referenced this pull request Apr 13, 2026
 * Remove six dependency
 * Remove Python 2.7 and add Python 3.8 to CI
 * Update Python supported versions `classifiers` in `setup.py`
 * Remove useless object inheritance and corresponding pylint disable statements
 * Remove the `python-modernize` hook from the `pre-commit-config.yaml`
 * Replace occurrences of `u'some string'` to `'some string'`
 * Get rid of `SavableFuture._tb_logger` and related functionality
 * Replace custom `utils.SimpleNamespace` with builtin `types.SimpleNamespace`
 * Remove `'pylint<2; python_version<"3"'` from `setup.py` extra requires
agoscinski pushed a commit that referenced this pull request Apr 13, 2026
 * Remove six dependency
 * Remove Python 2.7 and add Python 3.8 to CI
 * Update Python supported versions `classifiers` in `setup.py`
 * Remove useless object inheritance and corresponding pylint disable statements
 * Remove the `python-modernize` hook from the `pre-commit-config.yaml`
 * Replace occurrences of `u'some string'` to `'some string'`
 * Get rid of `SavableFuture._tb_logger` and related functionality
 * Replace custom `utils.SimpleNamespace` with builtin `types.SimpleNamespace`
 * Remove `'pylint<2; python_version<"3"'` from `setup.py` extra requires
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.

2 participants