summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Seaman <matthew@FreeBSD.org>2018-09-20 11:27:46 +0000
committerMatthew Seaman <matthew@FreeBSD.org>2018-09-20 11:27:46 +0000
commitc126d6e855e45f865692492f10b6226f7925872d (patch)
tree8d3b50baa026e2fc5a1b75271055f00c66f5c8fb
parentNew port: databases/opendbviewer (diff)
This package provides cross-platform cross-python shutil.which
functionality. This is a shim of the shutil.which function that's designed to work across multiple versions of Python and inside of windows. The code for Python 2.x is based on Python 3 code that I extracted from source. I originally did this for Cookiecutter but pulled it out in order to reduce line count for that project. WWW: https://pypi.org/project/whichcraft/
Notes
Notes: svn path=/head/; revision=480166
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-whichcraft/Makefile27
-rw-r--r--devel/py-whichcraft/distinfo3
-rw-r--r--devel/py-whichcraft/pkg-descr10
4 files changed, 41 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 5e9ea60eba69..2766dad0e86a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5184,6 +5184,7 @@
SUBDIR += py-weblib
SUBDIR += py-websockify
SUBDIR += py-wheel
+ SUBDIR += py-whichcraft
SUBDIR += py-whistle
SUBDIR += py-widgetsnbextension
SUBDIR += py-wrapt
diff --git a/devel/py-whichcraft/Makefile b/devel/py-whichcraft/Makefile
new file mode 100644
index 000000000000..3253bd75298b
--- /dev/null
+++ b/devel/py-whichcraft/Makefile
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+PORTNAME= whichcraft
+PORTVERSION= 0.4.1
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= matthew@FreeBSD.org
+COMMENT= Cross-platform cross-python shutil.which functionality
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=2.1.0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0.23.0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+do-test:
+ cd ${WRKSRC} && ${PYTHON_CMD} test_whichcraft.py
+
+.include <bsd.port.mk>
diff --git a/devel/py-whichcraft/distinfo b/devel/py-whichcraft/distinfo
new file mode 100644
index 000000000000..480ed2cbf008
--- /dev/null
+++ b/devel/py-whichcraft/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1537441903
+SHA256 (whichcraft-0.4.1.tar.gz) = 9e0d51c9387cb7e9f28b7edb549e6a03da758f7784f991eb4397d7f7808c57fd
+SIZE (whichcraft-0.4.1.tar.gz) = 6222
diff --git a/devel/py-whichcraft/pkg-descr b/devel/py-whichcraft/pkg-descr
new file mode 100644
index 000000000000..a95b864121ed
--- /dev/null
+++ b/devel/py-whichcraft/pkg-descr
@@ -0,0 +1,10 @@
+This package provides cross-platform cross-python shutil.which
+functionality.
+
+This is a shim of the shutil.which function that's designed to work
+across multiple versions of Python and inside of windows. The code for
+Python 2.x is based on Python 3 code that I extracted from source. I
+originally did this for Cookiecutter but pulled it out in order to
+reduce line count for that project.
+
+WWW: https://pypi.org/project/whichcraft/