From 471f3808f143e57a9ad634cdeb402e7c1d71464f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Mon, 31 Jul 2023 17:11:21 -0600 Subject: [PATCH] Drop Python3.7 support (#167) --- .github/workflows/ci.yml | 11 ++++------- .pre-commit-config.yaml | 2 +- pyproject.toml | 7 +++---- src/mkdocs_include_markdown_plugin/event.py | 7 +------ 4 files changed, 9 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 771b01a..9adfb24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -50,8 +47,8 @@ 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 @@ -59,8 +56,8 @@ jobs: 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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc9eff5..0994242 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/pyproject.toml b/pyproject.toml index b9992ac..82d926a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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", @@ -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"] @@ -188,7 +187,7 @@ sections = [ "TESTS", "LOCALFOLDER" ] -py_version = 37 +py_version = 38 extra_standard_library = [ "contextvars", "dataclasses", diff --git a/src/mkdocs_include_markdown_plugin/event.py b/src/mkdocs_include_markdown_plugin/event.py index adc6478..2f7242c 100644 --- a/src/mkdocs_include_markdown_plugin/event.py +++ b/src/mkdocs_include_markdown_plugin/event.py @@ -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