diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 87f6cc3..a127586 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -33,7 +33,6 @@ jobs: strategy: matrix: python-version: - - '3.8' - '3.9' - '3.10' - '3.11' diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 2303873..c97511b 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -7,7 +7,6 @@ jobs: strategy: matrix: python-version: - - '3.8' - '3.9' - '3.10' - '3.11' diff --git a/LICENSE b/LICENSE index 5765ac1..66d2a35 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (C) 2012-2023 Ben Kurtovic +Copyright (C) 2012-2025 Ben Kurtovic Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/appveyor.yml b/appveyor.yml index 9747262..610b35b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -21,14 +21,6 @@ environment: secure: w9ql7j0y9fatBSCgsUn1MDFsDvc0WXY88K8hNBHZzq6uBPxWMd7ZblMZSJv4Nywr6ViudQCn4qM/Emm7R8UgKGnHeSX+B8V41ywKgbszEh9wKtuMWI5htsfjaD3Yib/dz/ynGDKEf3nkE6rP2j9bfVLMUARHmvztL+G2rUrjj2GQTqs0ddJ16OudDo2aA/ClsW1Zexc5GPgkun5+JFneUeVV59/bwORGfSjgEtoMyIQ8mdFs/My4sImC+jXFfSHD6s08anIuNX5KO6SSg5mwcxZq+1PweceHivJ87VvCI7w= matrix: - - PYTHON: "C:\\Python38" - PYTHON_VERSION: "3.8" - PYTHON_ARCH: "32" - - - PYTHON: "C:\\Python38-x64" - PYTHON_VERSION: "3.8" - PYTHON_ARCH: "64" - - PYTHON: "C:\\Python39" PYTHON_VERSION: "3.9" PYTHON_ARCH: "32" diff --git a/setup.py b/setup.py index 2199499..3b37117 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #! /usr/bin/env python # -# Copyright (C) 2012-2023 Ben Kurtovic +# Copyright (C) 2012-2025 Ben Kurtovic # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -20,11 +20,13 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -from glob import glob +from __future__ import annotations + import os import sys +from glob import glob -from setuptools import find_packages, setup, Extension +from setuptools import Extension, find_packages, setup from setuptools.command.build_ext import build_ext sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src")) @@ -82,20 +84,18 @@ setup( packages=find_packages("src"), package_dir={"": "src"}, ext_modules=[tokenizer] if use_extension else [], - setup_requires=["pytest-runner"] - if "test" in sys.argv or "pytest" in sys.argv - else [], + setup_requires=( + ["pytest-runner"] if "test" in sys.argv or "pytest" in sys.argv else [] + ), tests_require=["pytest"], version=__version__, - python_requires=">= 3.8", + python_requires=">= 3.9", author="Ben Kurtovic", author_email="ben.kurtovic@gmail.com", url="https://github.com/earwig/mwparserfromhell", description="MWParserFromHell is a parser for MediaWiki wikicode.", long_description=long_docs, - download_url="https://github.com/earwig/mwparserfromhell/tarball/v{}".format( - __version__ - ), + download_url=f"https://github.com/earwig/mwparserfromhell/tarball/v{__version__}", keywords="earwig mwparserfromhell wikipedia wiki mediawiki wikicode template parsing", license="MIT License", classifiers=[ @@ -105,11 +105,11 @@ setup( "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Text Processing :: Markup", ], ) diff --git a/src/mwparserfromhell/__init__.py b/src/mwparserfromhell/__init__.py index f12bf38..49b1312 100644 --- a/src/mwparserfromhell/__init__.py +++ b/src/mwparserfromhell/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2012-2024 Ben Kurtovic +# Copyright (C) 2012-2025 Ben Kurtovic # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -24,8 +24,10 @@ Parser from Hell) is a Python package that provides an easy-to-use and outrageously powerful parser for `MediaWiki `_ wikicode. """ +from __future__ import annotations + __author__ = "Ben Kurtovic" -__copyright__ = "Copyright (C) 2012-2024 Ben Kurtovic" +__copyright__ = "Copyright (C) 2012-2025 Ben Kurtovic" __license__ = "MIT License" __version__ = "0.7.dev0" __email__ = "ben.kurtovic@gmail.com"