Compare commits

...

127 Commits

Author SHA1 Message Date
Miro Hrončok 9c1438f59e Define a buildrequire_extras %bcond for bootstrapping 2022-09-21 14:33:34 +02:00
Charalampos Stratakis 8cd3405121 Update to 4.9.1
Fix for CVE-2022-2309

Resolves: rhbz#2107571, rhbz#2110131
2022-09-15 00:01:08 +02:00
Miro Hrončok 0a54307e77 Convert package to %pyproject RPM macros 2022-08-31 12:07:04 +02:00
Miro Hrončok eb057e7afa Drop redundant source number 2022-08-31 11:44:07 +02:00
Miro Hrončok e45c54553a Package the lxml[cssselect], lxml[html5] and lxml[htmlsoup] extras 2022-08-31 11:43:50 +02:00
Miro Hrončok e79be2c17a Use SPDX license identifiers, update license
The schematron files are not Zlib licensed, but MIT (since 4.3.0):

5a444c238f
2022-08-31 11:36:03 +02:00
Miro Hrončok e82cceb573 Drop unfinished sentence from the %description 2022-08-31 11:26:47 +02:00
Miro Hrončok d8ab550c3c Drop deprecated %python_provide, it is not needed 2022-08-31 11:24:26 +02:00
Miro Hrončok 6659c59618 Expand %{modname} in spec for better readability 2022-08-31 11:23:41 +02:00
Mikolaj Izdebski f7a9cbe29f Onboard package into gating 2022-08-31 07:07:31 +02:00
Fedora Release Engineering 36529bc549 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 19:51:18 +00:00
Charalampos Stratakis d714fa326e Fix FTBFS with setuptools >= 62.1
Resolves: rhbz#2097102
2022-06-22 20:01:46 +02:00
Python Maint 343c16cba5 Rebuilt for Python 3.11 2022-06-13 16:01:26 +02:00
Fedora Release Engineering 68133020f5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 13:17:38 +00:00
Charalampos Stratakis eb5a8db088 Update to 4.7.1
Fixes CVE-2021-43818

