Skip to content

Commit

Permalink
feat!: drop python 3.7 support
Browse files Browse the repository at this point in the history
The version '3.7' with architecture 'arm64' was not found for macOS 14.5
  • Loading branch information
5j9 committed Jun 28, 2024
1 parent 5346f02 commit 1eb029d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Unreleased
----------
*
* Drop Python 3.7 support.

v0.55.14
--------
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 1 addition & 4 deletions wikitextparser/_wikitext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1eb029d

Please sign in to comment.