pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

semgrep: Do not install tests



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Thu Oct 14 01:52:11 2021 +0200
Changeset:	e5ad34707decaf9ccef88a3439e0847afb22f6b2

Modified Files:
	semgrep/Makefile
	semgrep/PLIST

Log Message:
semgrep: Do not install tests

tests are installed outside semgrep and that can lead to possible conflicts.

(Noticed while packaging py-awslogs that was also (probably)
accidentally installing tests.)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e5ad34707decaf9ccef88a3439e0847afb22f6b2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 semgrep/Makefile |  4 +++
 semgrep/PLIST    | 78 --------------------------------------------------------
 2 files changed, 4 insertions(+), 78 deletions(-)

diffs:
diff --git a/semgrep/Makefile b/semgrep/Makefile
index 8072f9f924..c373bf79f0 100644
--- a/semgrep/Makefile
+++ b/semgrep/Makefile
@@ -29,6 +29,10 @@ USE_LANGUAGES=	# none
 # Only for Python >= 3.6
 PYTHON_VERSIONS_INCOMPATIBLE=	27
 
+# Do not install tests
+post-install:
+	${RM} -rf ${DESTDIR}${PREFIX}/${PYSITELIB}/tests
+
 .include "../../lang/python/application.mk"
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/semgrep/PLIST b/semgrep/PLIST
index aefdd8be86..8a288ea033 100644
--- a/semgrep/PLIST
+++ b/semgrep/PLIST
@@ -149,81 +149,3 @@ ${PYSITELIB}/semgrep/verbose_logging.pyo
 ${PYSITELIB}/semgrep/version.py
 ${PYSITELIB}/semgrep/version.pyc
 ${PYSITELIB}/semgrep/version.pyo
-${PYSITELIB}/tests/__init__.py
-${PYSITELIB}/tests/__init__.pyc
-${PYSITELIB}/tests/__init__.pyo
-${PYSITELIB}/tests/conftest.py
-${PYSITELIB}/tests/conftest.pyc
-${PYSITELIB}/tests/conftest.pyo
-${PYSITELIB}/tests/e2e/__init__.py
-${PYSITELIB}/tests/e2e/__init__.pyc
-${PYSITELIB}/tests/e2e/__init__.pyo
-${PYSITELIB}/tests/e2e/test_api.py
-${PYSITELIB}/tests/e2e/test_api.pyc
-${PYSITELIB}/tests/e2e/test_api.pyo
-${PYSITELIB}/tests/e2e/test_autofix.py
-${PYSITELIB}/tests/e2e/test_autofix.pyc
-${PYSITELIB}/tests/e2e/test_autofix.pyo
-${PYSITELIB}/tests/e2e/test_check.py
-${PYSITELIB}/tests/e2e/test_check.pyc
-${PYSITELIB}/tests/e2e/test_check.pyo
-${PYSITELIB}/tests/e2e/test_cli_test.py
-${PYSITELIB}/tests/e2e/test_cli_test.pyc
-${PYSITELIB}/tests/e2e/test_cli_test.pyo
-${PYSITELIB}/tests/e2e/test_debugging_json.py
-${PYSITELIB}/tests/e2e/test_debugging_json.pyc
-${PYSITELIB}/tests/e2e/test_debugging_json.pyo
-${PYSITELIB}/tests/e2e/test_equivalence.py
-${PYSITELIB}/tests/e2e/test_equivalence.pyc
-${PYSITELIB}/tests/e2e/test_equivalence.pyo
-${PYSITELIB}/tests/e2e/test_exclude_include.py
-${PYSITELIB}/tests/e2e/test_exclude_include.pyc
-${PYSITELIB}/tests/e2e/test_exclude_include.pyo
-${PYSITELIB}/tests/e2e/test_generate_config.py
-${PYSITELIB}/tests/e2e/test_generate_config.pyc
-${PYSITELIB}/tests/e2e/test_generate_config.pyo
-${PYSITELIB}/tests/e2e/test_join_rules.py
-${PYSITELIB}/tests/e2e/test_join_rules.pyc
-${PYSITELIB}/tests/e2e/test_join_rules.pyo
-${PYSITELIB}/tests/e2e/test_message_interpolation.py
-${PYSITELIB}/tests/e2e/test_message_interpolation.pyc
-${PYSITELIB}/tests/e2e/test_message_interpolation.pyo
-${PYSITELIB}/tests/e2e/test_metavariable_matching.py
-${PYSITELIB}/tests/e2e/test_metavariable_matching.pyc
-${PYSITELIB}/tests/e2e/test_metavariable_matching.pyo
-${PYSITELIB}/tests/e2e/test_metrics.py
-${PYSITELIB}/tests/e2e/test_metrics.pyc
-${PYSITELIB}/tests/e2e/test_metrics.pyo
-${PYSITELIB}/tests/e2e/test_paths.py
-${PYSITELIB}/tests/e2e/test_paths.pyc
-${PYSITELIB}/tests/e2e/test_paths.pyo
-${PYSITELIB}/tests/e2e/test_rule_parser.py
-${PYSITELIB}/tests/e2e/test_rule_parser.pyc
-${PYSITELIB}/tests/e2e/test_rule_parser.pyo
-${PYSITELIB}/tests/e2e/test_rule_validation.py
-${PYSITELIB}/tests/e2e/test_rule_validation.pyc
-${PYSITELIB}/tests/e2e/test_rule_validation.pyo
-${PYSITELIB}/tests/e2e/test_semgrep_core_parse_error.py
-${PYSITELIB}/tests/e2e/test_semgrep_core_parse_error.pyc
-${PYSITELIB}/tests/e2e/test_semgrep_core_parse_error.pyo
-${PYSITELIB}/tests/e2e/test_semgrep_rules_repo.py
-${PYSITELIB}/tests/e2e/test_semgrep_rules_repo.pyc
-${PYSITELIB}/tests/e2e/test_semgrep_rules_repo.pyo
-${PYSITELIB}/tests/e2e/test_severity.py
-${PYSITELIB}/tests/e2e/test_severity.pyc
-${PYSITELIB}/tests/e2e/test_severity.pyo
-${PYSITELIB}/tests/e2e/test_spacegrep.py
-${PYSITELIB}/tests/e2e/test_spacegrep.pyc
-${PYSITELIB}/tests/e2e/test_spacegrep.pyo
-${PYSITELIB}/tests/e2e/test_synthesize_patterns.py
-${PYSITELIB}/tests/e2e/test_synthesize_patterns.pyc
-${PYSITELIB}/tests/e2e/test_synthesize_patterns.pyo
-${PYSITELIB}/tests/public_repos.py
-${PYSITELIB}/tests/public_repos.pyc
-${PYSITELIB}/tests/public_repos.pyo
-${PYSITELIB}/tests/qa/__init__.py
-${PYSITELIB}/tests/qa/__init__.pyc
-${PYSITELIB}/tests/qa/__init__.pyo
-${PYSITELIB}/tests/qa/test_public_repos.py
-${PYSITELIB}/tests/qa/test_public_repos.pyc
-${PYSITELIB}/tests/qa/test_public_repos.pyo


Home | Main Index | Thread Index | Old Index