Resolves: rhbz#2031686, rhbz#2032572
2022-01-06 15:10:44 +01:00
Miro Hrončok 27eebecb4d Backport a fix for Python 3.11 2021-11-26 17:18:46 +01:00
Miro Hrončok b51ac78331 Actually run the tests during build
Fixes https://bugzilla.redhat.com/2026941
2021-11-26 17:18:46 +01:00
Fedora Release Engineering 983dd0d448 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 07:20:50 +00:00
Mikolaj Izdebski 1a5f8b2a9f Bump release 2021-06-04 15:05:12 +02:00
Charalampos Stratakis 27ac46f9e9 Update the license information 2021-06-03 20:21:20 +02:00
Python Maint 627098066f Rebuilt for Python 3.10 2021-06-02 15:11:30 +02:00
Charalampos Stratakis e9743571ee Update to 4.6.3
Fixes CVE-2021-28957
2021-05-20 17:01:27 +02:00
Fedora Release Engineering eddc9feea5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 11:33:58 +00:00
Miro Hrončok 2c9f85992c Update to 4.6.2
The source URL was changed to use PyPI sdist,
because lxml.de does not yet have this version.
2020-12-02 00:24:10 +01:00
Fedora Release Engineering fbb0adcd12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 01:59:46 +00:00
Igor Raits e646c1352a Update to 4.5.1
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-06-01 20:14:04 +02:00
Miro Hrončok 7af357f1ba Rebuilt for Python 3.9 2020-05-22 22:10:02 +02:00
Fedora Release Engineering e6e6df4b40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 13:13:09 +00:00
Miro Hrončok d39bc4a9d1 Subpackage python2-lxml has been removed 2019-11-21 00:38:31 +01:00
Igor Gnatenko 960a9c1ff7
Generate C files using py3 Cython
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-09-07 13:36:10 +02:00
Igor Gnatenko 9f539bef55
Update to 4.4.1
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-09-07 12:36:03 +02:00
Miro Hrončok d732eb2898 Rebuilt for Python 3.8 2019-08-16 14:05:00 +02:00
Igor Gnatenko 059902b361
Update to 4.4.0
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-08-03 14:32:48 +02:00
Fedora Release Engineering 49d7109317 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 14:24:00 +00:00
Miro Hrončok abc1e71640 Remove pregenerated Cython C sources 2019-05-15 12:16:34 +02:00
Fedora Release Engineering 1dcd880cc2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 07:38:12 +00:00
Igor Gnatenko 714d829168
Update to 4.2.5
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-12-18 11:45:21 +01:00
Igor Gnatenko 7906b1b210
Update to 4.2.4
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-09-02 09:57:28 +02:00
Fedora Release Engineering ee81b64249 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 00:53:02 +00:00
Igor Gnatenko f6400d7a5a
Update to 4.2.3
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-07 16:21:26 +02:00
Miro Hrončok 4fc8635041 Rebuilt for Python 3.7 2018-06-17 17:30:55 +02:00
Igor Gnatenko 55db4c1701
Update to 4.2.1
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-04-25 17:59:43 +02:00
Fedora Release Engineering 5728af653f - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 08:47:15 +00:00
Igor Gnatenko 3ca414986f get latest version back
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-11-05 09:47:58 +01:00
Igor Gnatenko 985b25d595 enforce Cython
This falls under pre-generated code, while autotools pregenerated
code is used only in build-time, Cython pregenerated code is
what you get for runtime and there might be vulnerabilities
or bad performance due to that (depends on which Cython version
upstream generated C code). Also upstream had to release 4.1.1
with rebuilt C code with latest Cython due to Py3.7.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-11-05 09:45:00 +01:00
Igor Gnatenko c0ca746055 order changelog
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-11-05 09:36:42 +01:00
Igor Gnatenko 1ff71ff1d4 Update to 4.1.1
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-11-05 09:36:03 +01:00
Mikolaj Izdebski 3b003d493f Conditionally allow building without Cython 2017-10-10 11:22:43 +02:00
Mikolaj Izdebski a50349c35b Optimize dependencies
Weaken dependencies on optional libraries -- cssselect is totally
optional (and rarely used), html5lib and beautifulsoup4 are used only
for HTML support, while primary use of lxml is processing XML.
2017-10-05 09:41:12 +02:00
Igor Gnatenko 0da2f4356f Update to 4.0.0
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-10-05 09:38:14 +02:00
Igor Gnatenko dbf0af88ea make sure that Cython is used
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-10-05 09:37:13 +02:00
Igor Gnatenko c4b2e3dc7d python->python2 + add missing Cython
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-10-05 09:36:47 +02:00
Igor Gnatenko 177059089a reorder dependencies
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-10-05 09:36:06 +02:00
Igor Gnatenko 0b6379bf45 don't duplicate description
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-10-04 16:42:57 +02:00
Igor Gnatenko f4dff19db5 don't duplicate summary
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-10-04 16:42:07 +02:00
Igor Gnatenko ed72f1a0a3 trivial cleanups in filelists
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-10-04 16:41:41 +02:00
Igor Gnatenko 6ac2a832d1 pypi_name -> modname
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-10-04 16:41:16 +02:00
Kevin Fenzi 4d9870a4c2 Update to 3.8.0. Fixes bug #1458529 2017-08-13 12:06:33 -07:00
Fedora Release Engineering 98066c33e9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 06:49:46 +00:00
Fedora Release Engineering a50d6b49db - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 10:50:10 +00:00
Fedora Release Engineering 190f1593a2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 09:31:06 +00:00
Fabio Alessandro Locati 056f2965fb
Fix data 2017-01-09 20:09:22 +01:00
Fabio Alessandro Locati 38fa2a8408
Add source 2017-01-09 20:08:04 +01:00
Fabio Alessandro Locati 6cad8c2616
Update to 3.7.2 2017-01-09 20:06:42 +01:00
Fabio Alessandro Locati e297bac264
Fix conflict 2016-12-25 11:25:15 +01:00
Fabio Alessandro Locati ff76e526fd
Update to 3.7.1 2016-12-25 11:23:56 +01:00
Charalampos Stratakis b2c7165e1f Rebuild for Python 3.6 2016-12-13 18:42:45 +01:00
Fabio Alessandro Locati 6084fd0b24
Improve spec 2016-12-13 08:27:59 +01:00
Fabio Alessandro Locati e13b8862f4
Shorten the summary 2016-12-11 12:12:24 +01:00
Fabio Alessandro Locati 6f8d8ee68b
Update to 3.7.0 2016-12-11 11:25:07 +01:00
Fabio Alessandro Locati 24f57899f0 Rollback previous commit 2016-09-17 15:40:38 +02:00
Fabio Alessandro Locati 001f6404e9 Prepare for EL7 porting 2016-09-17 15:36:43 +02:00
Fabio Alessandro Locati f61642a334 Bump to 3.6.4 2016-09-17 12:50:18 +02:00
Fedora Release Engineering ff3eeccbe7 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 10:22:28 +00:00
Fedora Release Engineering 4e73b662e1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 20:06:08 +00:00
Dan Horák 83cdac57e0 - fix conditional 2016-01-21 11:48:06 +01:00
Robert Kuska d9485623b7 Rebuilt for Python3.5 rebuild 2015-11-06 13:29:14 +01:00
Peter Robinson 76c7498a0a Update to 3.4.4, Use %%license, cleanup spec 2015-08-28 18:09:32 +01:00
Dennis Gilmore 3a9c7bab3c - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 19:51:27 +00:00
Jeffrey C. Ollie f315d29349 3.3.6 2014-08-29 14:13:30 -05:00
Peter Robinson 0fd37603b9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 21:22:58 +00:00
Dennis Gilmore aeef05dfca - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 16:16:57 -05:00
Slavek Kabrda a555fb9381 Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 2014-05-15 16:35:43 +02:00
Jeffrey C. Ollie d357fa2a65 3.3.5 2014-04-28 09:51:02 -05:00
Jeffrey C. Ollie 716fd21260 Fix macro definition 2014-03-26 14:51:54 -05:00
Jeffrey C. Ollie e06f0bc997 Add python3-cssselect requirement to correct package 2014-03-26 14:24:15 -05:00
Jeffrey C. Ollie b6e58a15d2 python3-cssselect is F20 and newer 2014-03-24 10:48:17 -05:00
Jeffrey C. Ollie 6c681be7e9 cssselect 2014-03-24 10:20:30 -05:00
Jeffrey C. Ollie 789f01d7e3 3.3.3 2014-03-11 10:19:56 -05:00
Alexander Todorov 42d104291d Add check section #1075070 2014-03-11 10:13:05 -05:00
Jeffrey C. Ollie 2d262b8b43 3.3.2 2014-02-28 08:53:36 -06:00
Jeffrey C. Ollie 40d97e525c update Cython req 2014-01-27 12:30:25 -06:00
Jeffrey C. Ollie b751d65754 fix changelog date 2014-01-27 10:25:11 -06:00
Jeffrey C. Ollie 2f5ae9c44f 3.3.0 2014-01-27 09:50:51 -06:00
Jeffrey C. Ollie 1523d8509c 3.2.4 2013-11-11 14:21:19 -06:00
Jeffrey C. Ollie d1aad45540 add cssselect requirement 2013-09-18 12:42:19 -05:00
Jeffrey C. Ollie ad42ed91ae 3.2.3 2013-07-28 13:40:28 -05:00
Jeffrey C. Ollie b0c0cef047 3.2.1 2013-05-11 21:48:09 -05:00
Jeffrey C. Ollie be85c7c18b 3.2.0 2013-05-10 10:29:27 -05:00
Jeffrey C. Ollie b408efed45 3.1.0 2013-03-08 15:00:03 -06:00
Dennis Gilmore 008533f694 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 13:48:32 -06:00
Jeffrey C. Ollie 59580481ef 3.0.1 2012-10-15 16:18:03 -05:00
Jeffrey C. Ollie b5d75d9b28 3.0 2012-10-10 10:57:13 -05:00
Jeffrey C. Ollie b262b590a4 2.3.5 2012-09-27 09:51:02 -05:00
David Malcolm 3fa91ae8d1 rebuild for https://fedoraproject.org/wiki/Features/Python_3.3 2012-08-04 05:02:52 -04:00
David Malcolm 0d60ae443f remove rhel logic from with_python3 conditional 2012-08-03 12:25:10 -04:00
Dennis Gilmore a771b332cf - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 02:02:19 -05:00
Jeffrey C. Ollie 1631eb9364 README.txt no longer in package 2012-01-05 16:10:41 -06:00
Jeffrey C. Ollie df54e69f52 README.txt no longer in package 2012-01-05 15:56:48 -06:00
Jeffrey C. Ollie 5860e7ed86 2.3.3 2012-01-05 10:24:01 -06:00
Jeffrey C. Ollie e28be7908c 2.3.3 2011-11-14 10:15:43 -06:00
Jeffrey C. Ollie 1ed9ae17d9 2.3.1 2011-09-25 15:37:36 -05:00
Jeffrey C. Ollie d7112cd657 Update to 2.3 2011-04-19 10:40:15 -05:00
Dennis Gilmore 599fd5e6ed - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 22:58:50 -06:00
David Malcolm 4592a57e2d rebuild for newer python3 2010-12-29 18:09:39 -05:00
Jeffrey C. Ollie b303b1dc2e - Rebuild for newer libxml2 2010-11-05 08:06:23 -05:00
Jeffrey C. Ollie 04bd166fa7 - 2.2.8 (2010-09-02)
- Bugs fixed
-
-     * Crash in newer libxml2 versions when moving elements between
-       documents that had attributes on replaced XInclude nodes.
-     * Import fix for urljoin in Python 3.1+.
2010-09-06 21:23:34 -05:00
Jeffrey C. Ollie eb0cd0e76a - 2.2.8 (2010-09-02)
- Bugs fixed
-
-     * Crash in newer libxml2 versions when moving elements between
-       documents that had attributes on replaced XInclude nodes.
-     * Import fix for urljoin in Python 3.1+.
2010-09-06 20:24:38 -05:00
Jeffrey C. Ollie 721b254fb8 - Don't byte-compile files during install because setup.py doesn't
properly byte compile for Python version 3.2
2010-08-24 01:15:58 -05:00
Jeffrey C. Ollie c452ac6e55 - Rebuild for Python 3.2 2010-08-24 00:57:59 -05:00
Fedora Release Engineering 4b6102efbd dist-git conversion 2010-07-29 10:29:06 +00:00
Jeffrey C. Ollie da85d844e6 - 2.2.7 (2010-07-24)
- Bugs fixed
-
- * Crash in XSLT when generating text-only result documents with a
    stylesheet created in a different thread.
