Date: Sat, 14 Feb 2015 08:01:20 +0000 (UTC) From: Kubilay Kocak <koobs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r378951 - in head/sysutils: . py-shutilwhich Message-ID: <201502140801.t1E81KDm003191@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: koobs Date: Sat Feb 14 08:01:19 2015 New Revision: 378951 URL: https://svnweb.freebsd.org/changeset/ports/378951 QAT: https://qat.redports.org/buildarchive/r378951/ Log: [NEW] sysutils/shutilwhich: shutil.which for those not using Python 3.3 A copy & paste backport of Python 3.3's shutil.which function. Import like this: import shutilwhichh. This will monkeypatch shutil if there is no shutil.which method, otherwise leave it alone. WWW: https://github.com/mbr/shutilwhich Added: head/sysutils/py-shutilwhich/ head/sysutils/py-shutilwhich/Makefile (contents, props changed) head/sysutils/py-shutilwhich/distinfo (contents, props changed) head/sysutils/py-shutilwhich/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Sat Feb 14 07:23:47 2015 (r378950) +++ head/sysutils/Makefile Sat Feb 14 08:01:19 2015 (r378951) @@ -757,6 +757,7 @@ SUBDIR += py-ranger SUBDIR += py-salt SUBDIR += py-salt-api + SUBDIR += py-shutilwhich SUBDIR += py-stdiff SUBDIR += py-supervisor SUBDIR += py-zdaemon Added: head/sysutils/py-shutilwhich/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-shutilwhich/Makefile Sat Feb 14 08:01:19 2015 (r378951) @@ -0,0 +1,18 @@ +# Created by: Kubilay Kocak <koobs@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= shutilwhich +PORTVERSION= 1.0.1 +CATEGORIES= sysutils python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= koobs@FreeBSD.org +COMMENT= shutil.which for those not using Python 3.3 + +LICENSE= PSFL + +USES= python +USE_PYTHON= autoplist distutils + +.include <bsd.port.mk> Added: head/sysutils/py-shutilwhich/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-shutilwhich/distinfo Sat Feb 14 08:01:19 2015 (r378951) @@ -0,0 +1,2 @@ +SHA256 (shutilwhich-1.0.1.tar.gz) = 698b144c49d10730500ba6bd1446bb0c45c4bb01b005f24c6cc1c1e6567de037 +SIZE (shutilwhich-1.0.1.tar.gz) = 2099 Added: head/sysutils/py-shutilwhich/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-shutilwhich/pkg-descr Sat Feb 14 08:01:19 2015 (r378951) @@ -0,0 +1,8 @@ +A copy & paste backport of Python 3.3's shutil.which function. + +Import like this: import shutilwhichh. + +This will monkeypatch shutil if there is no shutil.which method, otherwise +leave it alone. + +WWW: https://github.com/mbr/shutilwhich
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502140801.t1E81KDm003191>