Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Deprecate older Python versions?#1662

JohnVillalovos started this conversation inGeneral
Nov 1, 2021· 3 comments· 5 replies
Discussion options

Should we deprecate older Python versions?

We have the 3.0 release coming up. Should we deprecate Python 3.6 support?

Python 3.6.0 was released on 2016-12-23:https://www.python.org/downloads/release/python-360/

One benefit is that Python 3.7 supports:from __future__ import annotations

You must be logged in to vote

Replies: 3 comments 5 replies

Comment options

JohnVillalovos
Nov 1, 2021
Maintainer Author

@nejch What do you think?

You must be logged in to vote
2 replies
@nejch
Comment options

nejchNov 2, 2021
Maintainer

I'm also eager to start using new feature 😁

I would maybe keep it at least until its EOL (https://endoflife.date/python, not sure if it's the most accurate prediction buthttps://www.python.org/dev/peps/pep-0494/#lifespan suggests something like that). Do you mean deprecate and just emit a warning or drop completely? As a library I'd keep it a little conservative, I know Ansible can be like that and the community.general collection depends on this for the gitlab modules.

But maybe that shouldn't stop us from addingfrom __future__ import annotations. We could addhttps://pypi.org/project/future-annotations/ to requires for python<3.7, it's only a small penalty for 3.6 users at install time.

@JohnVillalovos
Comment options

JohnVillalovosNov 2, 2021
Maintainer Author

I guess by "deprecate" I mean stop supporting. As in drop-completely. Would make sense to me for the 3.0 release. The 2.X release would still have support for Python 3.6.

Looks like Python 3.6 is End-of-Life in less than two months... To me that is pretty much EOL to me.

Comment options

JohnVillalovos
Nov 6, 2021
Maintainer Author

Another benefit of moving to Python 3.7 as a minimum is we can start using dataclasses

https://docs.python.org/3/library/dataclasses.html

You must be logged in to vote
3 replies
@nejch
Comment options

nejchNov 7, 2021
Maintainer

Good point. We could maybe do it in December with 3.0.0.

@max-wittig
Comment options

Yeah that makes sense. Python 3.6 is officially supported until the 23th of December, according tohttps://endoflife.date/python

@JohnVillalovos
Comment options

JohnVillalovosNov 7, 2021
Maintainer Author

Cool. So if we have made a decision to drop Python 3.6 support for the 3.0.0 release, we probably could start the work now in themain branch.

What do you think?

Comment options

JohnVillalovos
Nov 23, 2021
Maintainer Author

I've created a PR to drop support for Python 3.6. And require Python 3.7 or newer.

#1705

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
3 participants
@JohnVillalovos@max-wittig@nejch

[8]ページ先頭

©2009-2025 Movatter.jp