2010-07-26 18:37:22 +00:00
dmalcolm fe7e895248 add the patch; remove the mistakenly-added src.rpm 2010-07-26 18:02:23 +00:00
dmalcolm 91cc1cce3d workaround for 2to3 issue (patch 0; bug 600036) 2010-07-26 17:57:39 +00:00
dmalcolm 8f0e38b4e3 - Rebuilt for
https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2010-07-22 04:39:34 +00:00
Jeffrey C. Ollie 8d9cf440b7 - 2.2.6 (2010-03-02)
-
- Bugs fixed
-
- * Fixed several Python 3 regressions by building with Cython 0.11.3.
2010-03-02 16:49:45 +00:00
Jeffrey C. Ollie 3a351544ae - 2.2.5 (2010-02-28)
-
- Features added
-
- * Support for running XSLT extension elements on the input root node
- (e.g. in a template matching on "/").
-
- Bugs fixed
-
- * Crash in XPath evaluation when reading smart strings from a document
- other than the original context document.
- * Support recent versions of html5lib by not requiring its XHTMLParser
- in htmlparser.py anymore.
- * Manually instantiating the custom element classes in lxml.objectify
- could crash.
- * Invalid XML text characters were not rejected by the API when they
- appeared in unicode strings directly after non-ASCII characters.
- * lxml.html.open_http_urllib() did not work in Python 3.
- * The functions strip_tags() and strip_elements() in lxml.etree did
- not remove all occurrences of a tag in all cases.
- * Crash in XSLT extension elements when the XSLT context node is not
- an element.
2010-03-01 15:53:07 +00:00
11 changed files with 1505 additions and 168 deletions

