devel/py-mypy: update to 0.501

- Remove unneeded patches (superseded by upstream)
 - Track minimum depedency on py-typed-ast

Change Log:
 - typed_ast is used as the default parser (i.e. --fast-parser is now the default)
 - Python 3.6 features supported by default
 - Simples metaclass support added
 - The --warn-no-return flag is now default: warns about missing return statements
 - A function that doesn't return can be annotated (using mypy_extensions.NoReturn)
 - Redundant Generic[T] no longer needed
 - Checking of assignments in a class body
 - The --strict flag is added, that turns on most additional checks

PR:		218303
Approved by:	Florian Limberger <flo@snakeoilproductions.net>
This commit is contained in:
David Naylor 2017-04-14 07:53:55 +00:00
parent 4cc0ac7d9a
commit 3c60f52a6b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=438497
4 changed files with 5 additions and 27 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= mypy
PORTVERSION= 0.471
PORTVERSION= 0.501
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -14,7 +14,7 @@ LICENSE= MIT PSFL
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typed-ast>=0.6.3:devel/py-typed-ast
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typed-ast>=1.0.0:devel/py-typed-ast
NO_ARCH= yes
USES= python:3.3+

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1487173104
SHA256 (mypy-0.471.tar.gz) = 552821e4ae601e9058797cfc7d251ff6a2789b5b5aeb00df017f76271d726e9f
SIZE (mypy-0.471.tar.gz) = 660228
TIMESTAMP = 1490943629
SHA256 (mypy-0.501.tar.gz) = 1098ba0bc55b4f6cebdf35f1303be31107f2ae5a753f9aec28aaff2d701b8f98
SIZE (mypy-0.501.tar.gz) = 679701

View File

@ -1,11 +0,0 @@
--- 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'

View File

@ -1,11 +0,0 @@
--- 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'