diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index d95e9c4..c21e944 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.8", "3.9", "3.10", "3.11"] + python: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v2 diff --git a/README.rst b/README.rst index 6797d0c..8f79595 100644 --- a/README.rst +++ b/README.rst @@ -10,7 +10,7 @@ Wikipedia API Installation ------------ -This package requires at least Python 3.4 to install because it's using IntEnum. +This package requires at least Python 3.8 to install because it's using IntEnum. .. code-block:: python diff --git a/setup.py b/setup.py index e2a1ba0..1c58319 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,9 @@ def fix_doc(txt): """ Fixes documentation so that it's readable in pypi website. """ - return re.sub(r"\.\. PYPI-BEGIN([\r\n]|.)*?PYPI-END", "", txt, re.DOTALL) + return re.sub( + r"\.\. PYPI-BEGIN([\r\n]|[^\r\n])*?PYPI-END", "", txt, flags=re.DOTALL + ) with open("README.rst", encoding="utf8") as fileR: @@ -34,14 +36,11 @@ def fix_doc(txt): "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", "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 :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "License :: OSI Approved :: MIT License",