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

Drop Python 3.5 support #274

Merged
merged 4 commits into from
Dec 9, 2020
Merged

Drop Python 3.5 support #274

merged 4 commits into from
Dec 9, 2020

Conversation

jgosmann
Copy link
Collaborator

@jgosmann jgosmann commented Dec 1, 2020

Motivation and context:

Drop support for Python 3.5 because nengo-bones does not work with it anymore.

  • Change string interpolations and string format() calls to f-strings which were introduced with Python 3.6. A few format() calls remain where an f-string either cannot be used or would be less legible.

Interactions with other PRs:

Fixes build for all other PRs. Other PRs should switch over to f-strings.

How has this been tested?

existing tests

How long should this take to review?

  • Average (neither quick nor lengthy)

Where should a reviewer start?

Changes to the .nengobones.yml might be a good place?

Types of changes:

  • Maintenance

Checklist:

  • I have read the CONTRIBUTING.rst document.
  • I have updated the documentation accordingly.
  • I have included a changelog entry.
  • [n/a] I have added tests to cover my changes.
  • I have run the test suite locally and all tests passed.

Still to do:

  • Double check that missing string interpolation arguments have been filled in correctly.

@jgosmann jgosmann added this to the 1.3.0 milestone Dec 1, 2020
@jgosmann jgosmann self-assigned this Dec 1, 2020
@jgosmann jgosmann changed the title Run CI tests for Python 3.6, 3.7, 3.8, 3.9 Drop Python 3.5 support Dec 1, 2020
@jgosmann jgosmann force-pushed the drop-py35 branch 3 times, most recently from d75d1fa to 8658064 Compare December 1, 2020 20:16
@jgosmann jgosmann marked this pull request as ready for review December 1, 2020 20:17
@jgosmann jgosmann removed their assignment Dec 1, 2020
.nengobones.yml Outdated

travis_yml:
python: 3.7
python: 3.9
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't officially support Python 3.9 yet in Nengo, though that's not to say it might not all work fine.

Copy link
Member

Choose a reason for hiding this comment

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

Unofficially, I'm currently using Python 3.9, but with 3.8 the issue was Windows specific so who knows.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it doesn't hurt to run the tests on 3.9 too as long as they pass. I also think that the "Python 3.6+" formulation in the the readme is fine (NengoSPA is more platform independent than Nengo, so it is even more unlikely that a new Python release breaks things). Might consider taking the classifier out of the setup.py ... but that I would have to re-add it later.

@jgosmann jgosmann force-pushed the drop-py35 branch 2 times, most recently from b808459 to 0d30ac7 Compare December 2, 2020 20:07
This drops Python 3.5 and adds Python 3.8, 3.9

Note that the build of the docs stalls with the 'xenial' dist, thus
using 'focal' (the most recent dist) instead.
A few places remain string format calls because either an f-string
cannot be used or would be less legible. All string interpolations
should be gone now. In two instances the interpolation argument was
missing which is now fixed.
@jgosmann
Copy link
Collaborator Author

jgosmann commented Dec 2, 2020

Force pushed a few more changes:

  • Added 16fb5a6
  • Amended b427ddb to fix docs build
  • Added commit to fix deprecated intersphinx links

@jgosmann jgosmann merged commit 623b79f into master Dec 9, 2020
@jgosmann jgosmann deleted the drop-py35 branch December 9, 2020 19:12
@jgosmann jgosmann mentioned this pull request Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants