Skip to content

Commit

Permalink
Deprecate Python 3.6 (#1017)
Browse files Browse the repository at this point in the history
* Rename CI workflow to a more meaningful name

* News fragment
  • Loading branch information
hynek committed Aug 22, 2022
1 parent cd35505 commit fab5a92
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
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

0 comments on commit fab5a92

Please sign in to comment.