View File

@ -1,2 +0,0 @@
lxml-2.2.4.tar.gz
lxml-2.2.4.tar.gz.asc

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

60
.gitignore vendored Normal file
View File

@ -0,0 +1,60 @@
lxml-2.2.7.tar.gz
lxml-2.2.7.tar.gz.asc
/lxml-2.2.8.tar.gz
/lxml-2.2.8.tar.gz.asc
/lxml-2.3.tar.gz
/lxml-2.3.tar.gz.asc
/lxml-2.3.1.tar.gz
/lxml-2.3.1.tar.gz.asc
/lxml-2.3.2.tar.gz
/lxml-2.3.2.tar.gz.asc
/lxml-2.3.3.tar.gz
/lxml-2.3.3.tar.gz.asc
/lxml-2.3.5.tar.gz
/lxml-2.3.5.tar.gz.asc
/lxml-3.0.tar.gz
/lxml-3.0.tar.gz.asc
/lxml-3.0.tgz
/lxml-3.0.tgz.asc
/lxml-3.0.1.tgz
/lxml-3.0.1.tgz.asc
/lxml-3.1.0.tgz
/lxml-3.1.0.tgz.asc
/lxml-3.2.0.tgz
/lxml-3.2.0.tgz.asc
/lxml-3.2.1.tgz
/lxml-3.2.1.tgz.asc
/lxml-3.2.3.tgz
/lxml-3.2.3.tgz.asc
/lxml-3.2.4.tgz
/lxml-3.2.4.tgz.asc
/lxml-3.3.0.tgz
/lxml-3.3.0.tgz.asc
/lxml-3.3.2.tgz
/lxml-3.3.2.tgz.asc
/lxml-3.3.3.tgz
/lxml-3.3.3.tgz.asc
/lxml-3.3.5.tgz
/lxml-3.3.5.tgz.asc
/lxml-3.3.6.tgz
/lxml-3.3.6.tgz.asc
/lxml-3.4.4.tgz
/lxml-3.4.4.tgz.asc
/lxml-3.6.4.tar.gz
/lxml-3.7.0.tar.gz
/lxml-3.7.1.tgz
/lxml-3.7.2.tgz
/lxml-3.8.0.tgz
/lxml-4.0.0.tgz
/lxml-4.1.1.tgz
/lxml-4.2.1.tgz
/lxml-4.2.3.tgz
/lxml-4.2.4.tgz
/lxml-4.2.5.tgz
/lxml-4.4.0.tgz
/lxml-4.4.1.tgz
/lxml-4.5.1.tgz
/lxml-4.6.2.tar.gz
/lxml-4.6.3.tar.gz
/lxml-4.7.1.tar.gz
/lxml-4.9.1.tar.gz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: python-lxml
# $Id$
NAME := python-lxml
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

