From nobody Wed Aug 28 11:21:56 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wv2786V0Dz5T48Y; Wed, 28 Aug 2024 11:21:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wv2785yjTz436n; Wed, 28 Aug 2024 11:21:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724844116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=92ppC2+jfyv656duSSYi3v6BWO0GZBc9xSHfw7F3MJA=; b=R1XXV/If6fo2oMSyCQoeBG+a4y70qWLSBzABg1y03SwKZ7GHq2jTsYPRXHK5TvTV+v/g0f ljbEZG981weS0FmRYkRiVY1stAgrgmhx6VPnWhW1JKej/uQNvMTOOOdCXhUepYtpTPxQjY Oj2ryimHlD7GHXZkgB5Z8ofTdnth6BEkdo2K/LM09vaidZtRORdIJXJh4b5rq8LCKEGVce yMGMKItOVd3JnYta8IOR9UJkGvr9s/OOqd8hY5TrVaHMsTNLUTjj4ebXFTsElO5zSfmWpQ bRRRXSLTaZ4f1pCh1ajAjHCYlVKkGirooph2yms1MlSAXfdaWGojzjccmwijew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724844116; a=rsa-sha256; cv=none; b=V3BnUCLlgqC1nnul5h7hVgM8O58Ku/HS41/hntXtIvVsTkldYlqW9zOsc6nLlNh84dDNA8 Dp7odgHC5ED10IzarmRyMia3+Vz5a6Isgwtmcp/PtsHGqOlV/F3FtaU+SP6exONLITkU4+ DAD18vfjOrM0WwXwATDdL7LgVr/YPMJ3pJzwGqLVzkTL14mq/4V5j0tgFHaH03VNyJtlJU okrCXwe4gF8N8WuQkfwxR3LQhe6Nu6KIUu79j7eedMCy57iBXMr76gdnwtyI8iTnYxigGx 8gO3YJVHzhSgvsT1z7dSPMSsHg1T9FitESDX2GyZN21QOK6M5iRPpqtPdLbIYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724844116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=92ppC2+jfyv656duSSYi3v6BWO0GZBc9xSHfw7F3MJA=; b=klwVkCicIy6k7nQwleNRJsoOqXhj3USz98tnJl6Ok4G3r7su9D2JmC3RgOGbLWRIiwI6nK iX2yulkXYKLmfOS2SLj1V43G7Z4jKvu0aBWefG2O93A3upTT811eeIAGTAY56EkWAgisdf q2JE17pexq1D+4x1QCyWPxNbRX6iubQUZ+0/PjcGeoiEHf/7QzXElb3w0j87dHqrsj2sZL mhIFY7OPvlG3Ep2L7kfqR1R3eDcj3gdb6ucO4NR9PtLaNaq4w5ELAqvJNGWPvL5xWU3+f1 p/CdH7J56Y2T/0sGui6MX/+GD3vcishYTPGemhCvcTvcQP9Td3Ajgm1Djkp3UA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wv2785ZMqzXGZ; Wed, 28 Aug 2024 11:21:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47SBLuQA058079; Wed, 28 Aug 2024 11:21:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47SBLurc058066; Wed, 28 Aug 2024 11:21:56 GMT (envelope-from git) Date: Wed, 28 Aug 2024 11:21:56 GMT Message-Id: <202408281121.47SBLurc058066@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Max Brazhnikov Subject: git: 6f42157f533d - main - math/py-PyWavelets: switch to pep517 and to PyPI List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: makc X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6f42157f533dc1b91cebac8d58a9a6240856d70e Auto-Submitted: auto-generated The branch main has been updated by makc: URL: https://cgit.FreeBSD.org/ports/commit/?id=6f42157f533dc1b91cebac8d58a9a6240856d70e commit 6f42157f533dc1b91cebac8d58a9a6240856d70e Author: Max Brazhnikov AuthorDate: 2024-08-28 11:20:09 +0000 Commit: Max Brazhnikov CommitDate: 2024-08-28 11:20:09 +0000 math/py-PyWavelets: switch to pep517 and to PyPI Switch to pep517 and to PyPI. --- math/py-PyWavelets/Makefile | 17 +++++------ math/py-PyWavelets/distinfo | 6 ++-- math/py-PyWavelets/files/patch-pyproject.toml | 43 +++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 12 deletions(-) diff --git a/math/py-PyWavelets/Makefile b/math/py-PyWavelets/Makefile index 6b5bf6f3e52d..bcd76711e774 100644 --- a/math/py-PyWavelets/Makefile +++ b/math/py-PyWavelets/Makefile @@ -1,8 +1,8 @@ PORTNAME= PyWavelets PORTVERSION= 1.4.1 -PORTREVISION= 1 -DISTVERSIONPREFIX= v +PORTREVISION= 2 CATEGORIES= math python +MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= makc@FreeBSD.org @@ -12,16 +12,15 @@ WWW= https://github.com/PyWavelets/pywt LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYNUMPY} +BUILD_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYNUMPY} -USE_GITHUB= yes -GH_PROJECT= pywt - USES= python -USE_PYTHON= autoplist distutils cython cython_run +USE_PYTHON= autoplist cython pep517 -PYDISTUTILS_BUILD_TARGET= build build_ext -PYDISTUTILS_BUILDARGS+= saveopts +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pywt/_extensions/*.so .include diff --git a/math/py-PyWavelets/distinfo b/math/py-PyWavelets/distinfo index bc4c6b697709..2ad92327aea6 100644 --- a/math/py-PyWavelets/distinfo +++ b/math/py-PyWavelets/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1667936687 -SHA256 (PyWavelets-pywt-v1.4.1_GH0.tar.gz) = b1d0edca28998d35ec1bbc31f009b334a98b475f67b1c84f7521eb689a8607f8 -SIZE (PyWavelets-pywt-v1.4.1_GH0.tar.gz) = 3941439 +TIMESTAMP = 1724843132 +SHA256 (PyWavelets-1.4.1.tar.gz) = 6437af3ddf083118c26d8f97ab43b0724b956c9f958e9ea788659f6a2834ba93 +SIZE (PyWavelets-1.4.1.tar.gz) = 4589677 diff --git a/math/py-PyWavelets/files/patch-pyproject.toml b/math/py-PyWavelets/files/patch-pyproject.toml new file mode 100644 index 000000000000..a4df3902ae8e --- /dev/null +++ b/math/py-PyWavelets/files/patch-pyproject.toml @@ -0,0 +1,43 @@ +--- pyproject.toml.orig 2022-09-16 08:55:28 UTC ++++ pyproject.toml +@@ -9,39 +9,5 @@ requires = [ + "wheel", + "setuptools<65", + "Cython>=0.29.24,<3.0", +- +- # NumPy dependencies - to update these, sync from +- # https://github.com/scipy/oldest-supported-numpy/, and then +- # update minimum version to match our install_requires min version +- # ---------------------------------------------------------------- +- +- # numpy 1.19 was the first minor release to provide aarch64 wheels, but +- # wheels require fixes contained in numpy 1.19.2 +- "numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'", +- # aarch64 for py39 is covered by default requirement below +- +- # arm64 on Darwin supports Python 3.8 and above requires numpy>=1.20.0 +- "numpy==1.20.0; python_version=='3.8' and platform_machine=='arm64' and platform_system=='Darwin'", +- "numpy==1.20.0; python_version=='3.9' and platform_machine=='arm64' and platform_system=='Darwin'", +- +- # On Windows we need to avoid 1.21.6, 1.22.0 and 1.22.1 because they were +- # built with vc142. 1.22.3 is the first version that has 32-bit Windows +- # wheels *and* was built with vc141. So use that: +- "numpy==1.22.3; python_version=='3.10' and platform_system=='Windows' and platform_python_implementation != 'PyPy'", +- +- # default numpy requirements +- "numpy==1.17.3; python_version=='3.8' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64' and platform_python_implementation != 'PyPy'", +- "numpy==1.19.3; python_version=='3.9' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_python_implementation != 'PyPy'", +- # Note that 1.21.3 was the first version with a complete set of 3.10 wheels, +- # however macOS was broken and it's safe C API/ABI-wise to build against 1.21.6 +- # (see oldest-supported-numpy issues gh-28 and gh-45) +- "numpy==1.21.6; python_version=='3.10' and (platform_system!='Windows' and platform_machine!='loongarch64') and platform_python_implementation != 'PyPy'", +- "numpy==1.23.3; python_version=='3.11' and platform_python_implementation != 'PyPy'", +- +- # For Python versions which aren't yet officially supported, +- # we specify an unpinned NumPy which allows source distributions +- # to be used and allows wheels to be used as soon as they +- # become available. +- "numpy; python_version>='3.12'", +- "numpy; python_version>='3.8' and platform_python_implementation=='PyPy'", ++ "numpy", + ]