Github messages for voidlinux
 help / color / mirror / Atom feed
From: ahesford <ahesford@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] python3-shapely: update to 2.0.1.
Date: Sat, 04 Feb 2023 02:07:41 +0100	[thread overview]
Message-ID: <20230204010741.yjWZgPnXVSbb91W0eJ9MpWBmnG4Beu86uaHOLzhXwiI@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41984@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 626 bytes --]

There is an updated pull request by ahesford against master on the void-packages repository

https://github.com/ahesford/void-packages python3-shapely-2.0.1
https://github.com/void-linux/void-packages/pull/41984

python3-shapely: update to 2.0.1.
#### Testing the changes
- I tested the changes in this PR: **pending**

@karl-nilsson This update embodies a major refactor of the `shapely` package, but the API used by `python3-trimesh` and `Uranium` does not seem to have changed. However, I can't meaningfully test those packages.

A patch file from https://github.com/void-linux/void-packages/pull/41984.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-shapely-2.0.1-41984.patch --]
[-- Type: text/x-diff, Size: 2030 bytes --]

From 461c822f88d9a0a1591eb219a2e66b6e60e8ea97 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Mon, 30 Jan 2023 22:55:37 -0500
Subject: [PATCH] python3-shapely: update to 2.0.1.

---
 srcpkgs/python3-shapely/template | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/python3-shapely/template b/srcpkgs/python3-shapely/template
index d9dabb1e066f..02447337f9ae 100644
--- a/srcpkgs/python3-shapely/template
+++ b/srcpkgs/python3-shapely/template
@@ -1,31 +1,36 @@
 # Template file for 'python3-shapely'
 pkgname=python3-shapely
-version=1.8.5.post1
+version=2.0.1
 revision=1
 build_style=python3-module
 build_helper=numpy
-make_check_target=tests
 hostmakedepends="python3-setuptools python3-Cython geos"
 makedepends="python3-devel python3-numpy geos-devel"
 depends="python3"
-checkdepends="python3-pytest"
+checkdepends="python3-pytest-xdist"
 short_desc="Library for manipulation and analysis of geometric objects for Python3"
 maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="BSD-3-Clause"
 homepage="https://github.com/shapely/shapely"
 distfiles="https://github.com/shapely/shapely/archive/${version}.tar.gz"
-checksum=51badb76fa13ce1d4d6e5b2cbfef2b6af0ddae56a4449b84c3f3e6f404c6b43c
+checksum=6250e79ca299222a239ce44df613d228f1216c5cc31351217bf377b03d7be4e0
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then
-		sed "
-			/^prefix=/s,=.*,=$XBPS_CROSS_BASE/usr,
-			s,echo [\$]{prefix}$,echo /usr,
-		" $XBPS_CROSS_BASE/usr/bin/geos-config >$XBPS_WRAPPERDIR/geos-config
-		chmod +x $XBPS_WRAPPERDIR/geos-config
+		local _wrapper="${XBPS_WRAPPERDIR}/geos-config"
+
+		sed -e 's,echo [$]{prefix}$,echo /usr,' \
+			-e "/^prefix=/s,=.*,=\"${XBPS_CROSS_BASE}/usr\"," \
+			"${XBPS_CROSS_BASE}/usr/bin/geos-config" > "${_wrapper}"
+		chmod +x "${_wrapper}"
 	fi
 }
 
+do_check() {
+	cd build/lib*
+	PYTHONPATH="${PWD}" python3 -m pytest -n "${XBPS_MAKEJOBS}" shapely/tests
+}
+
 post_install() {
 	vlicense LICENSE.txt LICENSE
 }

  parent reply	other threads:[~2023-02-04  1:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-31  3:59 [PR PATCH] " ahesford
2023-02-04  0:56 ` [PR PATCH] [Updated] " ahesford
2023-02-04  1:07 ` ahesford [this message]
2023-02-05  3:02 ` [PR PATCH] [Merged]: " ahesford

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=20230204010741.yjWZgPnXVSbb91W0eJ9MpWBmnG4Beu86uaHOLzhXwiI@z \
    --to=ahesford@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).