Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 May 2020 20:23:47 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r536815 - in head/devel: . py-hypothesmith py-hypothesmith/files
Message-ID:  <202005282023.04SKNla1032338@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu May 28 20:23:47 2020
New Revision: 536815
URL: https://svnweb.freebsd.org/changeset/ports/536815

Log:
  Add devel/py-hypothesmith
  
  Hypothesis strategies for generating Python programs, something like CSmith.
  
  WWW: https://github.com/Zac-HD/hypothesmith

Added:
  head/devel/py-hypothesmith/
  head/devel/py-hypothesmith/Makefile   (contents, props changed)
  head/devel/py-hypothesmith/distinfo   (contents, props changed)
  head/devel/py-hypothesmith/files/
  head/devel/py-hypothesmith/files/patch-setup.py   (contents, props changed)
  head/devel/py-hypothesmith/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Thu May 28 20:00:47 2020	(r536814)
+++ head/devel/Makefile	Thu May 28 20:23:47 2020	(r536815)
@@ -4469,6 +4469,7 @@
     SUBDIR += py-humanize
     SUBDIR += py-hvac
     SUBDIR += py-hypothesis
+    SUBDIR += py-hypothesmith
     SUBDIR += py-icalendar
     SUBDIR += py-ice
     SUBDIR += py-ice37

Added: head/devel/py-hypothesmith/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-hypothesmith/Makefile	Thu May 28 20:23:47 2020	(r536815)
@@ -0,0 +1,27 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	hypothesmith
+PORTVERSION=	0.1.2
+CATEGORIES=	devel
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	amdmi3@FreeBSD.org
+COMMENT=	Hypothesis strategies for generating Python programs
+
+LICENSE=	MPL20
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hypothesis>=0:devel/py-hypothesis@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lark-parser>=0:devel/py-lark-parser@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}libcst>=0:devel/py-libcst@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist distutils
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${LOCALBASE}/bin/tox-${PYTHON_VER} --sitepackages
+
+.include <bsd.port.mk>

Added: head/devel/py-hypothesmith/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-hypothesmith/distinfo	Thu May 28 20:23:47 2020	(r536815)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1590688634
+SHA256 (hypothesmith-0.1.2.tar.gz) = 46ebfac39be46d77c119e9725b9f611453573a053358cf7a2a64db79b50e6324
+SIZE (hypothesmith-0.1.2.tar.gz) = 13046

Added: head/devel/py-hypothesmith/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-hypothesmith/files/patch-setup.py	Thu May 28 20:23:47 2020	(r536815)
@@ -0,0 +1,14 @@
+Allow to use hypothesis 4.x, which works just fine.
+
+Remove this patch when py-hypothesis is updated to >=5.10.4
+--- setup.py.orig	2020-05-17 15:41:01 UTC
++++ setup.py
+@@ -32,7 +32,7 @@ setuptools.setup(
+     license="MPL 2.0",
+     description="Hypothesis strategies for generating Python programs, something like CSmith",
+     zip_safe=False,
+-    install_requires=["hypothesis>=5.10.4", "lark-parser>=0.7.2", "libcst>=0.3.4"],
++    install_requires=["hypothesis>=4.57.1", "lark-parser>=0.7.2", "libcst>=0.3.4"],
+     python_requires=">=3.6",
+     classifiers=[
+         "Development Status :: 2 - Pre-Alpha",

Added: head/devel/py-hypothesmith/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-hypothesmith/pkg-descr	Thu May 28 20:23:47 2020	(r536815)
@@ -0,0 +1,3 @@
+Hypothesis strategies for generating Python programs, something like CSmith.
+
+WWW: https://github.com/Zac-HD/hypothesmith



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