From 1aace106516aef539bfa964ea1631f72b426c420 Mon Sep 17 00:00:00 2001 From: vyuroshchin <> Date: Mon, 6 Jul 2026 16:19:57 +0300 Subject: [PATCH] drop support python3.9 and add support python3.14 --- .github/workflows/main.yml | 16 ++++++++-------- .github/workflows/pypi.yml | 4 ++-- html2text/config.py | 3 +-- pyproject.toml | 8 ++++---- tox.ini | 4 ++-- 5 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a0cd8b9..3cf5801 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,12 +27,12 @@ jobs: name: "Tox ${{ matrix.toxenv }}" steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: fetch-depth: 0 - name: setup python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: '3.13' @@ -48,14 +48,12 @@ jobs: strategy: matrix: toxenv: - - py39 - py310 - py311 - py312 - py313 + - py314 include: - - toxenv: py39 - python-version: '3.9' - toxenv: py310 python-version: '3.10' - toxenv: py311 @@ -64,6 +62,8 @@ jobs: python-version: '3.12' - toxenv: py313 python-version: '3.13' + - toxenv: py314 + python-version: '3.14' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TOXENV: ${{ matrix.toxenv }} @@ -72,12 +72,12 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: fetch-depth: 2 - name: setup python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} @@ -88,7 +88,7 @@ jobs: run: tox - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@v7 with: flags: unittests-${{ matrix.python-version }} token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index ecdfc07..c8438a6 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -15,9 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v7 - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 with: python-version: '3.13' diff --git a/html2text/config.py b/html2text/config.py index ee316b4..65a1e4f 100644 --- a/html2text/config.py +++ b/html2text/config.py @@ -104,8 +104,7 @@ r""" (\\) # match one slash (?=[%s]) # followed by a char that requires escaping - """ - % re.escape(RE_SLASH_CHARS), + """ % re.escape(RE_SLASH_CHARS), flags=re.VERBOSE, ) diff --git a/pyproject.toml b/pyproject.toml index 6e6aa6c..e759894 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,17 +15,17 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "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", + "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] urls = {Homepage = "https://github.com/Alir3z4/html2text/"} -requires-python = ">=3.9" +requires-python = ">=3.10" dynamic = ["version"] [project.scripts] @@ -45,7 +45,7 @@ write_to = "html2text/_version.py" [tool.black] line-length = 88 -target-version = ['py313'] +target-version = ['py310'] extend-exclude = ''' /( html2text/_version.py @@ -62,4 +62,4 @@ combine_as_imports = true extend_skip = ["html2text/_version.py"] [tool.mypy] -python_version = "3.9" +python_version = "3.10" diff --git a/tox.ini b/tox.ini index ceadecc..57b0658 100644 --- a/tox.ini +++ b/tox.ini @@ -4,8 +4,8 @@ envlist = flake8 isort mypy - py{39,310,311,312,313,py3} -minversion = 4.11.4 + py{310,311,312,313,314,py3} +minversion = 4.56.1 [testenv] commands =