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

Deprecate Python 3.6 #1017

Merged
merged 6 commits into from Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelog.d/1017.deprecation.rst
@@ -0,0 +1,2 @@
Python 3.6 is now deprecated and is slated for removal in the next release.
If that would affect you, please `let us know <https://github.com/python-attrs/attrs/pull/993>`_.
3 changes: 0 additions & 3 deletions changelog.d/988.breaking.rst
@@ -1,4 +1 @@
Python 3.5 is not supported anymore.

We're considering to drop 3.6 soon too.
If that would affect you, please `let us know <https://github.com/python-attrs/attrs/pull/993>`_.
11 changes: 11 additions & 0 deletions src/attr/__init__.py
@@ -1,5 +1,8 @@
# SPDX-License-Identifier: MIT

import sys
import warnings

from functools import partial

from . import converters, exceptions, filters, setters, validators
Expand All @@ -21,6 +24,14 @@
from ._version_info import VersionInfo


if sys.version_info < (3, 7): # pragma: no cover
warnings.warn(
"Running attrs on Python 3.6 is deprecated & we intend to drop "
"support soon. If that's a problem for you, please let us know why & "
"we MAY re-evaluate: <https://github.com/python-attrs/attrs/pull/993>",
DeprecationWarning,
)

__version__ = "22.2.0.dev0"
__version_info__ = VersionInfo._from_version_string(__version__)

Expand Down