Skip to content

Commit 5bc3956

Browse files
committed
Drop supports of Python 3.8
1 parent 9f0b987 commit 5bc3956

File tree

5 files changed

+45
-118
lines changed

5 files changed

+45
-118
lines changed

.github/workflows/tests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
5050
"windows-2019",
5151
},
5252
"python-version": {
53-
"3.8",
5453
"3.9",
5554
"3.10",
5655
"3.11",

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
> [!IMPORTANT]
66
> This version is not released yet and is under active development.
77
8+
- Drop supports for Python 3.8.
89
- Add `is_<group_id>` booleans to module root to test the membership of the current platform to that group.
910
- Rename `ALL_LINUX` group to `LINUX`.
1011
- Rename `ALL_WINDOWS` group to `ANY_WINDOWS`.

extra_platforms/__init__.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,7 @@
1515
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1616
"""Expose package-wide elements."""
1717

18-
import sys
19-
20-
if sys.version_info >= (3, 9):
21-
from functools import cache
22-
else:
23-
from functools import lru_cache
24-
25-
def cache(user_function):
26-
"""Simple lightweight unbounded cache. Sometimes called "memoize".
27-
28-
.. important::
29-
30-
This is a straight `copy of the functools.cache implementation
31-
<https://github.com/python/cpython/blob/55a26de/Lib/functools.py#L647-L653>`_,
32-
which is only `available in the standard library starting with Python v3.9
33-
<https://docs.python.org/3/library/functools.html?highlight=caching#functools.cache>`.
34-
"""
35-
return lru_cache(maxsize=None)(user_function)
36-
37-
18+
from functools import cache
3819
from platform import platform
3920
from typing import FrozenSet
4021

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name = "extra-platforms"
44
version = "1.3.0"
55
# Python versions and their status: https://devguide.python.org/versions/
6-
requires-python = ">= 3.8"
6+
requires-python = ">= 3.9"
77
description = "Detect platforms and group them by family"
88
authors = [{ name = "Kevin Deldycke", email = "kevin@deldycke.com" }]
99
readme = "readme.md"
@@ -19,7 +19,6 @@ classifiers = [
1919
'Operating System :: Microsoft :: Windows',
2020
'Operating System :: POSIX :: Linux',
2121
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.8",
2322
"Programming Language :: Python :: 3.9",
2423
"Programming Language :: Python :: 3.10",
2524
"Programming Language :: Python :: 3.11",

0 commit comments

Comments
 (0)