Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 2024 08:44:10 GMT
From:      Nicola Vitale <nivit@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6890b6b8c524 - main - devel/py-gptscript: Update to 0.7.1
Message-ID:  <202406170844.45H8iAuc012601@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6890b6b8c524fe7d602166a4da96e38adebda0a2

commit 6890b6b8c524fe7d602166a4da96e38adebda0a2
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2024-06-17 08:39:09 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2024-06-17 08:43:08 +0000

    devel/py-gptscript: Update to 0.7.1
    
    - Add a post-patch target to fix an error when generating temporary
      packing list:
    
    ===>   Generating temporary packing list
    Traceback (most recent call last):
      File "<frozen runpy>", line 198, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      File "/usr/local/lib/python3.11/site-packages/installer/__main__.py", line 98, in <module>
        _main(sys.argv[1:], "python -m installer")
      File "/usr/local/lib/python3.11/site-packages/installer/__main__.py", line 86, in _main
        with WheelFile.open(args.wheel) as source:
      File "/usr/local/lib/python3.11/contextlib.py", line 137, in __enter__
        return next(self.gen)
               ^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.11/site-packages/installer/sources.py", line 162, in open
        with zipfile.ZipFile(path) as f:
             ^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.11/zipfile.py", line 1294, in __init__
        self.fp = io.open(file, filemode)
                  ^^^^^^^^^^^^^^^^^^^^^^^
    FileNotFoundError: [Errno 2] No such file or directory: /wrkdirs/usr/ports/devel/py-gptscript/work-py311/py-gptscript-0.7.1/dist/gptscript-0.7.1*.whl
    *** Error code 1
    
    This is due to a wrong version number in pyproject.toml file.
---
 devel/py-gptscript/Makefile | 7 ++++++-
 devel/py-gptscript/distinfo | 6 +++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/devel/py-gptscript/Makefile b/devel/py-gptscript/Makefile
index b3701863109d..d6a14317b35c 100644
--- a/devel/py-gptscript/Makefile
+++ b/devel/py-gptscript/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gptscript
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.5.0
+DISTVERSION=	0.7.1
 CATEGORIES=	devel python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -29,4 +29,9 @@ GH_ACCOUNT=	gptscript-ai
 GH_PROJECT=	py-gptscript
 USE_PYTHON=	autoplist pep517
 
+post-patch:
+	@${REINPLACE_CMD} \
+		-e 's/^\(version = "\)0.5.0\("\)/\1${PORTVERSION}\2/1' \
+		${WRKSRC}/pyproject.toml
+
 .include <bsd.port.mk>
diff --git a/devel/py-gptscript/distinfo b/devel/py-gptscript/distinfo
index cc4515fd59c8..94e2834dcca6 100644
--- a/devel/py-gptscript/distinfo
+++ b/devel/py-gptscript/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1716977147
-SHA256 (gptscript-ai-py-gptscript-v0.5.0_GH0.tar.gz) = 67b56a72a65ae1bc70619a0bc6c775ae9cdd2227f1774815c8ecdd41633c3eba
-SIZE (gptscript-ai-py-gptscript-v0.5.0_GH0.tar.gz) = 12808
+TIMESTAMP = 1718182803
+SHA256 (gptscript-ai-py-gptscript-v0.7.1_GH0.tar.gz) = 08efaee134ff476eb6a8049b7486693e6bdd18505e6a02073bea1901b4cb0ac1
+SIZE (gptscript-ai-py-gptscript-v0.7.1_GH0.tar.gz) = 15123



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406170844.45H8iAuc012601>