Skip to content

Commit

Permalink
Drop Python3.7 support (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Jul 31, 2023
1 parent c09dcd1 commit 471f380
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Expand Up @@ -31,9 +31,6 @@ jobs:
fail-fast: false
matrix:
include:
- platform: ubuntu-latest
python-version: 3.7
py: py37
- platform: ubuntu-latest
python-version: 3.8
py: py38
Expand All @@ -50,17 +47,17 @@ jobs:
python-version: 3.12.0-beta.4
py: py312
- platform: macos-latest
python-version: 3.7
py: py37
python-version: 3.8
py: py38
- platform: macos-latest
python-version: "3.11"
py: py311
- platform: macos-latest
python-version: 3.12.0-beta.4
py: py312
- platform: windows-latest
python-version: 3.7
py: py37
python-version: 3.8
py: py38
- platform: windows-latest
python-version: "3.11"
py: py311
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -30,7 +30,7 @@ repos:
hooks:
- id: pyupgrade
args:
- --py37-plus
- --py38-plus
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Expand Up @@ -4,7 +4,7 @@ version = "4.0.4"
description = "Mkdocs Markdown includer plugin."
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.7,<3.13"
requires-python = ">=3.8,<3.13"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
Expand All @@ -15,7 +15,6 @@ classifiers = [
"Topic :: Text Processing",
"Topic :: Text Processing :: Markup :: Markdown",
"Environment :: Console",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down Expand Up @@ -70,7 +69,7 @@ matrix-name-format = "{variable}-{value}"
dependencies = ["pytest~=7.0", "coverage~=6.4", "covdefaults"]

[[tool.hatch.envs.tests.matrix]]
python = ["py37", "py38", "py39", "py310", "py311", "py312"]
python = ["py38", "py39", "py310", "py311", "py312"]
mkdocs = ["1.2.4", "1.3.1", "1.4.0", "1.4.2"]
cache = ["yes", "no"]

Expand Down Expand Up @@ -188,7 +187,7 @@ sections = [
"TESTS",
"LOCALFOLDER"
]
py_version = 37
py_version = 38
extra_standard_library = [
"contextvars",
"dataclasses",
Expand Down
7 changes: 1 addition & 6 deletions src/mkdocs_include_markdown_plugin/event.py
Expand Up @@ -32,12 +32,7 @@


if TYPE_CHECKING: # remove this for mypyc compiling
import sys

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

from mkdocs.structure.pages import Page

Expand Down

0 comments on commit 471f380

Please sign in to comment.