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

Consider changes needed/possible when Python3.5 reaches end of life #567

Closed
neiljp opened this issue Mar 29, 2020 · 6 comments
Closed

Consider changes needed/possible when Python3.5 reaches end of life #567

neiljp opened this issue Mar 29, 2020 · 6 comments
Assignees
Labels
area: infrastructure Project infrastructure area: refactoring further discussion required Discuss this on #zulip-terminal on chat.zulip.org
Milestone

Comments

@neiljp
Copy link
Collaborator

neiljp commented Mar 29, 2020

Possible changes at this point, once we remove support for Python 3.5:

  • Remove explicit zipp version from install files (pinned as it dropped 3.5 support already)
  • Migrate type comments to type annotations for variables (automate this?)
  • Migrate to f-strings where appropriate (automate this?)

Current end of life (EOL) will be 2020-09-13 according to https://devguide.python.org/#status-of-python-branches

For other thoughts on this, please discuss on #zulip-terminal at chat.zulip.org

@neiljp neiljp added the further discussion required Discuss this on #zulip-terminal on chat.zulip.org label Mar 29, 2020
@neiljp
Copy link
Collaborator Author

neiljp commented Apr 19, 2020

Automation of some aspects can be made using:

@neiljp
Copy link
Collaborator Author

neiljp commented May 1, 2020

Also https://github.com/jacktasia/fstringify for %-style strings to f-strings, but I'm not sure we really use this much.

@neiljp
Copy link
Collaborator Author

neiljp commented Dec 3, 2020

Progress towards this is ongoing in #838

@neiljp neiljp self-assigned this Dec 3, 2020
@Ezio-Sarthak
Copy link
Member

Ezio-Sarthak commented Mar 18, 2021

I think the only aspect left for this issue is the migration from type comments to type annotations?

A quick git grep shows there are 7 type comments existing. The tool you mentioned seems cool! Since there aren't many cases existing now, we may think of automation later?

@neiljp neiljp added this to the Next Release milestone Apr 5, 2021
@neiljp
Copy link
Collaborator Author

neiljp commented Apr 5, 2021

I'm closing this now, since we've applied this to the code and tests.

@zulipbot
Copy link
Member

Hello @zulip/server-refactoring members, this issue was labeled with the "area: refactoring" label, so you may want to check it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: infrastructure Project infrastructure area: refactoring further discussion required Discuss this on #zulip-terminal on chat.zulip.org
Projects
None yet
Development

No branches or pull requests

3 participants