From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyproj/, dev-python/pyproj/files/
Date: Tue, 25 Oct 2022 20:28:47 +0000 (UTC) [thread overview]
Message-ID: <1666728731.22d015b931ec7580286f6f7bdf0e4beefaa29a48.sam@gentoo> (raw)
commit: 22d015b931ec7580286f6f7bdf0e4beefaa29a48
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 25 20:11:44 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 25 20:12:11 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22d015b9
dev-python/pyproj: backport test fix for proj 9.1
Closes: https://bugs.gentoo.org/876562
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../pyproj/files/pyproj-3.4.0-proj-9.1.patch | 54 ++++++++++++++++++++++
dev-python/pyproj/pyproj-3.4.0.ebuild | 4 ++
2 files changed, 58 insertions(+)
diff --git a/dev-python/pyproj/files/pyproj-3.4.0-proj-9.1.patch b/dev-python/pyproj/files/pyproj-3.4.0-proj-9.1.patch
new file mode 100644
index 000000000000..a2be9f58850b
--- /dev/null
+++ b/dev-python/pyproj/files/pyproj-3.4.0-proj-9.1.patch
@@ -0,0 +1,54 @@
+https://github.com/pyproj4/pyproj/commit/831209477286f55b6c3ac777e1df3e947cfb12be
+https://github.com/pyproj4/pyproj/commit/2c0abe3d8d2c1632751f093baf421b93f65783a8
+
+From 831209477286f55b6c3ac777e1df3e947cfb12be Mon Sep 17 00:00:00 2001
+From: "Alan D. Snow" <alansnow21@gmail.com>
+Date: Sat, 17 Sep 2022 11:23:10 -0500
+Subject: [PATCH] TST: update test_get_transform_grid_list__contains expectd
+ output (#1147)
+
+--- a/test/test_sync.py
++++ b/test/test_sync.py
+@@ -82,7 +82,7 @@ def test_get_transform_grid_list__contains():
+ source_ids = set()
+ for grid in grids:
+ source_ids.add(grid["properties"]["source_id"])
+- assert sorted(source_ids) == ["no_kv", "nz_linz"]
++ assert sorted(source_ids) == ["nz_linz"]
+
+
+ @pytest.mark.network
+
+From 2c0abe3d8d2c1632751f093baf421b93f65783a8 Mon Sep 17 00:00:00 2001
+From: "Alan D. Snow" <alansnow21@gmail.com>
+Date: Sat, 17 Sep 2022 12:06:32 -0500
+Subject: [PATCH] TST: adjust test_transformer_group__get_transform_crs for
+ nl_nsgi_nlgeo2018 and PROJ 9.1 (#1148)
+
+--- a/test/test_transformer.py
++++ b/test/test_transformer.py
+@@ -695,12 +695,19 @@ def get_transformer_group():
+ @pytest.mark.grid
+ def test_transformer_group__get_transform_crs():
+ tg = TransformerGroup("epsg:4258", "epsg:7415")
+- if not grids_available("nl_nsgi_rdtrans2018.tif"):
+- assert len(tg.transformers) == 1
+- elif PROJ_GTE_91:
++ if grids_available(
++ "nl_nsgi_nlgeo2018.tif", "nl_nsgi_rdtrans2018.tif", check_all=True
++ ):
++ if PROJ_GTE_91:
++ assert len(tg.transformers) == 2
++ else:
++ assert len(tg.transformers) == 6
++ elif not PROJ_GTE_91 and grids_available("nl_nsgi_rdtrans2018.tif"):
+ assert len(tg.transformers) == 2
++ elif not PROJ_GTE_91 and grids_available("nl_nsgi_nlgeo2018.tif"):
++ assert len(tg.transformers) == 4
+ else:
+- assert len(tg.transformers) == 6
++ assert len(tg.transformers) == 1
+
+
+ def test_transformer__area_of_interest():
+
diff --git a/dev-python/pyproj/pyproj-3.4.0.ebuild b/dev-python/pyproj/pyproj-3.4.0.ebuild
index aa7eb95785a6..70379b19b4dd 100644
--- a/dev-python/pyproj/pyproj-3.4.0.ebuild
+++ b/dev-python/pyproj/pyproj-3.4.0.ebuild
@@ -39,6 +39,10 @@ BDEPEND="
)
"
+PATCHES=(
+ "${FILESDIR}"/${P}-proj-9.1.patch
+)
+
distutils_enable_sphinx docs \
dev-python/furo
distutils_enable_tests pytest
next reply other threads:[~2022-10-25 20:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-25 20:28 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-04-26 19:47 [gentoo-commits] repo/gentoo:master commit in: dev-python/pyproj/, dev-python/pyproj/files/ Michał Górny
2020-10-23 23:27 Andreas Sturmlechner
2019-12-08 18:47 Andreas Sturmlechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1666728731.22d015b931ec7580286f6f7bdf0e4beefaa29a48.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox