pkgsrc-WIP-changes archive

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

semgrep: Import semgrep-0.35.0 as wip/semgrep



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri Dec 25 15:53:40 2020 +0100
Changeset:	1321ccf822ef6ac7ff9eed8a12d9a357d5db3b0d

Modified Files:
	Makefile
Added Files:
	semgrep/DESCR
	semgrep/Makefile
	semgrep/PLIST
	semgrep/distinfo
	semgrep/patches/patch-setup.py

Log Message:
semgrep: Import semgrep-0.35.0 as wip/semgrep

semgrep is a tool for easily detecting and preventing bugs and
anti-patterns in your codebase. It combines the convenience of grep
with the correctness of syntactical and semantic search. Developers,
DevOps engineers, and security engineers use semgrep to write code with
confidence.

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

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

diffstat:
 Makefile                       |   1 +
 semgrep/DESCR                  |   5 ++
 semgrep/Makefile               |  32 +++++++++
 semgrep/PLIST                  | 160 +++++++++++++++++++++++++++++++++++++++++
 semgrep/distinfo               |   7 ++
 semgrep/patches/patch-setup.py |  23 ++++++
 6 files changed, 228 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 7af5b66122..093baace81 100644
--- a/Makefile
+++ b/Makefile
@@ -4731,6 +4731,7 @@ SUBDIR+=	seeks
 SUBDIR+=	segvcatch
 SUBDIR+=	self-git
 SUBDIR+=	semanticscuttle
+SUBDIR+=	semgrep
 SUBDIR+=	send-pr
 SUBDIR+=	sendmail
 SUBDIR+=	sendmailX
