From 1eb029d2f4c618fe96be3650299eee88654f92b9 Mon Sep 17 00:00:00 2001 From: 5j9 <5j9@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:47:57 +0330 Subject: [PATCH] feat!: drop python 3.7 support The version '3.7' with architecture 'arm64' was not found for macOS 14.5 --- .github/workflows/tests.yml | 2 +- CHANGELOG.rst | 2 +- README.rst | 2 +- pyproject.toml | 2 +- wikitextparser/_wikitext.py | 5 +---- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0a7508c..06f59de 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] env: OS: ${{ matrix.os }} PYTHON: ${{ matrix.python-version }} diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4e4879f..f114837 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,6 @@ Unreleased ---------- -* +* Drop Python 3.7 support. v0.55.14 -------- diff --git a/README.rst b/README.rst index 90897a5..f2bae9c 100644 --- a/README.rst +++ b/README.rst @@ -19,7 +19,7 @@ The purpose is to allow users easily extract and/or manipulate templates, templa Installation ============ -- Python 3.7+ is required +- Python 3.8+ is required - ``pip install wikitextparser`` Usage diff --git a/pyproject.toml b/pyproject.toml index 922a312..4e7bd42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ classifiers = [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Topic :: Text Processing", ] -requires-python = ">= 3.7" +requires-python = ">= 3.8" dependencies = [ "regex >= 2022.9.11", "wcwidth", diff --git a/wikitextparser/_wikitext.py b/wikitextparser/_wikitext.py index c446d62..1b099c6 100644 --- a/wikitextparser/_wikitext.py +++ b/wikitextparser/_wikitext.py @@ -432,10 +432,7 @@ def insert(self, index: int, string: str) -> None: @property def span(self) -> tuple: """Return the span of self relative to the start of the root node.""" - # In Python 3.7 and earlier, generalized iterable unpacking in yield - # and return statements requires enclosing parentheses: - # https://docs.python.org/3.8/whatsnew/3.8.html#other-language-changes - return (*self._span_data[:2],) # noqa + return (*self._span_data[:2],) @property def string(self) -> str: