Skip to content

Commit 415d79c

Browse files
committed
Drop support for Python 3.7 and 3.8
1 parent b295063 commit 415d79c

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest]
1717
python-version:
18-
- "3.8"
1918
- "3.9"
2019
- "3.10"
2120
- "3.11"
@@ -31,7 +30,7 @@ jobs:
3130
- name: Install dependencies
3231
run: |
3332
python -m pip install --upgrade pip
34-
pip install setuptools wheel "blessed>=1.5" cwcwidth "backports.cached-property; python_version < '3.9'" pyte pytest
33+
pip install setuptools wheel "blessed>=1.5" cwcwidth pyte pytest
3534
- name: Build with Python ${{ matrix.python-version }}
3635
run: |
3736
python setup.py build

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ jobs:
3636
run: |
3737
python -m pip install --upgrade pip
3838
pip install mypy
39-
pip install "blessed>=1.5" cwcwidth "backports.cached-property; python_version < '3.9'" pyte
39+
pip install "blessed>=1.5" cwcwidth pyte
4040
- name: Check with mypy
4141
run: python -m mypy

.github/workflows/publish-twine.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip
19-
pip install setuptools wheel "blessed>=1.5" cwcwidth "backports.cached-property; python_version < '3.9'"
19+
pip install setuptools wheel "blessed>=1.5" cwcwidth
2020
- name: Build sdist
2121
run: |
2222
python setup.py sdist

curtsies/formatstring.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import re
2323
from cwcwidth import wcswidth, wcwidth
24+
from functools import cached_property
2425
from itertools import chain
2526
from typing import (
2627
Any,
@@ -38,11 +39,6 @@
3839
no_type_check,
3940
)
4041

41-
try:
42-
from functools import cached_property
43-
except ImportError:
44-
from backports.cached_property import cached_property # type: ignore
45-
4642
from .escseqparse import parse, remove_ansi
4743
from .termformatconstants import (
4844
FG_COLORS,

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ classifiers =
1818
Programming Language :: Python :: 3
1919

2020
[options]
21-
python_requires = >=3.7
21+
python_requires = >=3.9
2222
zip_safe = False
2323
packages = curtsies
2424
install_requires =
2525
blessed>=1.5
2626
cwcwidth
27-
backports.cached-property; python_version < "3.8"
2827
tests_require =
2928
pyte
3029
pytest

0 commit comments

Comments
 (0)