pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang py-mypy: added version 0.641



details:   https://anonhg.NetBSD.org/pkgsrc/rev/77b502e58316
branches:  trunk
changeset: 325934:77b502e58316
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Nov 28 08:15:31 2018 +0000

description:
py-mypy: added version 0.641

Add type annotations to your Python programs, and use mypy to type check them.
Mypy is essentially a Python linter on steroids, and it can catch many
programming errors by analyzing your program, without actually having to run
it. Mypy has a powerful type system with features such as type inference,
gradual typing, generics and union types.

diffstat:

 lang/Makefile             |     4 +-
 lang/py-mypy/ALTERNATIVES |     3 +
 lang/py-mypy/DESCR        |     5 +
 lang/py-mypy/Makefile     |    35 +
 lang/py-mypy/PLIST        |  1396 +++++++++++++++++++++++++++++++++++++++++++++
 lang/py-mypy/distinfo     |     6 +
 6 files changed, 1448 insertions(+), 1 deletions(-)

diffs (truncated from 1483 to 300 lines):

diff -r b6574d5d7986 -r 77b502e58316 lang/Makefile
--- a/lang/Makefile     Wed Nov 28 08:14:57 2018 +0000
+++ b/lang/Makefile     Wed Nov 28 08:15:31 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.500 2018/11/21 11:25:00 jperkin Exp $
+# $NetBSD: Makefile,v 1.501 2018/11/28 08:15:31 adam Exp $
 #
 
 COMMENT=       Programming languages
@@ -199,6 +199,8 @@
 SUBDIR+=       py-hy
 SUBDIR+=       py-js2py
 SUBDIR+=       py-jsparser
+SUBDIR+=       py-mypy
+SUBDIR+=       py-mypy_extensions
 SUBDIR+=       py-parso
 SUBDIR+=       py-paver
 SUBDIR+=       py-pyrex
