From owner-svn-ports-all@freebsd.org Tue Feb 21 06:10:13 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87D55CE71CF; Tue, 21 Feb 2017 06:10:13 +0000 (UTC) (envelope-from dbn@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48AC41B8; Tue, 21 Feb 2017 06:10:13 +0000 (UTC) (envelope-from dbn@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1L6AC9h007357; Tue, 21 Feb 2017 06:10:12 GMT (envelope-from dbn@FreeBSD.org) Received: (from dbn@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1L6ABQH007330; Tue, 21 Feb 2017 06:10:11 GMT (envelope-from dbn@FreeBSD.org) Message-Id: <201702210610.v1L6ABQH007330@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dbn set sender to dbn@FreeBSD.org using -f From: David Naylor Date: Tue, 21 Feb 2017 06:10:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434504 - in head/devel: . py-mypy py-mypy/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2017 06:10:13 -0000 Author: dbn Date: Tue Feb 21 06:10:11 2017 New Revision: 434504 URL: https://svnweb.freebsd.org/changeset/ports/434504 Log: devel/py-mypy: add new port Mypy is an optional static type checker for Python. You can add type hints to your Python programs using the standard for type annotations introduced in Python 3.5 (PEP 484), and use mypy to type check them statically. Find bugs in your programs without even running them! PR: 209871 Submitted by: Florian Limberger (flo@snakeoilproductions.net) Added: head/devel/py-mypy/ head/devel/py-mypy/Makefile (contents, props changed) head/devel/py-mypy/distinfo (contents, props changed) head/devel/py-mypy/files/ head/devel/py-mypy/files/patch-mypy_fastparse.py (contents, props changed) head/devel/py-mypy/files/patch-mypy_fastparse2.py (contents, props changed) head/devel/py-mypy/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Tue Feb 21 06:08:30 2017 (r434503) +++ head/devel/Makefile Tue Feb 21 06:10:11 2017 (r434504) @@ -4410,6 +4410,7 @@ SUBDIR += py-mwlib.rl SUBDIR += py-mx-experimental SUBDIR += py-mygpoclient + SUBDIR += py-mypy SUBDIR += py-nagioscheck SUBDIR += py-natsort SUBDIR += py-natural Added: head/devel/py-mypy/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-mypy/Makefile Tue Feb 21 06:10:11 2017 (r434504) @@ -0,0 +1,29 @@ +# Created by: Florian Limberger +# $FreeBSD$ + +PORTNAME= mypy +PORTVERSION= 0.471 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= flo@snakeoilproductions.net +COMMENT= Optional static typing for Python + +LICENSE= MIT PSFL +LICENSE_COMB= multi +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typed-ast>=0.6.3:devel/py-typed-ast + +NO_ARCH= yes +USES= python:3.3+ +USE_PYTHON= autoplist distutils + +.include + +.if ${PYTHON_VER} < 3.5 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing>=3.5.3:devel/py-typing +.endif + +.include Added: head/devel/py-mypy/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-mypy/distinfo Tue Feb 21 06:10:11 2017 (r434504) @@ -0,0 +1,3 @@ +TIMESTAMP = 1487173104 +SHA256 (mypy-0.471.tar.gz) = 552821e4ae601e9058797cfc7d251ff6a2789b5b5aeb00df017f76271d726e9f +SIZE (mypy-0.471.tar.gz) = 660228 Added: head/devel/py-mypy/files/patch-mypy_fastparse.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-mypy/files/patch-mypy_fastparse.py Tue Feb 21 06:10:11 2017 (r434504) @@ -0,0 +1,11 @@ +--- mypy/fastparse.py.orig 2017-02-15 15:30:38 UTC ++++ mypy/fastparse.py +@@ -26,7 +26,7 @@ from mypy import experiments + from mypy.errors import Errors + + try: +- from typed_ast import ast35 ++ from typed_ast import ast3 as ast35 + except ImportError: + if sys.version_info.minor > 2: + print('You must install the typed_ast package before you can run mypy' Added: head/devel/py-mypy/files/patch-mypy_fastparse2.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-mypy/files/patch-mypy_fastparse2.py Tue Feb 21 06:10:11 2017 (r434504) @@ -0,0 +1,11 @@ +--- mypy/fastparse2.py.orig 2017-02-15 15:30:42 UTC ++++ mypy/fastparse2.py +@@ -43,7 +43,7 @@ from mypy.fastparse import TypeConverter + + try: + from typed_ast import ast27 +- from typed_ast import ast35 ++ from typed_ast import ast3 as ast35 + except ImportError: + if sys.version_info.minor > 2: + print('You must install the typed_ast package before you can run mypy' Added: head/devel/py-mypy/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-mypy/pkg-descr Tue Feb 21 06:10:11 2017 (r434504) @@ -0,0 +1,6 @@ +Mypy is an optional static type checker for Python. You can add type hints to +your Python programs using the standard for type annotations introduced in +Python 3.5 (PEP 484), and use mypy to type check them statically. Find bugs in +your programs without even running them! + +WWW: http://www.mypy-lang.org