From nobody Mon Apr 03 09:18:49 2023 X-Original-To: dev-commits-ports-all@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 4Pqlgs5vZZz43vQc; Mon, 3 Apr 2023 09:18:49 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pqlgs52pGz3MZ7; Mon, 3 Apr 2023 09:18:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680513529; 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=13zUbEooEmSOuZw7fT/24xkkdXXpYC8v1w3uPSErWkc=; b=BL74n+0PtN2mLzim8ey/lnq6PlxMYtwEuxv/hgb5O/OYs8k/79u2/PGLhp2O6ukxrNb1el gFKkFE7+19Bd/fSoKcFFe7YsDcj+xs0EAlFLd049kVSi1Me6hWrZstMqAgrhlubcAv0zBb +3d9cyqYqgL6XpV+/zSp8+o3Dw7lAudHtNev0D4RKWWI5SP8WVUuEwi8vbZBtzRvtD3j4h wZIWcJCFzUnXwqy1jJRfSNZ+VUe3NQayLWLz9E0IyVRLcZi9MBSgc3qY11XEam+c850wvl /CkSeuqO0PmdlN/Dyo+tf/Ew7px8dFMU/FKjann05F0wT7BClWRBAW8u57gQYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680513529; 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=13zUbEooEmSOuZw7fT/24xkkdXXpYC8v1w3uPSErWkc=; b=WnxYs4mkzA48G+HXFIMzZMQWiiRZ2aHZ/CBLph9rmyvWdngkZ+t5qaD/D99kwDl5WGJojD Uigb2AB3px/6WcQbNLrfxAsuLFTRFj3fNoXkfCU026RVxiKpDQnYblfZaMH5VkkcacopU8 Vou+7ok/MX21DQBnXcebZRfm/JLqKw0pju0TDK23/JbCFh3PiOd0CYctQmIS6UaSNh8KfX xnu/VH+JrLCs13WFScXIprUAXYNO0qlRQX/YNgI9tko/4wGmji11nuVvahgopTy02z1mrK bYoLu9P2XyqLH9vkSD7SCw0ZxCUCnWbcfgSfzIUV5acySAq2akLxgXnxl50YnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680513529; a=rsa-sha256; cv=none; b=s4k6Bok3HpHRA5QgBta8AOCrvvZQLOZFp8h+m0HOqO6JJ9ClIkjjIOZAagohSnvD2cinDL DKZx2/kXz2Lyuevc3MZ/MM/tBYY5nzSu0M5mkRdBJ/VfH6wXCDAoFBy+AmTbWm+8pkOM5j 8FfEiYZutfrANDaqdFm+sSGTZWEqe61fIxoyW3NWTs3OIkg5xYRBh5eMrnJH9nkD61zXxq uDIU4zzslvEPfni3ks1bqmgAxauPel4mH3L/s7O+SXl6ycOk3BTxxe5FolKuqqjeZS+MY3 GMUnVbgGuolYmu6nWKyoE/bFd4UrVMIbQ2CPW21cDNbippF/UhY374uHmDZWDA== 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 4Pqlgs44grzscv; Mon, 3 Apr 2023 09:18:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3339InVM025377; Mon, 3 Apr 2023 09:18:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3339InHL025376; Mon, 3 Apr 2023 09:18:49 GMT (envelope-from git) Date: Mon, 3 Apr 2023 09:18:49 GMT Message-Id: <202304030918.3339InHL025376@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: 52b0843d3594 - main - misc/py-shell-gpt: switch to better way to avoid installation of test files List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 52b0843d3594f81fb2f755c25529ef33e75aa7e0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=52b0843d3594f81fb2f755c25529ef33e75aa7e0 commit 52b0843d3594f81fb2f755c25529ef33e75aa7e0 Author: John Hein AuthorDate: 2023-04-03 09:17:03 +0000 Commit: Hiroki Tagato CommitDate: 2023-04-03 09:18:33 +0000 misc/py-shell-gpt: switch to better way to avoid installation of test files PR: 270542 Reported by: John Hein --- misc/py-shell-gpt/Makefile | 8 +------- misc/py-shell-gpt/files/patch-setup.py | 11 +++++++++++ misc/py-shell-gpt/files/patch-shell__gpt.egg-info_SOURCES.txt | 10 ---------- 3 files changed, 12 insertions(+), 17 deletions(-) diff --git a/misc/py-shell-gpt/Makefile b/misc/py-shell-gpt/Makefile index 0032fccf71d5..2eaf32bf0a7a 100644 --- a/misc/py-shell-gpt/Makefile +++ b/misc/py-shell-gpt/Makefile @@ -1,6 +1,6 @@ PORTNAME= shell-gpt DISTVERSION= 0.8.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= misc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -25,12 +25,6 @@ USE_PYTHON= autoplist distutils pytest BINARY_ALIAS= python=${PYTHON_CMD} NO_ARCH= yes -post-extract: - @${RM} ${WRKSRC}/tests/__init__.py - -post-patch: - @${FIND} ${WRKSRC} -type f -name '*.orig' -delete - do-test: cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m unittest tests/unittests.py cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest tests/integrational_tests.py diff --git a/misc/py-shell-gpt/files/patch-setup.py b/misc/py-shell-gpt/files/patch-setup.py new file mode 100644 index 000000000000..a19ad8d57d5e --- /dev/null +++ b/misc/py-shell-gpt/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2023-04-03 09:02:01 UTC ++++ setup.py +@@ -4,7 +4,7 @@ from setuptools import setup, find_packages + setup( + name="shell_gpt", + version="0.8.1", +- packages=find_packages(), ++ packages=find_packages(exclude=['tests']), + install_requires=[ + "typer~=0.7.0", + "requests~=2.28.2", diff --git a/misc/py-shell-gpt/files/patch-shell__gpt.egg-info_SOURCES.txt b/misc/py-shell-gpt/files/patch-shell__gpt.egg-info_SOURCES.txt deleted file mode 100644 index 8afe86591b47..000000000000 --- a/misc/py-shell-gpt/files/patch-shell__gpt.egg-info_SOURCES.txt +++ /dev/null @@ -1,10 +0,0 @@ ---- shell_gpt.egg-info/SOURCES.txt.orig 2023-04-02 05:52:27 UTC -+++ shell_gpt.egg-info/SOURCES.txt -@@ -15,6 +15,3 @@ shell_gpt.egg-info/dependency_links.txt - shell_gpt.egg-info/entry_points.txt - shell_gpt.egg-info/requires.txt - shell_gpt.egg-info/top_level.txt --tests/__init__.py --tests/integrational_tests.py --tests/unittests.py -\ No newline at end of file