* [ISSUE] [xbps-src] python package `do_check()` always fails
@ 2023-10-22 8:33 Luciogi
2023-10-22 10:03 ` Luciogi
2023-10-22 10:03 ` [ISSUE] [CLOSED] " Luciogi
0 siblings, 2 replies; 3+ messages in thread
From: Luciogi @ 2023-10-22 8:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2307 bytes --]
New issue by Luciogi on void-packages repository
https://github.com/void-linux/void-packages/issues/46824
Description:
Hi, I am trying to create package for (https://github.com/meerk40t/svgelements)
running `./xbps-src check python3-svgelements` test fails.
Running test within **masterdir/builddir/python3-svgelements-1.9.6**, using `pytest` or `python3 -m setup test` passes all test
I tried on fedora 39 container, to verify , also passes test expectly
```bash
# Template file for 'python3-svgelements'
pkgname=python3-svgelements
version=1.9.6
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends=""
checkdepends="python3-wheel python3-numpy python3-scipy"
short_desc="SVG Parsing for Elements, Paths, and other SVG Objects."
maintainer="Luciogi <lucigithubcommit@skiff.com>"
license="MIT"
homepage="https://github.com/meerk40t/svgelements"
distfiles="${PYPI_SITE}/s/svgelements/svgelements-${version}.tar.gz"
checksum=7c02ad6404cd3d1771fd50e40fbfc0550b0893933466f86a6eb815f3ba3f37f7
```
for python3.12 it need this patch
```
diff --git a/test/test_cubic_bezier.py b/test/test_cubic_bezier.py
index a7283e5..50148c2 100644
--- a/test/test_cubic_bezier.py
+++ b/test/test_cubic_bezier.py
@@ -79,4 +79,4 @@ class TestElementCubicBezierPoint(unittest.TestCase):
p = Path(transform=Matrix(682.657124793113, 0.000000000003, -0.000000000003, 682.657124793113, 257913.248909660178, -507946.354527872754))
p += CubicBezier(start=Point(-117.139521365,1480.99923469), control1=Point(-41.342266634,1505.62725567), control2=Point(40.3422666342,1505.62725567), end=Point(116.139521365,1480.99923469))
bounds = p.bbox()
- self.assertNotAlmostEquals(bounds[1], bounds[3], delta=100)
+ self.assertNotAlmostEqual(bounds[1], bounds[3], delta=100)
diff --git a/test/test_write.py b/test/test_write.py
index 85e5bb5..33c94a6 100644
--- a/test/test_write.py
+++ b/test/test_write.py
@@ -24,7 +24,7 @@ class TestElementWrite(unittest.TestCase):
def test_write_group(self):
g = Group()
- self.assertEquals(g.string_xml(), "<g />")
+ self.assertEqual(g.string_xml(), "<g />")
def test_write_rect(self):
r = Rect("1in", "1in", "3in", "3in", rx="5%")
```
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [xbps-src] python package `do_check()` always fails
2023-10-22 8:33 [ISSUE] [xbps-src] python package `do_check()` always fails Luciogi
@ 2023-10-22 10:03 ` Luciogi
2023-10-22 10:03 ` [ISSUE] [CLOSED] " Luciogi
1 sibling, 0 replies; 3+ messages in thread
From: Luciogi @ 2023-10-22 10:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 176 bytes --]
New comment by Luciogi on void-packages repository
https://github.com/void-linux/void-packages/issues/46824#issuecomment-1774051074
Comment:
ops `python3-Pillow` was missing
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ISSUE] [CLOSED] [xbps-src] python package `do_check()` always fails
2023-10-22 8:33 [ISSUE] [xbps-src] python package `do_check()` always fails Luciogi
2023-10-22 10:03 ` Luciogi
@ 2023-10-22 10:03 ` Luciogi
1 sibling, 0 replies; 3+ messages in thread
From: Luciogi @ 2023-10-22 10:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2310 bytes --]
Closed issue by Luciogi on void-packages repository
https://github.com/void-linux/void-packages/issues/46824
Description:
Hi, I am trying to create package for (https://github.com/meerk40t/svgelements)
running `./xbps-src check python3-svgelements` test fails.
Running test within **masterdir/builddir/python3-svgelements-1.9.6**, using `pytest` or `python3 -m setup test` passes all test
I tried on fedora 39 container, to verify , also passes test expectly
```bash
# Template file for 'python3-svgelements'
pkgname=python3-svgelements
version=1.9.6
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends=""
checkdepends="python3-wheel python3-numpy python3-scipy"
short_desc="SVG Parsing for Elements, Paths, and other SVG Objects."
maintainer="Luciogi <lucigithubcommit@skiff.com>"
license="MIT"
homepage="https://github.com/meerk40t/svgelements"
distfiles="${PYPI_SITE}/s/svgelements/svgelements-${version}.tar.gz"
checksum=7c02ad6404cd3d1771fd50e40fbfc0550b0893933466f86a6eb815f3ba3f37f7
```
for python3.12 it need this patch
```
diff --git a/test/test_cubic_bezier.py b/test/test_cubic_bezier.py
index a7283e5..50148c2 100644
--- a/test/test_cubic_bezier.py
+++ b/test/test_cubic_bezier.py
@@ -79,4 +79,4 @@ class TestElementCubicBezierPoint(unittest.TestCase):
p = Path(transform=Matrix(682.657124793113, 0.000000000003, -0.000000000003, 682.657124793113, 257913.248909660178, -507946.354527872754))
p += CubicBezier(start=Point(-117.139521365,1480.99923469), control1=Point(-41.342266634,1505.62725567), control2=Point(40.3422666342,1505.62725567), end=Point(116.139521365,1480.99923469))
bounds = p.bbox()
- self.assertNotAlmostEquals(bounds[1], bounds[3], delta=100)
+ self.assertNotAlmostEqual(bounds[1], bounds[3], delta=100)
diff --git a/test/test_write.py b/test/test_write.py
index 85e5bb5..33c94a6 100644
--- a/test/test_write.py
+++ b/test/test_write.py
@@ -24,7 +24,7 @@ class TestElementWrite(unittest.TestCase):
def test_write_group(self):
g = Group()
- self.assertEquals(g.string_xml(), "<g />")
+ self.assertEqual(g.string_xml(), "<g />")
def test_write_rect(self):
r = Rect("1in", "1in", "3in", "3in", rx="5%")
```
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-22 10:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-22 8:33 [ISSUE] [xbps-src] python package `do_check()` always fails Luciogi
2023-10-22 10:03 ` Luciogi
2023-10-22 10:03 ` [ISSUE] [CLOSED] " Luciogi
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).