From c995e0198fa98d4113bafe838eda0f33f530c495 Mon Sep 17 00:00:00 2001 From: loqs Date: Sat, 11 Apr 2026 21:14:20 +0000 Subject: [PATCH 1/2] appveyor: Change image to Visual Studio 2017 appveyor's Visual Studio 2022 images update on September 4, 2024 removed support for python 3.7 as documented in https://www.appveyor.com/updates/2024/06/13/. --- .appveyor.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index e6f7bf48..9dab32f2 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,7 +1,8 @@ # appveyor.yml - https://www.appveyor.com/docs/lang/python -# https://www.appveyor.com/docs/windows-images-software/#visual-studio-2022 +# https://www.appveyor.com/docs/windows-images-software/#visual-studio-2017 --- -image: Visual Studio 2022 +image: Visual Studio 2017 + environment: matrix: - PY_PYTHON: 2.7 From ef6d0736827c005c63bdc9bbf9089889be63556c Mon Sep 17 00:00:00 2001 From: loqs Date: Sun, 12 Apr 2026 23:50:09 +0100 Subject: [PATCH 2/2] Add upper bound < 5.0.0 to lxml for python 2.7 Support for python 2.7 was removed inhttps://pypi.org/project/lxml/5.1.0/. However there are no python 2.7 wheels for Windows for lxml >- 5.0.0. --- requirements-optional.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements-optional.txt b/requirements-optional.txt index 2e112e95..a6c1f90c 100644 --- a/requirements-optional.txt +++ b/requirements-optional.txt @@ -10,4 +10,5 @@ chardet>=2.2.1 # lxml is supported with its own treebuilder ("lxml") and otherwise # uses the standard ElementTree support -lxml>=3.4.0 ; platform_python_implementation == 'CPython' +lxml>=3.4.0, <5.0.0 ; python_version < '3.0' and platform_python_implementation == 'CPython' +lxml>=3.4.0 ; python_version >= '3.0' and platform_python_implementation == 'CPython' \ No newline at end of file