Skip to content

Commit 3b0ffd9

Browse files
Drop Python 3.8 (#623)
1 parent cedf116 commit 3b0ffd9

File tree

8 files changed

+9
-48
lines changed

8 files changed

+9
-48
lines changed

.github/workflows/ci-cd.yml

-5
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ jobs:
175175
- >-
176176
3.10
177177
- 3.9
178-
- 3.8
179178
no-extensions: ['', 'Y']
180179
os:
181180
- ubuntu-latest
@@ -196,10 +195,6 @@ jobs:
196195
no-extensions: Y
197196
experimental: false
198197
os: ubuntu-latest
199-
- pyver: pypy-3.8
200-
no-extensions: Y
201-
experimental: false
202-
os: ubuntu-latest
203198
fail-fast: false
204199
runs-on: ${{ matrix.os }}
205200
timeout-minutes: 15

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
rev: '24.8.0'
2525
hooks:
2626
- id: black
27-
language_version: python3 # Should be a command that runs python3.8+
27+
language_version: python3 # Should be a command that runs python3
2828

2929
- repo: https://github.com/python-jsonschema/check-jsonschema.git
3030
rev: 0.29.3

README.rst

-7
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ Installation
7979

8080
$ pip install frozenlist
8181

82-
The library requires Python 3.8 or newer.
83-
8482

8583
Documentation
8684
-------------
@@ -94,11 +92,6 @@ We have a *Matrix Space* `#aio-libs-space:matrix.org
9492
<https://matrix.to/#/%23aio-libs-space:matrix.org>`_ which is
9593
also accessible via Gitter.
9694

97-
Requirements
98-
------------
99-
100-
- Python >= 3.8
101-
10295
License
10396
-------
10497

docs/index.rst

-7
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ Installation
3737
3838
$ pip install frozenlist
3939
40-
The library requires Python 3.8 or newer.
41-
4240
4341
Documentation
4442
=============
@@ -52,11 +50,6 @@ We have a *Matrix Space* `#aio-libs-space:matrix.org
5250
<https://matrix.to/#/%23aio-libs-space:matrix.org>`_ which is
5351
also accessible via Gitter.
5452

55-
Requirements
56-
============
57-
58-
- Python >= 3.8
59-
6053
License
6154
=======
6255

frozenlist/__init__.py

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import os
2-
import sys
32
import types
43
from collections.abc import MutableSequence
54
from functools import total_ordering
6-
from typing import Any, Type
75

86
__version__ = "1.5.1.dev0"
97

@@ -16,17 +14,7 @@
1614
@total_ordering
1715
class FrozenList(MutableSequence):
1816
__slots__ = ("_frozen", "_items")
19-
20-
if sys.version_info >= (3, 9):
21-
__class_getitem__ = classmethod(types.GenericAlias)
22-
else:
23-
24-
@classmethod
25-
def __class_getitem__(
26-
cls: Type["FrozenList"],
27-
cls_item: Any,
28-
) -> Type["FrozenList"]:
29-
return cls
17+
__class_getitem__ = classmethod(types.GenericAlias)
3018

3119
def __init__(self, items=None):
3220
self._frozen = False

frozenlist/_frozenlist.pyx

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
import sys
21
import types
32
from collections.abc import MutableSequence
43

54

65
cdef class FrozenList:
7-
8-
if sys.version_info >= (3, 9):
9-
__class_getitem__ = classmethod(types.GenericAlias)
10-
else:
11-
@classmethod
12-
def __class_getitem__(cls, cls_item):
13-
return cls
6+
__class_getitem__ = classmethod(types.GenericAlias)
147

158
cdef readonly bint frozen
169
cdef list _items

setup.cfg

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ classifiers =
3434
Programming Language :: Cython
3535
Programming Language :: Python
3636
Programming Language :: Python :: 3
37-
Programming Language :: Python :: 3.8
3837
Programming Language :: Python :: 3.9
3938
Programming Language :: Python :: 3.10
4039
Programming Language :: Python :: 3.11
@@ -44,7 +43,7 @@ classifiers =
4443
Programming Language :: Python :: Implementation :: PyPy
4544

4645
[options]
47-
python_requires = >=3.8
46+
python_requires = >=3.9
4847
packages = find:
4948
# https://setuptools.readthedocs.io/en/latest/setuptools.html#setting-the-zip-safe-flag
5049
zip_safe = False

tox.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
envlist =
44
check,
55
clean,
6-
py3{12,11,10,9,8}-{cython,pure},
7-
pypy3{10,9,8}-pure,
6+
py3{13,12,11,10,9}-{cython,pure},
7+
pypy3{11,10,9}-pure,
88
report,
99

1010
[testenv]
@@ -36,7 +36,7 @@ commands =
3636
python setup.py check -rms
3737

3838
basepython:
39-
python3.10
39+
python3.13
4040

4141
[testenv:clean]
4242

@@ -47,7 +47,7 @@ commands =
4747
coverage erase
4848

4949
basepython:
50-
python3.10
50+
python3.13
5151

5252
[testenv:report]
5353

@@ -63,4 +63,4 @@ whitelist_externals =
6363
echo
6464

6565
basepython:
66-
python3.8
66+
python3.13

0 commit comments

Comments
 (0)