* [PR PATCH] python3-lxml: update to 5.3.0.
@ 2024-11-12 8:05 oreo639
2024-11-12 8:35 ` [PR PATCH] [Updated] " oreo639
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: oreo639 @ 2024-11-12 8:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1251 bytes --]
There is a new pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages python3-lxml
https://github.com/void-linux/void-packages/pull/53011
python3-lxml: update to 5.3.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/53011.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-lxml-53011.patch --]
[-- Type: text/x-diff, Size: 6683 bytes --]
From 15960d17a2077776757c1aa71a6cf11c95de4a72 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 23:58:16 -0800
Subject: [PATCH] python3-lxml: update to 5.3.0.
---
.../patches/cython3-fix-test.patch | 32 -------------------
.../python3-lxml/patches/cython3-legacy.patch | 12 -------
.../python3-lxml/patches/libxml-2.10.4.patch | 17 ----------
.../python3-lxml/patches/libxml-2.11.0.patch | 14 --------
.../patches/tests-fix-encoding-name.patch | 16 ----------
srcpkgs/python3-lxml/template | 6 ++--
6 files changed, 3 insertions(+), 94 deletions(-)
delete mode 100644 srcpkgs/python3-lxml/patches/cython3-fix-test.patch
delete mode 100644 srcpkgs/python3-lxml/patches/cython3-legacy.patch
delete mode 100644 srcpkgs/python3-lxml/patches/libxml-2.10.4.patch
delete mode 100644 srcpkgs/python3-lxml/patches/libxml-2.11.0.patch
delete mode 100644 srcpkgs/python3-lxml/patches/tests-fix-encoding-name.patch
diff --git a/srcpkgs/python3-lxml/patches/cython3-fix-test.patch b/srcpkgs/python3-lxml/patches/cython3-fix-test.patch
deleted file mode 100644
index 70348622048cbc..00000000000000
--- a/srcpkgs/python3-lxml/patches/cython3-fix-test.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-diff --git a/src/lxml/tests/test_errors.py b/src/lxml/tests/test_errors.py
-index c0aee744..4875f298 100644
---- a/src/lxml/tests/test_errors.py
-+++ b/src/lxml/tests/test_errors.py
-@@ -28,7 +28,6 @@ class ErrorTestCase(HelperTestCase):
- def test_element_cyclic_gc_none(self):
- # test if cyclic reference can crash etree
- Element = self.etree.Element
-- getrefcount = sys.getrefcount
-
- # must disable tracing as it could change the refcounts
- trace_func = sys.gettrace()
-@@ -36,16 +35,16 @@ class ErrorTestCase(HelperTestCase):
- sys.settrace(None)
- gc.collect()
-
-- count = getrefcount(None)
-+ count1 = gc.get_count()
-
- l = [Element('name'), Element('name')]
- l.append(l)
-
- del l
- gc.collect()
-- count = getrefcount(None) - count
-+ count2 = gc.get_count()
-
-- self.assertEqual(count, 0)
-+ self.assertEqual(count1, count2)
- finally:
- sys.settrace(trace_func)
-
diff --git a/srcpkgs/python3-lxml/patches/cython3-legacy.patch b/srcpkgs/python3-lxml/patches/cython3-legacy.patch
deleted file mode 100644
index 3a01c85705cb5c..00000000000000
--- a/srcpkgs/python3-lxml/patches/cython3-legacy.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/setupinfo.py b/setupinfo.py
-index 5feb13bf..ea1b391c 100644
---- a/setupinfo.py
-+++ b/setupinfo.py
-@@ -148,6 +148,7 @@ def ext_modules(static_include_dirs, static_library_dirs,
-
- cythonize_directives = {
- 'binding': True,
-+ 'legacy_implicit_noexcept': True,
- }
- if OPTION_WITH_COVERAGE:
- cythonize_directives['linetrace'] = True
diff --git a/srcpkgs/python3-lxml/patches/libxml-2.10.4.patch b/srcpkgs/python3-lxml/patches/libxml-2.10.4.patch
deleted file mode 100644
index 4682eddd6f5413..00000000000000
--- a/srcpkgs/python3-lxml/patches/libxml-2.10.4.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-From alpine: https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/main/py3-lxml
-
-the find above returns None with this version
---
-diff --git a/src/lxml/tests/test_etree.py b/src/lxml/tests/test_etree.py
-index 0339796..790c57a 100644
---- a/src/lxml/tests/test_etree.py
-+++ b/src/lxml/tests/test_etree.py
-@@ -3073,7 +3073,7 @@ class ETreeOnlyTestCase(HelperTestCase):
- if etree.LIBXML_VERSION < (2, 9, 11):
- self.assertEqual({'hha': None}, el.nsmap)
- else:
-- self.assertEqual({}, el.nsmap)
-+ self.assertEqual(None, el)
-
- def test_getchildren(self):
- Element = self.etree.Element
diff --git a/srcpkgs/python3-lxml/patches/libxml-2.11.0.patch b/srcpkgs/python3-lxml/patches/libxml-2.11.0.patch
deleted file mode 100644
index 6ed59d3b2fe2b5..00000000000000
--- a/srcpkgs/python3-lxml/patches/libxml-2.11.0.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-From alpine: https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/main/py3-lxml
-
-diff --git a/src/lxml/tests/test_io.py b/src/lxml/tests/test_io.py
-index cbdbcef..efbd3fd 100644
---- a/src/lxml/tests/test_io.py
-+++ b/src/lxml/tests/test_io.py
-@@ -312,6 +312,7 @@ class _IOTestCaseBase(HelperTestCase):
- self.assertEqual(5, len(boms))
- xml = uxml.encode("utf-16")
- self.assertTrue(xml[:2] in boms, repr(xml[:2]))
-+ return True
-
- f = tempfile.NamedTemporaryFile(delete=False)
- try:
diff --git a/srcpkgs/python3-lxml/patches/tests-fix-encoding-name.patch b/srcpkgs/python3-lxml/patches/tests-fix-encoding-name.patch
deleted file mode 100644
index 28f165c24f4602..00000000000000
--- a/srcpkgs/python3-lxml/patches/tests-fix-encoding-name.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-from alpine: https://gitlab.alpinelinux.org/alpine/aports/-/commit/369de77b6197a5d04beb551537533fc82141a516
-
-From: Patrycja Rosa <alpine@ptrcnull.me>
-Date: Thu, 10 Feb 2022 14:09:24 +0100
-Subject: test_incremental_xmlfile: fix encoding name
-
-diff --git a/src/lxml/tests/test_incremental_xmlfile.py b/src/lxml/tests/test_incremental_xmlfile.py
---- a/src/lxml/tests/test_incremental_xmlfile.py
-+++ b/src/lxml/tests/test_incremental_xmlfile.py
-@@ -173,4 +173,4 @@
-- with etree.xmlfile(self._file, encoding='utf16') as xf:
-+ with etree.xmlfile(self._file, encoding='utf-16') as xf:
- with xf.element('test'):
- xf.write('toast')
-- self.assertXml('<test>toast</test>', encoding='utf16')
-+ self.assertXml('<test>toast</test>', encoding='utf-16')
diff --git a/srcpkgs/python3-lxml/template b/srcpkgs/python3-lxml/template
index 920367f59438fb..f8a15068afca99 100644
--- a/srcpkgs/python3-lxml/template
+++ b/srcpkgs/python3-lxml/template
@@ -1,7 +1,7 @@
# Template file for 'python3-lxml'
pkgname=python3-lxml
-version=4.9.3
-revision=3
+version=5.3.0
+revision=1
build_style=python3-module
make_build_args="--with-cython"
hostmakedepends="python3-Cython python3-setuptools"
@@ -14,7 +14,7 @@ license="BSD-3-Clause, custom:ElementTree"
homepage="https://lxml.de/"
changelog="https://raw.githubusercontent.com/lxml/lxml/master/CHANGES.txt"
distfiles="https://github.com/lxml/lxml/archive/lxml-${version}.tar.gz"
-checksum=42b9ab83cb8739d817c7fff41c20f31aa61625bb6f6ab333873a5f3406b139ac
+checksum=eb22f7ceb319c29247cfa398435d00e6286d19a32b4870b67a8e9a38d72f2ebd
do_check() {
make test3
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Updated] python3-lxml: update to 5.3.0.
2024-11-12 8:05 [PR PATCH] python3-lxml: update to 5.3.0 oreo639
@ 2024-11-12 8:35 ` oreo639
2024-12-14 5:16 ` oreo639
2024-12-14 5:36 ` [PR PATCH] [Merged]: " oreo639
2 siblings, 0 replies; 4+ messages in thread
From: oreo639 @ 2024-11-12 8:35 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages python3-lxml
https://github.com/void-linux/void-packages/pull/53011
python3-lxml: update to 5.3.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/53011.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-lxml-53011.patch --]
[-- Type: text/x-diff, Size: 6721 bytes --]
From 561d408c0978ca5cfcf7f471cbc080dad0bb48d1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 23:58:16 -0800
Subject: [PATCH] python3-lxml: update to 5.3.0.
---
.../patches/cython3-fix-test.patch | 32 -------------------
.../python3-lxml/patches/cython3-legacy.patch | 12 -------
.../python3-lxml/patches/libxml-2.10.4.patch | 17 ----------
.../python3-lxml/patches/libxml-2.11.0.patch | 14 --------
.../patches/tests-fix-encoding-name.patch | 16 ----------
srcpkgs/python3-lxml/template | 8 ++---
6 files changed, 4 insertions(+), 95 deletions(-)
delete mode 100644 srcpkgs/python3-lxml/patches/cython3-fix-test.patch
delete mode 100644 srcpkgs/python3-lxml/patches/cython3-legacy.patch
delete mode 100644 srcpkgs/python3-lxml/patches/libxml-2.10.4.patch
delete mode 100644 srcpkgs/python3-lxml/patches/libxml-2.11.0.patch
delete mode 100644 srcpkgs/python3-lxml/patches/tests-fix-encoding-name.patch
diff --git a/srcpkgs/python3-lxml/patches/cython3-fix-test.patch b/srcpkgs/python3-lxml/patches/cython3-fix-test.patch
deleted file mode 100644
index 70348622048cbc..00000000000000
--- a/srcpkgs/python3-lxml/patches/cython3-fix-test.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-diff --git a/src/lxml/tests/test_errors.py b/src/lxml/tests/test_errors.py
-index c0aee744..4875f298 100644
---- a/src/lxml/tests/test_errors.py
-+++ b/src/lxml/tests/test_errors.py
-@@ -28,7 +28,6 @@ class ErrorTestCase(HelperTestCase):
- def test_element_cyclic_gc_none(self):
- # test if cyclic reference can crash etree
- Element = self.etree.Element
-- getrefcount = sys.getrefcount
-
- # must disable tracing as it could change the refcounts
- trace_func = sys.gettrace()
-@@ -36,16 +35,16 @@ class ErrorTestCase(HelperTestCase):
- sys.settrace(None)
- gc.collect()
-
-- count = getrefcount(None)
-+ count1 = gc.get_count()
-
- l = [Element('name'), Element('name')]
- l.append(l)
-
- del l
- gc.collect()
-- count = getrefcount(None) - count
-+ count2 = gc.get_count()
-
-- self.assertEqual(count, 0)
-+ self.assertEqual(count1, count2)
- finally:
- sys.settrace(trace_func)
-
diff --git a/srcpkgs/python3-lxml/patches/cython3-legacy.patch b/srcpkgs/python3-lxml/patches/cython3-legacy.patch
deleted file mode 100644
index 3a01c85705cb5c..00000000000000
--- a/srcpkgs/python3-lxml/patches/cython3-legacy.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/setupinfo.py b/setupinfo.py
-index 5feb13bf..ea1b391c 100644
---- a/setupinfo.py
-+++ b/setupinfo.py
-@@ -148,6 +148,7 @@ def ext_modules(static_include_dirs, static_library_dirs,
-
- cythonize_directives = {
- 'binding': True,
-+ 'legacy_implicit_noexcept': True,
- }
- if OPTION_WITH_COVERAGE:
- cythonize_directives['linetrace'] = True
diff --git a/srcpkgs/python3-lxml/patches/libxml-2.10.4.patch b/srcpkgs/python3-lxml/patches/libxml-2.10.4.patch
deleted file mode 100644
index 4682eddd6f5413..00000000000000
--- a/srcpkgs/python3-lxml/patches/libxml-2.10.4.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-From alpine: https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/main/py3-lxml
-
-the find above returns None with this version
---
-diff --git a/src/lxml/tests/test_etree.py b/src/lxml/tests/test_etree.py
-index 0339796..790c57a 100644
---- a/src/lxml/tests/test_etree.py
-+++ b/src/lxml/tests/test_etree.py
-@@ -3073,7 +3073,7 @@ class ETreeOnlyTestCase(HelperTestCase):
- if etree.LIBXML_VERSION < (2, 9, 11):
- self.assertEqual({'hha': None}, el.nsmap)
- else:
-- self.assertEqual({}, el.nsmap)
-+ self.assertEqual(None, el)
-
- def test_getchildren(self):
- Element = self.etree.Element
diff --git a/srcpkgs/python3-lxml/patches/libxml-2.11.0.patch b/srcpkgs/python3-lxml/patches/libxml-2.11.0.patch
deleted file mode 100644
index 6ed59d3b2fe2b5..00000000000000
--- a/srcpkgs/python3-lxml/patches/libxml-2.11.0.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-From alpine: https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/main/py3-lxml
-
-diff --git a/src/lxml/tests/test_io.py b/src/lxml/tests/test_io.py
-index cbdbcef..efbd3fd 100644
---- a/src/lxml/tests/test_io.py
-+++ b/src/lxml/tests/test_io.py
-@@ -312,6 +312,7 @@ class _IOTestCaseBase(HelperTestCase):
- self.assertEqual(5, len(boms))
- xml = uxml.encode("utf-16")
- self.assertTrue(xml[:2] in boms, repr(xml[:2]))
-+ return True
-
- f = tempfile.NamedTemporaryFile(delete=False)
- try:
diff --git a/srcpkgs/python3-lxml/patches/tests-fix-encoding-name.patch b/srcpkgs/python3-lxml/patches/tests-fix-encoding-name.patch
deleted file mode 100644
index 28f165c24f4602..00000000000000
--- a/srcpkgs/python3-lxml/patches/tests-fix-encoding-name.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-from alpine: https://gitlab.alpinelinux.org/alpine/aports/-/commit/369de77b6197a5d04beb551537533fc82141a516
-
-From: Patrycja Rosa <alpine@ptrcnull.me>
-Date: Thu, 10 Feb 2022 14:09:24 +0100
-Subject: test_incremental_xmlfile: fix encoding name
-
-diff --git a/src/lxml/tests/test_incremental_xmlfile.py b/src/lxml/tests/test_incremental_xmlfile.py
---- a/src/lxml/tests/test_incremental_xmlfile.py
-+++ b/src/lxml/tests/test_incremental_xmlfile.py
-@@ -173,4 +173,4 @@
-- with etree.xmlfile(self._file, encoding='utf16') as xf:
-+ with etree.xmlfile(self._file, encoding='utf-16') as xf:
- with xf.element('test'):
- xf.write('toast')
-- self.assertXml('<test>toast</test>', encoding='utf16')
-+ self.assertXml('<test>toast</test>', encoding='utf-16')
diff --git a/srcpkgs/python3-lxml/template b/srcpkgs/python3-lxml/template
index 920367f59438fb..ee9b3b0345dc46 100644
--- a/srcpkgs/python3-lxml/template
+++ b/srcpkgs/python3-lxml/template
@@ -1,7 +1,7 @@
# Template file for 'python3-lxml'
pkgname=python3-lxml
-version=4.9.3
-revision=3
+version=5.3.0
+revision=1
build_style=python3-module
make_build_args="--with-cython"
hostmakedepends="python3-Cython python3-setuptools"
@@ -14,10 +14,10 @@ license="BSD-3-Clause, custom:ElementTree"
homepage="https://lxml.de/"
changelog="https://raw.githubusercontent.com/lxml/lxml/master/CHANGES.txt"
distfiles="https://github.com/lxml/lxml/archive/lxml-${version}.tar.gz"
-checksum=42b9ab83cb8739d817c7fff41c20f31aa61625bb6f6ab333873a5f3406b139ac
+checksum=eb22f7ceb319c29247cfa398435d00e6286d19a32b4870b67a8e9a38d72f2ebd
do_check() {
- make test3
+ make test
}
post_install() {
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Updated] python3-lxml: update to 5.3.0.
2024-11-12 8:05 [PR PATCH] python3-lxml: update to 5.3.0 oreo639
2024-11-12 8:35 ` [PR PATCH] [Updated] " oreo639
@ 2024-12-14 5:16 ` oreo639
2024-12-14 5:36 ` [PR PATCH] [Merged]: " oreo639
2 siblings, 0 replies; 4+ messages in thread
From: oreo639 @ 2024-12-14 5:16 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages python3-lxml
https://github.com/void-linux/void-packages/pull/53011
python3-lxml: update to 5.3.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/53011.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-lxml-53011.patch --]
[-- Type: text/x-diff, Size: 7408 bytes --]
From b97df9216a044dae1dcc8ab6d542081438095969 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 23:58:16 -0800
Subject: [PATCH] python3-lxml: update to 5.3.0.
---
.../patches/cython3-fix-test.patch | 32 -------------------
.../python3-lxml/patches/cython3-legacy.patch | 12 -------
...me.patch => fix-encoding-tests-musl.patch} | 15 +++++----
.../python3-lxml/patches/libxml-2.10.4.patch | 17 ----------
.../python3-lxml/patches/libxml-2.11.0.patch | 14 --------
srcpkgs/python3-lxml/template | 8 ++---
6 files changed, 13 insertions(+), 85 deletions(-)
delete mode 100644 srcpkgs/python3-lxml/patches/cython3-fix-test.patch
delete mode 100644 srcpkgs/python3-lxml/patches/cython3-legacy.patch
rename srcpkgs/python3-lxml/patches/{tests-fix-encoding-name.patch => fix-encoding-tests-musl.patch} (54%)
delete mode 100644 srcpkgs/python3-lxml/patches/libxml-2.10.4.patch
delete mode 100644 srcpkgs/python3-lxml/patches/libxml-2.11.0.patch
diff --git a/srcpkgs/python3-lxml/patches/cython3-fix-test.patch b/srcpkgs/python3-lxml/patches/cython3-fix-test.patch
deleted file mode 100644
index 70348622048cbc..00000000000000
--- a/srcpkgs/python3-lxml/patches/cython3-fix-test.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-diff --git a/src/lxml/tests/test_errors.py b/src/lxml/tests/test_errors.py
-index c0aee744..4875f298 100644
---- a/src/lxml/tests/test_errors.py
-+++ b/src/lxml/tests/test_errors.py
-@@ -28,7 +28,6 @@ class ErrorTestCase(HelperTestCase):
- def test_element_cyclic_gc_none(self):
- # test if cyclic reference can crash etree
- Element = self.etree.Element
-- getrefcount = sys.getrefcount
-
- # must disable tracing as it could change the refcounts
- trace_func = sys.gettrace()
-@@ -36,16 +35,16 @@ class ErrorTestCase(HelperTestCase):
- sys.settrace(None)
- gc.collect()
-
-- count = getrefcount(None)
-+ count1 = gc.get_count()
-
- l = [Element('name'), Element('name')]
- l.append(l)
-
- del l
- gc.collect()
-- count = getrefcount(None) - count
-+ count2 = gc.get_count()
-
-- self.assertEqual(count, 0)
-+ self.assertEqual(count1, count2)
- finally:
- sys.settrace(trace_func)
-
diff --git a/srcpkgs/python3-lxml/patches/cython3-legacy.patch b/srcpkgs/python3-lxml/patches/cython3-legacy.patch
deleted file mode 100644
index 3a01c85705cb5c..00000000000000
--- a/srcpkgs/python3-lxml/patches/cython3-legacy.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/setupinfo.py b/setupinfo.py
-index 5feb13bf..ea1b391c 100644
---- a/setupinfo.py
-+++ b/setupinfo.py
-@@ -148,6 +148,7 @@ def ext_modules(static_include_dirs, static_library_dirs,
-
- cythonize_directives = {
- 'binding': True,
-+ 'legacy_implicit_noexcept': True,
- }
- if OPTION_WITH_COVERAGE:
- cythonize_directives['linetrace'] = True
diff --git a/srcpkgs/python3-lxml/patches/tests-fix-encoding-name.patch b/srcpkgs/python3-lxml/patches/fix-encoding-tests-musl.patch
similarity index 54%
rename from srcpkgs/python3-lxml/patches/tests-fix-encoding-name.patch
rename to srcpkgs/python3-lxml/patches/fix-encoding-tests-musl.patch
index 28f165c24f4602..e2d0e3b36bd572 100644
--- a/srcpkgs/python3-lxml/patches/tests-fix-encoding-name.patch
+++ b/srcpkgs/python3-lxml/patches/fix-encoding-tests-musl.patch
@@ -1,16 +1,19 @@
-from alpine: https://gitlab.alpinelinux.org/alpine/aports/-/commit/369de77b6197a5d04beb551537533fc82141a516
-
-From: Patrycja Rosa <alpine@ptrcnull.me>
-Date: Thu, 10 Feb 2022 14:09:24 +0100
-Subject: test_incremental_xmlfile: fix encoding name
+from alpine: https://gitlab.alpinelinux.org/alpine/aports/-/blob/3f64a63298ac78f5f2a50a52e3e3f01eef1b51ce/main/py3-lxml/tests-fix-encoding-name.patch
diff --git a/src/lxml/tests/test_incremental_xmlfile.py b/src/lxml/tests/test_incremental_xmlfile.py
+index 3162155..43b79d7 100644
--- a/src/lxml/tests/test_incremental_xmlfile.py
+++ b/src/lxml/tests/test_incremental_xmlfile.py
-@@ -173,4 +173,4 @@
+@@ -177,10 +177,10 @@ class _XmlFileTestCaseBase(HelperTestCase):
+ '<test>Comments: <!-- text -->\nEntities: &amp;</test>')
+
+ def test_encoding(self):
- with etree.xmlfile(self._file, encoding='utf16') as xf:
+ with etree.xmlfile(self._file, encoding='utf-16') as xf:
with xf.element('test'):
xf.write('toast')
- self.assertXml('<test>toast</test>', encoding='utf16')
+ self.assertXml('<test>toast</test>', encoding='utf-16')
+
+ def test_buffering(self):
+ with etree.xmlfile(self._file, buffered=False) as xf:
diff --git a/srcpkgs/python3-lxml/patches/libxml-2.10.4.patch b/srcpkgs/python3-lxml/patches/libxml-2.10.4.patch
deleted file mode 100644
index 4682eddd6f5413..00000000000000
--- a/srcpkgs/python3-lxml/patches/libxml-2.10.4.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-From alpine: https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/main/py3-lxml
-
-the find above returns None with this version
---
-diff --git a/src/lxml/tests/test_etree.py b/src/lxml/tests/test_etree.py
-index 0339796..790c57a 100644
---- a/src/lxml/tests/test_etree.py
-+++ b/src/lxml/tests/test_etree.py
-@@ -3073,7 +3073,7 @@ class ETreeOnlyTestCase(HelperTestCase):
- if etree.LIBXML_VERSION < (2, 9, 11):
- self.assertEqual({'hha': None}, el.nsmap)
- else:
-- self.assertEqual({}, el.nsmap)
-+ self.assertEqual(None, el)
-
- def test_getchildren(self):
- Element = self.etree.Element
diff --git a/srcpkgs/python3-lxml/patches/libxml-2.11.0.patch b/srcpkgs/python3-lxml/patches/libxml-2.11.0.patch
deleted file mode 100644
index 6ed59d3b2fe2b5..00000000000000
--- a/srcpkgs/python3-lxml/patches/libxml-2.11.0.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-From alpine: https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/main/py3-lxml
-
-diff --git a/src/lxml/tests/test_io.py b/src/lxml/tests/test_io.py
-index cbdbcef..efbd3fd 100644
---- a/src/lxml/tests/test_io.py
-+++ b/src/lxml/tests/test_io.py
-@@ -312,6 +312,7 @@ class _IOTestCaseBase(HelperTestCase):
- self.assertEqual(5, len(boms))
- xml = uxml.encode("utf-16")
- self.assertTrue(xml[:2] in boms, repr(xml[:2]))
-+ return True
-
- f = tempfile.NamedTemporaryFile(delete=False)
- try:
diff --git a/srcpkgs/python3-lxml/template b/srcpkgs/python3-lxml/template
index 920367f59438fb..ee9b3b0345dc46 100644
--- a/srcpkgs/python3-lxml/template
+++ b/srcpkgs/python3-lxml/template
@@ -1,7 +1,7 @@
# Template file for 'python3-lxml'
pkgname=python3-lxml
-version=4.9.3
-revision=3
+version=5.3.0
+revision=1
build_style=python3-module
make_build_args="--with-cython"
hostmakedepends="python3-Cython python3-setuptools"
@@ -14,10 +14,10 @@ license="BSD-3-Clause, custom:ElementTree"
homepage="https://lxml.de/"
changelog="https://raw.githubusercontent.com/lxml/lxml/master/CHANGES.txt"
distfiles="https://github.com/lxml/lxml/archive/lxml-${version}.tar.gz"
-checksum=42b9ab83cb8739d817c7fff41c20f31aa61625bb6f6ab333873a5f3406b139ac
+checksum=eb22f7ceb319c29247cfa398435d00e6286d19a32b4870b67a8e9a38d72f2ebd
do_check() {
- make test3
+ make test
}
post_install() {
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Merged]: python3-lxml: update to 5.3.0.
2024-11-12 8:05 [PR PATCH] python3-lxml: update to 5.3.0 oreo639
2024-11-12 8:35 ` [PR PATCH] [Updated] " oreo639
2024-12-14 5:16 ` oreo639
@ 2024-12-14 5:36 ` oreo639
2 siblings, 0 replies; 4+ messages in thread
From: oreo639 @ 2024-12-14 5:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]
There's a merged pull request on the void-packages repository
python3-lxml: update to 5.3.0.
https://github.com/void-linux/void-packages/pull/53011
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-14 5:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-12 8:05 [PR PATCH] python3-lxml: update to 5.3.0 oreo639
2024-11-12 8:35 ` [PR PATCH] [Updated] " oreo639
2024-12-14 5:16 ` oreo639
2024-12-14 5:36 ` [PR PATCH] [Merged]: " oreo639
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).