Compare commits

...
Sign in to create a new pull request.

44 commits

Author SHA1 Message Date
Lumir Balhar
11da0f3a63 Update to 6.0.2 (rhbz#2397231) 2025-09-22 12:49:34 +02:00
Python Maint
b2351e3e34 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 13:41:18 +02:00
Lumir Balhar
1fd88c3632 Update to 6.0.1 (rhbz#2390283) 2025-08-24 22:22:09 +02:00
Python Maint
86d492aea6 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 14:04:47 +02:00
Lumir Balhar
d4c3d0bb6c Fix test_wrap_html with Python 3.14rc1 2025-08-05 13:50:20 +02:00
Fedora Release Engineering
cd4ee3066f Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 08:42:31 +00:00
Lumir Balhar
adc8d24589 Update to 6.0.0 (rhbz#2374994) 2025-06-30 11:19:42 +02:00
Python Maint
544488770a Rebuilt for Python 3.14 2025-06-03 12:25:50 +02:00
Python Maint
6df45dce8b Bootstrap for Python 3.14 2025-06-02 21:23:03 +02:00
Lumir Balhar
b9a077ae03 Update to 5.4.0 (rhbz#2361809) 2025-04-23 13:59:36 +02:00
Robert-André Mauchin
b928096276 Update to 5.3.2
Close: rhbz#2357632
2025-04-06 18:29:44 +02:00
Lumir Balhar
c1103ff3c3 Update to 5.3.1 (rhbz#2344609) 2025-02-11 12:10:25 +01:00
Fedora Release Engineering
f75dd54e14 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 15:53:28 +00:00
Miro Hrončok
b52ea727c7 Fix build with Python 3.14
- Fixes: rhbz#2335830
2025-01-06 16:21:46 +01:00
Lumir Balhar
afcfecf47d Update to 5.3.0 (rhbz#2303963) 2024-08-12 14:59:25 +02:00
Lumir Balhar
61d79bae8d Fix doctest failing with the latest libxslt (rhbz#2301176) 2024-07-31 11:18:55 +02:00
Fedora Release Engineering
27c594a8e2 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 12:55:35 +00:00
Python Maint
58ac417c3e Rebuilt for Python 3.13 2024-06-07 23:20:38 +02:00
Python Maint
39e20da595 Rebuilt for Python 3.13 2024-06-07 20:41:48 +02:00
Python Maint
9579799168 Bootstrap for Python 3.13 2024-06-07 09:50:04 +02:00
Lumir Balhar
dbf7e6096c Update to 5.2.1 (rhbz#2272165) 2024-04-04 15:26:12 +02:00
Miro Hrončok
85c8c3f227 Revert "Reduce the type safety as a workaround for build failures in Fedora 40+"
- The workaround has been moved to Cython

See https://src.fedoraproject.org/rpms/Cython/c/ba710e631b8ecf2af6eb636030db6d574d8575b4

This reverts commit 0f51029568.
2024-03-06 14:39:01 +01:00
Miro Hrončok
23cd3c2e48 Fix test_elementtree with Expat 2.6.0
- Fixes: rhbz#2264859
2024-03-04 09:25:24 +01:00
Miro Hrončok
0f51029568 Reduce the type safety as a workaround for build failures in Fedora 40+
- Fixes: rhbz#2261034
- Fixes: rhbz#2256232
2024-02-07 10:58:36 +01:00
Miro Hrončok
009f7659b7 Convert to %autorelease and %autochangelog
[skip changelog]
2024-01-29 19:14:58 +01:00
Tomas Orsava
e38670104e Fixing whitespace 2024-01-29 10:30:12 +01:00
Fedora Release Engineering
3a10d475bb Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 03:09:29 +00:00
Lumir Balhar
db11b56656 Update to 5.1.0 (rhbz#2256232) 2024-01-08 15:29:00 +01:00
Lumir Balhar
63254d5e35 Update to 4.9.4 (rhbz#2255267) 2023-12-20 13:41:58 +01:00
David King
e20963f4cf Fix building against libxml2 2.12.0
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=2250838
2023-11-27 10:16:27 +01:00
Miro Hrončok
9fac0d5501 Python 3.13 compatibility
This only changes the tests.

Fixes https://bugzilla.redhat.com/2247011
2023-11-06 11:43:32 +01:00
Miro Hrončok
3b50336b27 Remove pregenerated Cython C sources in %build
In a future version of mock, %prep will only run once,
which breaks the prior state of this package.

Previously, this only worked because each %prep round restored
the pregenerated files for the setup.py logic to see.

However, when %prep only runs once, the second round of
%pyproject_buildrequires fails unless Cython is already installed,
which is not the default case,
as the dependency has not yet been generated.

See https://github.com/rpm-software-management/mock/pull/1250
2023-10-30 12:43:19 +01:00
Miro Hrončok
55f5648cc5 Fix build with Cython 3 2023-07-28 11:56:41 +02:00
Miro Hrončok
9a245c1e0c Pin Cython < 3 at least until we upgrade to lxml 5+ 2023-07-25 13:55:24 +02:00
Lumir Balhar
79d3d026da Update to 4.9.3 (rhbz#2219811) 2023-07-25 13:40:31 +02:00
Fedora Release Engineering
4452ba9aa0 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 11:10:44 +00:00
Miro Hrončok
3c925c366d Only drop the license-problematic file from ISO-Schematron, not the entire module 2023-07-14 12:34:08 +02:00
Python Maint
0e1ee829e6 Rebuilt for Python 3.12 2023-06-16 08:19:17 +02:00
Miro Hrončok
1a4b58646c Don't run html5lib tests --without extras
For unknown reason, the tests fail with:

    ...
      File "/builddir/build/BUILD/lxml-4.9.2/src/lxml/html/tests/test_html5parser.py", line 304, in call_it
        from lxml.html.html5parser import parse
      File "/builddir/build/BUILD/lxml-4.9.2/src/lxml/html/html5parser.py", line 7, in <module>
        from html5lib import HTMLParser as _HTMLParser
    ModuleNotFoundError: No module named 'html5lib'

But only with Python 3.12, not with Python 3.11.
2023-06-14 19:47:00 +02:00
Miro Hrončok
a1fda59562 Avoid using the deprecated "imp" module (removed in Python 3.12) 2023-06-14 18:32:37 +02:00
Python Maint
4391bca196 Bootstrap for Python 3.12 2023-06-13 21:36:20 +02:00
Miro Hrončok
9d95f5a04e Remove the isoschematron submodule
See https://gitlab.com/fedora/legal/fedora-license-data/-/issues/154

Cherry-picked from 7f6d5f61df

Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com>
2023-06-08 08:48:36 +00:00
Miro Hrončok
af2ab59687 Rework the extras bcond to control the entire extras feature 2023-05-30 22:29:46 +02:00
Yaakov Selkowitz
e3db9bc24a Disable extras in RHEL builds
The `buildrequire_extras` dependencies are unwanted in RHEL.
2023-05-30 15:07:19 -04:00
6 changed files with 1714 additions and 1652 deletions

14
.gitignore vendored
View file

@ -59,3 +59,17 @@ lxml-2.2.7.tar.gz.asc
/lxml-4.7.1.tar.gz
/lxml-4.9.1.tar.gz
/lxml-4.9.2.tar.gz
/lxml-4.9.2-no-isoschematron.tar.gz
/lxml-4.9.2-no-isoschematron-rng.tar.gz
/lxml-4.9.3-no-isoschematron-rng.tar.gz
/lxml-4.9.4-no-isoschematron-rng.tar.gz
/lxml-5.1.0-no-isoschematron-rng.tar.gz
/lxml-5.2.0-no-isoschematron-rng.tar.gz
/lxml-5.2.1-no-isoschematron-rng.tar.gz
/lxml-5.3.0-no-isoschematron-rng.tar.gz
/lxml-5.3.1-no-isoschematron-rng.tar.gz
/lxml-5.3.2-no-isoschematron-rng.tar.gz
/lxml-5.4.0-no-isoschematron-rng.tar.gz
/lxml-6.0.0-no-isoschematron-rng.tar.gz
/lxml-6.0.1-no-isoschematron-rng.tar.gz
/lxml-6.0.2-no-isoschematron-rng.tar.gz

View file

@ -1,34 +0,0 @@
From 91729cf581f764c3321f644206568f18d0fc92f4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com>
Date: Thu, 18 May 2023 08:00:48 +0200
Subject: [PATCH] Skip failing test test_html_prefix_nsmap
Upstream issue: https://bugs.launchpad.net/lxml/+bug/2016939
---
src/lxml/tests/test_etree.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/lxml/tests/test_etree.py b/src/lxml/tests/test_etree.py
index 0339796..1994a7f 100644
--- a/src/lxml/tests/test_etree.py
+++ b/src/lxml/tests/test_etree.py
@@ -27,6 +27,8 @@ from .common_imports import SillyFileLike, LargeFileLikeUnicode, doctest, make_d
from .common_imports import canonicalize, _str, _bytes
from .common_imports import SimpleFSPath
+from unittest import skip
+
print("""
TESTED VERSION: %s""" % etree.__version__ + """
Python: %r""" % (sys.version_info,) + """
@@ -3067,6 +3069,7 @@ class ETreeOnlyTestCase(HelperTestCase):
self.assertEqual(re, e.nsmap)
self.assertEqual(r, s.nsmap)
+ @skip
def test_html_prefix_nsmap(self):
etree = self.etree
el = etree.HTML('<hha:page-description>aa</hha:page-description>').find('.//page-description')
--
2.40.1

1642
changelog Normal file

File diff suppressed because it is too large Load diff

28
get-lxml-source.sh Executable file
View file

@ -0,0 +1,28 @@
#! /bin/bash -ex
# Download a release of lxml (if missing) and remove the isoschematron module from it
version=$1
if [ -z "${version}" ]; then
echo "Usage: $0 VERSION" >& 2
echo "" >& 2
echo "example: $0 4.9.2" >& 2
exit 1
fi
versionedname=lxml-${version}
orig_archive=${versionedname}.tar.gz
new_archive=${versionedname}-no-isoschematron-rng.tar.gz
if [ ! -e ${orig_archive} ]; then
wget -N https://files.pythonhosted.org/packages/source/l/lxml/${orig_archive}
fi
deleted_directory=lxml-${version}/src/lxml/isoschematron/resources/rng
# tar --delete does not operate on compressed archives, so do
# gz decompression explicitly
gzip --decompress ${orig_archive}
tar -v --delete -f ${orig_archive//.gz} ${deleted_directory}
gzip -cf ${orig_archive//.gz} > ${new_archive}

File diff suppressed because it is too large Load diff

View file

@ -1 +1 @@
SHA512 (lxml-4.9.2.tar.gz) = 4597784c96219145fef30607f257097ad312264a6796e65b3dc74463853cd29f55379b6a903b401c1120750126b57f58dd9fc459dd453e57030883fc76b87ea3
SHA512 (lxml-6.0.2-no-isoschematron-rng.tar.gz) = dc89f75c3a3c828a46bcb2eefbebe8f98ce8072b9fb66f8ef81edbf2babed74e4c54e26392603319d60ab3bfab6a4795eedc85b28efba815797d43d53aae4060