FreeBSD Bugzilla – Attachment 241273 Details for
Bug 270542
misc/py-shell-gpt: conflicts with security/py-notus-scanner
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[patch] explicitly exclude 'tests' as a package
pr-py-shell-gpt-dont-install-tests.diff (text/plain), 1.41 KB, created by
John Hein
on 2023-04-02 19:01:23 UTC
(
hide
)
Description:
[patch] explicitly exclude 'tests' as a package
Filename:
MIME Type:
Creator:
John Hein
Created:
2023-04-02 19:01:23 UTC
Size:
1.41 KB
patch
obsolete
>diff --git a/misc/py-shell-gpt/Makefile b/misc/py-shell-gpt/Makefile >index 0032fccf71d5..cf9d3b3a1d5a 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,14 +25,8 @@ 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} tests/unittests.py > cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest tests/integrational_tests.py > > .include <bsd.port.mk> >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..1dece4a5e709 >--- /dev/null >+++ b/misc/py-shell-gpt/files/patch-setup.py >@@ -0,0 +1,11 @@ >+--- setup.py.orig 2023-03-28 19:46:55 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",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 270542
: 241273