Skip to content

Commit

Permalink
chore: drop support for python 3.7, test under python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
dairiki committed Nov 10, 2023
1 parent 708eb42 commit 4a08c70
Show file tree
Hide file tree
Showing 6 changed files with 525 additions and 518 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ repos:
rev: 'v3.15.0'
hooks:
- id: pyupgrade
args: ["--py37-plus"]
args: ["--py38-plus"]

- repo: https://github.com/asottile/reorder_python_imports
rev: v3.12.0
hooks:
- id: reorder-python-imports
args: ["--py37-plus"]
args: ["--py38-plus"]

- repo: https://github.com/PyCQA/flake8
rev: '6.1.0'
Expand Down
7 changes: 1 addition & 6 deletions lektor_index_pages/sourceobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

import hashlib
import pickle
import sys
from collections.abc import Hashable
from itertools import chain
from operator import itemgetter
from typing import Any
from typing import Callable
from typing import Iterable
from typing import Literal
from typing import Sequence
from typing import TYPE_CHECKING
from typing import TypeVar
Expand All @@ -28,11 +28,6 @@
from more_itertools import unique_everseen
from werkzeug.utils import cached_property

if sys.version_info >= (3, 8):
from typing import Literal
else:
from typing_extensions import Literal

if TYPE_CHECKING:
from lektor.builder import PathCache
from lektor.db import Record
Expand Down
Loading

0 comments on commit 4a08c70

Please sign in to comment.