1
ci.fmf Normal file
View File

@ -0,0 +1 @@
resultsdb-testcase: separate

53
fix-namespace-count.patch Normal file
View File

@ -0,0 +1,53 @@
From c742576c105f40fc8b754fcae56fee4aa35840a3 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan_ml@behnel.de>
Date: Tue, 19 Jul 2022 08:25:20 +0200
Subject: [PATCH] Work around libxml2 bug in affected versions that failed to
reset the namespace count in the parser context.
See https://gitlab.gnome.org/GNOME/libxml2/-/issues/378
---
src/lxml/includes/xmlparser.pxd | 1 +
src/lxml/parser.pxi | 3 +++
src/lxml/tests/test_etree.py | 3 +--
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/lxml/includes/xmlparser.pxd b/src/lxml/includes/xmlparser.pxd
index a196e34bd..45acfc846 100644
--- a/src/lxml/includes/xmlparser.pxd
+++ b/src/lxml/includes/xmlparser.pxd
@@ -144,6 +144,7 @@ cdef extern from "libxml/parser.h":
void* userData
int* spaceTab
int spaceMax
+ int nsNr
bint html
bint progressive
int inSubset
diff --git a/src/lxml/parser.pxi b/src/lxml/parser.pxi
index f5baf29b9..f0c8c6b64 100644
--- a/src/lxml/parser.pxi
+++ b/src/lxml/parser.pxi
@@ -569,6 +569,9 @@ cdef class _ParserContext(_ResolverContext):
self._c_ctxt.disableSAX = 0 # work around bug in libxml2
else:
xmlparser.xmlClearParserCtxt(self._c_ctxt)
+ # work around bug in libxml2 [2.9.10 .. 2.9.14]:
+ # https://gitlab.gnome.org/GNOME/libxml2/-/issues/378
+ self._c_ctxt.nsNr = 0
cdef int prepare(self, bint set_document_loader=True) except -1:
cdef int result
diff --git a/src/lxml/tests/test_etree.py b/src/lxml/tests/test_etree.py
index 8bf82c084..0339796d6 100644
--- a/src/lxml/tests/test_etree.py
+++ b/src/lxml/tests/test_etree.py
@@ -1491,8 +1491,7 @@ def test_walk_after_parse_failure(self):
# This would be the expected result, because there was no namespace
pass
else:
- # This is a bug in libxml2
- assert not ns, repr(ns)
+ assert False, "Found unexpected namespace '%s'" % ns
def test_itertext_comment_pi(self):
# https://bugs.launchpad.net/lxml/+bug/1844674

8
gating.yaml Normal file
View File

@ -0,0 +1,8 @@
--- !Policy
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_testing
- bodhi_update_push_stable
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke.functional}

View File

@ -0,0 +1,7 @@
import lxml.etree as et
s = '<foo><bar baz="xyzzy">a<![CDATA[b]]>c</bar></foo>'
x = et.fromstring(s)
t = x.find('bar').text
print(t)
if t != 'abc':
raise Exception()

12
plans/smoke.fmf Normal file
View File

@ -0,0 +1,12 @@
summary: Basic smoke test
discover:
how: shell
tests:
- name: /smoke/import-python-module
test: |
python3 -c 'import importlib as il; print(il.import_module("lxml"))'
- name: /smoke/etree-fromstring
test: |
python3 plans/etree-fromstring.py
execute:
how: tmt

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1 @@
077841e74ee728e7746b65d8483274be lxml-2.2.4.tar.gz
146a5316476dac830fcbe7164d635df7 lxml-2.2.4.tar.gz.asc
SHA512 (lxml-4.9.1.tar.gz) = d7ec55c7db2c63a716ca5f4d833706d90fc76c944885e010fcdb96786bcfe796994e438450cf4e8e6e75d702e21fb16971f28f854d7a1f76c34e4ae315414d84