diff -r b6574d5d7986 -r 77b502e58316 lang/py-mypy/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/py-mypy/ALTERNATIVES Wed Nov 28 08:15:31 2018 +0000
@@ -0,0 +1,3 @@
+bin/dmypy @PREFIX@/bin/dmypy-@PYVERSSUFFIX@
+bin/mypy @PREFIX@/bin/mypy-@PYVERSSUFFIX@
+bin/stubgen @PREFIX@/bin/stubgen-@PYVERSSUFFIX@
diff -r b6574d5d7986 -r 77b502e58316 lang/py-mypy/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/py-mypy/DESCR        Wed Nov 28 08:15:31 2018 +0000
@@ -0,0 +1,5 @@
+Add type annotations to your Python programs, and use mypy to type check them.
+Mypy is essentially a Python linter on steroids, and it can catch many
+programming errors by analyzing your program, without actually having to run
+it. Mypy has a powerful type system with features such as type inference,
+gradual typing, generics and union types.
diff -r b6574d5d7986 -r 77b502e58316 lang/py-mypy/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/py-mypy/Makefile     Wed Nov 28 08:15:31 2018 +0000
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2018/11/28 08:15:31 adam Exp $
+
+DISTNAME=      mypy-0.641
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    lang python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=m/mypy/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.mypy-lang.org/
+COMMENT=       Optional static typing for Python
+LICENSE=       mit
+
+DEPENDS+=      ${PYPKGPREFIX}-typed-ast>=1.1.0:../../devel/py-typed-ast
+DEPENDS+=      ${PYPKGPREFIX}-mypy_extensions>=0.4.0:../../lang/py-mypy_extensions
+
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} == 34
+DEPENDS+=      ${PYPKGPREFIX}-typing>=3.5.3:../../devel/py-typing
+.endif
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+REPLACE_PYTHON=        mypy/typeshed/tests/*.py
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && \
+               ${MV} dmypy dmypy-${PYVERSSUFFIX} && \
+               ${MV} mypy mypy-${PYVERSSUFFIX} && \
+               ${MV} stubgen stubgen-${PYVERSSUFFIX} || ${TRUE}
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r b6574d5d7986 -r 77b502e58316 lang/py-mypy/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/py-mypy/PLIST        Wed Nov 28 08:15:31 2018 +0000
@@ -0,0 +1,1396 @@
+@comment $NetBSD: PLIST,v 1.1 2018/11/28 08:15:31 adam Exp $
+bin/dmypy-${PYVERSSUFFIX}
+bin/mypy-${PYVERSSUFFIX}
+bin/stubgen-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/mypy/__init__.py
+${PYSITELIB}/mypy/__init__.pyc
+${PYSITELIB}/mypy/__init__.pyo
+${PYSITELIB}/mypy/__main__.py
+${PYSITELIB}/mypy/__main__.pyc
+${PYSITELIB}/mypy/__main__.pyo
+${PYSITELIB}/mypy/api.py
+${PYSITELIB}/mypy/api.pyc
+${PYSITELIB}/mypy/api.pyo
+${PYSITELIB}/mypy/applytype.py
+${PYSITELIB}/mypy/applytype.pyc
+${PYSITELIB}/mypy/applytype.pyo
+${PYSITELIB}/mypy/binder.py
+${PYSITELIB}/mypy/binder.pyc
+${PYSITELIB}/mypy/binder.pyo
+${PYSITELIB}/mypy/bogus_type.py
+${PYSITELIB}/mypy/bogus_type.pyc
+${PYSITELIB}/mypy/bogus_type.pyo
+${PYSITELIB}/mypy/build.py
+${PYSITELIB}/mypy/build.pyc
+${PYSITELIB}/mypy/build.pyo
+${PYSITELIB}/mypy/checker.py
+${PYSITELIB}/mypy/checker.pyc
+${PYSITELIB}/mypy/checker.pyo
+${PYSITELIB}/mypy/checkexpr.py
+${PYSITELIB}/mypy/checkexpr.pyc
+${PYSITELIB}/mypy/checkexpr.pyo
+${PYSITELIB}/mypy/checkmember.py
+${PYSITELIB}/mypy/checkmember.pyc
+${PYSITELIB}/mypy/checkmember.pyo
+${PYSITELIB}/mypy/checkstrformat.py
+${PYSITELIB}/mypy/checkstrformat.pyc
+${PYSITELIB}/mypy/checkstrformat.pyo
+${PYSITELIB}/mypy/constraints.py
+${PYSITELIB}/mypy/constraints.pyc
+${PYSITELIB}/mypy/constraints.pyo
+${PYSITELIB}/mypy/defaults.py
+${PYSITELIB}/mypy/defaults.pyc
+${PYSITELIB}/mypy/defaults.pyo
+${PYSITELIB}/mypy/dmypy.py
+${PYSITELIB}/mypy/dmypy.pyc
+${PYSITELIB}/mypy/dmypy.pyo
+${PYSITELIB}/mypy/dmypy_server.py
+${PYSITELIB}/mypy/dmypy_server.pyc
+${PYSITELIB}/mypy/dmypy_server.pyo
+${PYSITELIB}/mypy/dmypy_util.py
+${PYSITELIB}/mypy/dmypy_util.pyc
+${PYSITELIB}/mypy/dmypy_util.pyo
+${PYSITELIB}/mypy/erasetype.py
+${PYSITELIB}/mypy/erasetype.pyc
+${PYSITELIB}/mypy/erasetype.pyo
+${PYSITELIB}/mypy/errors.py
+${PYSITELIB}/mypy/errors.pyc
+${PYSITELIB}/mypy/errors.pyo
+${PYSITELIB}/mypy/expandtype.py
+${PYSITELIB}/mypy/expandtype.pyc
+${PYSITELIB}/mypy/expandtype.pyo
+${PYSITELIB}/mypy/experiments.py
+${PYSITELIB}/mypy/experiments.pyc
+${PYSITELIB}/mypy/experiments.pyo
+${PYSITELIB}/mypy/exprtotype.py
+${PYSITELIB}/mypy/exprtotype.pyc
+${PYSITELIB}/mypy/exprtotype.pyo
+${PYSITELIB}/mypy/fastparse.py
+${PYSITELIB}/mypy/fastparse.pyc
+${PYSITELIB}/mypy/fastparse.pyo
+${PYSITELIB}/mypy/fastparse2.py
+${PYSITELIB}/mypy/fastparse2.pyc
+${PYSITELIB}/mypy/fastparse2.pyo
+${PYSITELIB}/mypy/find_sources.py
+${PYSITELIB}/mypy/find_sources.pyc
+${PYSITELIB}/mypy/find_sources.pyo
+${PYSITELIB}/mypy/fixup.py
+${PYSITELIB}/mypy/fixup.pyc
+${PYSITELIB}/mypy/fixup.pyo
+${PYSITELIB}/mypy/fscache.py
+${PYSITELIB}/mypy/fscache.pyc
+${PYSITELIB}/mypy/fscache.pyo
+${PYSITELIB}/mypy/fswatcher.py
+${PYSITELIB}/mypy/fswatcher.pyc
+${PYSITELIB}/mypy/fswatcher.pyo
+${PYSITELIB}/mypy/gclogger.py
+${PYSITELIB}/mypy/gclogger.pyc
+${PYSITELIB}/mypy/gclogger.pyo
+${PYSITELIB}/mypy/git.py
+${PYSITELIB}/mypy/git.pyc
+${PYSITELIB}/mypy/git.pyo
+${PYSITELIB}/mypy/indirection.py
+${PYSITELIB}/mypy/indirection.pyc
+${PYSITELIB}/mypy/indirection.pyo
+${PYSITELIB}/mypy/infer.py
+${PYSITELIB}/mypy/infer.pyc
+${PYSITELIB}/mypy/infer.pyo
+${PYSITELIB}/mypy/interpreted_plugin.py
+${PYSITELIB}/mypy/interpreted_plugin.pyc
+${PYSITELIB}/mypy/interpreted_plugin.pyo
+${PYSITELIB}/mypy/join.py
+${PYSITELIB}/mypy/join.pyc
+${PYSITELIB}/mypy/join.pyo
+${PYSITELIB}/mypy/literals.py
+${PYSITELIB}/mypy/literals.pyc
+${PYSITELIB}/mypy/literals.pyo
+${PYSITELIB}/mypy/main.py
+${PYSITELIB}/mypy/main.pyc
+${PYSITELIB}/mypy/main.pyo
+${PYSITELIB}/mypy/maptype.py
+${PYSITELIB}/mypy/maptype.pyc
+${PYSITELIB}/mypy/maptype.pyo
+${PYSITELIB}/mypy/meet.py
+${PYSITELIB}/mypy/meet.pyc
+${PYSITELIB}/mypy/meet.pyo
+${PYSITELIB}/mypy/memprofile.py
+${PYSITELIB}/mypy/memprofile.pyc
+${PYSITELIB}/mypy/memprofile.pyo
+${PYSITELIB}/mypy/messages.py
+${PYSITELIB}/mypy/messages.pyc
+${PYSITELIB}/mypy/messages.pyo
+${PYSITELIB}/mypy/modulefinder.py
+${PYSITELIB}/mypy/modulefinder.pyc
+${PYSITELIB}/mypy/modulefinder.pyo
+${PYSITELIB}/mypy/moduleinfo.py
+${PYSITELIB}/mypy/moduleinfo.pyc
+${PYSITELIB}/mypy/moduleinfo.pyo
+${PYSITELIB}/mypy/mypyc_hacks.py
+${PYSITELIB}/mypy/mypyc_hacks.pyc
+${PYSITELIB}/mypy/mypyc_hacks.pyo
+${PYSITELIB}/mypy/nodes.py
+${PYSITELIB}/mypy/nodes.pyc
+${PYSITELIB}/mypy/nodes.pyo
+${PYSITELIB}/mypy/options.py
+${PYSITELIB}/mypy/options.pyc
+${PYSITELIB}/mypy/options.pyo
+${PYSITELIB}/mypy/parse.py
+${PYSITELIB}/mypy/parse.pyc
+${PYSITELIB}/mypy/parse.pyo
+${PYSITELIB}/mypy/plugin.py
+${PYSITELIB}/mypy/plugin.pyc
+${PYSITELIB}/mypy/plugin.pyo
+${PYSITELIB}/mypy/plugins/__init__.py
+${PYSITELIB}/mypy/plugins/__init__.pyc
+${PYSITELIB}/mypy/plugins/__init__.pyo
+${PYSITELIB}/mypy/plugins/attrs.py
+${PYSITELIB}/mypy/plugins/attrs.pyc
+${PYSITELIB}/mypy/plugins/attrs.pyo
+${PYSITELIB}/mypy/plugins/common.py
+${PYSITELIB}/mypy/plugins/common.pyc
+${PYSITELIB}/mypy/plugins/common.pyo
+${PYSITELIB}/mypy/plugins/dataclasses.py
+${PYSITELIB}/mypy/plugins/dataclasses.pyc
+${PYSITELIB}/mypy/plugins/dataclasses.pyo
+${PYSITELIB}/mypy/report.py
+${PYSITELIB}/mypy/report.pyc
+${PYSITELIB}/mypy/report.pyo
+${PYSITELIB}/mypy/sametypes.py
+${PYSITELIB}/mypy/sametypes.pyc
+${PYSITELIB}/mypy/sametypes.pyo
+${PYSITELIB}/mypy/scope.py
+${PYSITELIB}/mypy/scope.pyc
+${PYSITELIB}/mypy/scope.pyo
+${PYSITELIB}/mypy/semanal.py
+${PYSITELIB}/mypy/semanal.pyc
+${PYSITELIB}/mypy/semanal.pyo
+${PYSITELIB}/mypy/semanal_enum.py
+${PYSITELIB}/mypy/semanal_enum.pyc
+${PYSITELIB}/mypy/semanal_enum.pyo
+${PYSITELIB}/mypy/semanal_namedtuple.py
+${PYSITELIB}/mypy/semanal_namedtuple.pyc
+${PYSITELIB}/mypy/semanal_namedtuple.pyo
+${PYSITELIB}/mypy/semanal_newtype.py
+${PYSITELIB}/mypy/semanal_newtype.pyc
+${PYSITELIB}/mypy/semanal_newtype.pyo
+${PYSITELIB}/mypy/semanal_pass1.py
+${PYSITELIB}/mypy/semanal_pass1.pyc
+${PYSITELIB}/mypy/semanal_pass1.pyo
+${PYSITELIB}/mypy/semanal_pass3.py
+${PYSITELIB}/mypy/semanal_pass3.pyc
+${PYSITELIB}/mypy/semanal_pass3.pyo
+${PYSITELIB}/mypy/semanal_shared.py
+${PYSITELIB}/mypy/semanal_shared.pyc
+${PYSITELIB}/mypy/semanal_shared.pyo
+${PYSITELIB}/mypy/semanal_typeddict.py
+${PYSITELIB}/mypy/semanal_typeddict.pyc
+${PYSITELIB}/mypy/semanal_typeddict.pyo
+${PYSITELIB}/mypy/server/__init__.py
+${PYSITELIB}/mypy/server/__init__.pyc
+${PYSITELIB}/mypy/server/__init__.pyo
+${PYSITELIB}/mypy/server/astdiff.py
+${PYSITELIB}/mypy/server/astdiff.pyc
+${PYSITELIB}/mypy/server/astdiff.pyo
+${PYSITELIB}/mypy/server/astmerge.py
+${PYSITELIB}/mypy/server/astmerge.pyc
+${PYSITELIB}/mypy/server/astmerge.pyo
+${PYSITELIB}/mypy/server/aststrip.py
+${PYSITELIB}/mypy/server/aststrip.pyc
+${PYSITELIB}/mypy/server/aststrip.pyo
+${PYSITELIB}/mypy/server/deps.py
+${PYSITELIB}/mypy/server/deps.pyc
+${PYSITELIB}/mypy/server/deps.pyo
+${PYSITELIB}/mypy/server/mergecheck.py
+${PYSITELIB}/mypy/server/mergecheck.pyc
+${PYSITELIB}/mypy/server/mergecheck.pyo
+${PYSITELIB}/mypy/server/objgraph.py
+${PYSITELIB}/mypy/server/objgraph.pyc
+${PYSITELIB}/mypy/server/objgraph.pyo
+${PYSITELIB}/mypy/server/subexpr.py
+${PYSITELIB}/mypy/server/subexpr.pyc
+${PYSITELIB}/mypy/server/subexpr.pyo
+${PYSITELIB}/mypy/server/target.py
+${PYSITELIB}/mypy/server/target.pyc
+${PYSITELIB}/mypy/server/target.pyo
+${PYSITELIB}/mypy/server/trigger.py
+${PYSITELIB}/mypy/server/trigger.pyc
+${PYSITELIB}/mypy/server/trigger.pyo



Home | Main Index | Thread Index | Old Index