diff --git a/semgrep/DESCR b/semgrep/DESCR
new file mode 100644
index 0000000000..3a6c080e75
--- /dev/null
+++ b/semgrep/DESCR
@@ -0,0 +1,5 @@
+semgrep is a tool for easily detecting and preventing bugs and
+anti-patterns in your codebase. It combines the convenience of grep
+with the correctness of syntactical and semantic search. Developers,
+DevOps engineers, and security engineers use semgrep to write code with
+confidence.
diff --git a/semgrep/Makefile b/semgrep/Makefile
new file mode 100644
index 0000000000..9f7914b9e4
--- /dev/null
+++ b/semgrep/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD$
+
+DISTNAME=	semgrep-0.35.0
+CATEGORIES=	devel python
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/semgrep/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/returntocorp/semgrep
+COMMENT=	Syntax-aware semantic code pattern search for many languages
+LICENSE=	mit
+
+DEPENDS+=	${PYPKGPREFIX}-attrs>=19.3.0:../../devel/py-attrs
+DEPENDS+=	${PYPKGPREFIX}-colorama>=0.4.3:../../comms/py-colorama
+DEPENDS+=	${PYPKGPREFIX}-jsonschema>=3.2.0:../../textproc/py-jsonschema
+DEPENDS+=	${PYPKGPREFIX}-junit-xml2>=1.9:../../wip/py-junit-xml2
+DEPENDS+=	${PYPKGPREFIX}-packaging>=20.4:../../devel/py-packaging
+DEPENDS+=	${PYPKGPREFIX}-requests>=2.22.0:../../devel/py-requests
+DEPENDS+=	${PYPKGPREFIX}-ruamel-yaml>=0.16.10:../../devel/py-ruamel-yaml
+DEPENDS+=	${PYPKGPREFIX}-tqdm>=4.46.1:../../misc/py-tqdm
+DEPENDS+=	${PYPKGPREFIX}-yaml>=5.3:../../textproc/py-yaml
+
+# Avoid to install binaries
+INSTALL_ENV+=	HOMEBREW_SYSTEM=yes
+
+USE_LANGUAGES=	# none
+
+# Only for Python >= 3.6
+PYTHON_VERSIONS_INCOMPATIBLE=	27
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/semgrep/PLIST b/semgrep/PLIST
new file mode 100644
index 0000000000..8177999178
--- /dev/null
+++ b/semgrep/PLIST
@@ -0,0 +1,160 @@
+@comment $NetBSD$
+bin/semgrep
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/semgrep/__init__.py
+${PYSITELIB}/semgrep/__init__.pyc
+${PYSITELIB}/semgrep/__init__.pyo
+${PYSITELIB}/semgrep/__main__.py
+${PYSITELIB}/semgrep/__main__.pyc
+${PYSITELIB}/semgrep/__main__.pyo
+${PYSITELIB}/semgrep/autofix.py
+${PYSITELIB}/semgrep/autofix.pyc
+${PYSITELIB}/semgrep/autofix.pyo
+${PYSITELIB}/semgrep/cli.py
+${PYSITELIB}/semgrep/cli.pyc
+${PYSITELIB}/semgrep/cli.pyo
+${PYSITELIB}/semgrep/config_resolver.py
+${PYSITELIB}/semgrep/config_resolver.pyc
+${PYSITELIB}/semgrep/config_resolver.pyo
+${PYSITELIB}/semgrep/constants.py
+${PYSITELIB}/semgrep/constants.pyc
+${PYSITELIB}/semgrep/constants.pyo
+${PYSITELIB}/semgrep/core_exception.py
+${PYSITELIB}/semgrep/core_exception.pyc
+${PYSITELIB}/semgrep/core_exception.pyo
+${PYSITELIB}/semgrep/core_runner.py
+${PYSITELIB}/semgrep/core_runner.pyc
+${PYSITELIB}/semgrep/core_runner.pyo
+${PYSITELIB}/semgrep/dump_ast.py
+${PYSITELIB}/semgrep/dump_ast.pyc
+${PYSITELIB}/semgrep/dump_ast.pyo
+${PYSITELIB}/semgrep/equivalences.py
+${PYSITELIB}/semgrep/equivalences.pyc
+${PYSITELIB}/semgrep/equivalences.pyo
+${PYSITELIB}/semgrep/error.py
+${PYSITELIB}/semgrep/error.pyc
+${PYSITELIB}/semgrep/error.pyo
+${PYSITELIB}/semgrep/evaluation.py
+${PYSITELIB}/semgrep/evaluation.pyc
+${PYSITELIB}/semgrep/evaluation.pyo
+${PYSITELIB}/semgrep/metavariable_comparison.py
+${PYSITELIB}/semgrep/metavariable_comparison.pyc
+${PYSITELIB}/semgrep/metavariable_comparison.pyo
+${PYSITELIB}/semgrep/output.py
+${PYSITELIB}/semgrep/output.pyc
+${PYSITELIB}/semgrep/output.pyo
+${PYSITELIB}/semgrep/pattern.py
+${PYSITELIB}/semgrep/pattern.pyc
+${PYSITELIB}/semgrep/pattern.pyo
+${PYSITELIB}/semgrep/pattern_match.py
+${PYSITELIB}/semgrep/pattern_match.pyc
+${PYSITELIB}/semgrep/pattern_match.pyo
+${PYSITELIB}/semgrep/profile_manager.py
+${PYSITELIB}/semgrep/profile_manager.pyc
+${PYSITELIB}/semgrep/profile_manager.pyo
+${PYSITELIB}/semgrep/rule.py
+${PYSITELIB}/semgrep/rule.pyc
+${PYSITELIB}/semgrep/rule.pyo
+${PYSITELIB}/semgrep/rule_lang.py
+${PYSITELIB}/semgrep/rule_lang.pyc
+${PYSITELIB}/semgrep/rule_lang.pyo
+${PYSITELIB}/semgrep/rule_match.py
+${PYSITELIB}/semgrep/rule_match.pyc
+${PYSITELIB}/semgrep/rule_match.pyo
+${PYSITELIB}/semgrep/rule_schema.yaml
+${PYSITELIB}/semgrep/semgrep_main.py
+${PYSITELIB}/semgrep/semgrep_main.pyc
+${PYSITELIB}/semgrep/semgrep_main.pyo
+${PYSITELIB}/semgrep/semgrep_types.py
+${PYSITELIB}/semgrep/semgrep_types.pyc
+${PYSITELIB}/semgrep/semgrep_types.pyo
+${PYSITELIB}/semgrep/spacegrep.py
+${PYSITELIB}/semgrep/spacegrep.pyc
+${PYSITELIB}/semgrep/spacegrep.pyo
+${PYSITELIB}/semgrep/stats.py
+${PYSITELIB}/semgrep/stats.pyc
+${PYSITELIB}/semgrep/stats.pyo
+${PYSITELIB}/semgrep/synthesize_patterns.py
+${PYSITELIB}/semgrep/synthesize_patterns.pyc
+${PYSITELIB}/semgrep/synthesize_patterns.pyo
+${PYSITELIB}/semgrep/target_manager.py
+${PYSITELIB}/semgrep/target_manager.pyc
+${PYSITELIB}/semgrep/target_manager.pyo
+${PYSITELIB}/semgrep/target_manager_extensions.py
+${PYSITELIB}/semgrep/target_manager_extensions.pyc
+${PYSITELIB}/semgrep/target_manager_extensions.pyo
+${PYSITELIB}/semgrep/test.py
+${PYSITELIB}/semgrep/test.pyc
+${PYSITELIB}/semgrep/test.pyo
+${PYSITELIB}/semgrep/util.py
+${PYSITELIB}/semgrep/util.pyc
+${PYSITELIB}/semgrep/util.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_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_metavariable_matching.py
+${PYSITELIB}/tests/e2e/test_metavariable_matching.pyc
+${PYSITELIB}/tests/e2e/test_metavariable_matching.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_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
diff --git a/semgrep/distinfo b/semgrep/distinfo
new file mode 100644
index 0000000000..266c57c207
--- /dev/null
+++ b/semgrep/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (semgrep-0.35.0.tar.gz) = e99228f9c00ca3d2836a155426c96a5134e2120a
+RMD160 (semgrep-0.35.0.tar.gz) = 2bf1cab7fa27c0e6faa7d6e81e5ad13526d2fdc6
+SHA512 (semgrep-0.35.0.tar.gz) = d16224ff9d81ea07200789bcb646dea60b0f69a2e43bd8a1cf5b0f9606b7386ffa8d365d45e005e7e75b3b359461c2ca694fe43d22eed6f729e4cfe8044dc155
+Size (semgrep-0.35.0.tar.gz) = 73774 bytes
+SHA1 (patch-setup.py) = 1b6a538d9aa553cf034a9a9cc4a929b0fcb04384
diff --git a/semgrep/patches/patch-setup.py b/semgrep/patches/patch-setup.py
new file mode 100644
index 0000000000..9642147ab0
--- /dev/null
+++ b/semgrep/patches/patch-setup.py
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Avoid too strict version requirements.
+
+--- setup.py.orig	2020-12-16 21:19:50.000000000 +0000
++++ setup.py
+@@ -144,13 +144,13 @@ setup(
+     install_requires=[
+         "attrs>=19.3.0",
+         "colorama>=0.4.3",
+-        "junit_xml==1.9",
++        "junit_xml>=1.9",
+         "requests>=2.22.0",
+         # exact version because of unstable API
+-        "ruamel.yaml==0.16.10",
++        "ruamel.yaml>=0.16.10",
+         "tqdm>=4.46.1",
+         "packaging>=20.4",
+-        "jsonschema~=3.2.0",
++        "jsonschema>=3.2.0",
+     ],
+     entry_points={"console_scripts": ["semgrep=semgrep.__main__:main"]},
+     packages=setuptools.find_packages(),


Home | Main Index | Thread Index | Old Index