hasufell-repository/packages/dev-python/mypy/mypy-0.782.exheres-0

53 lines
1.8 KiB
Bash
Raw Permalink Normal View History

2017-11-25 15:43:07 +00:00
# Copyright 2017 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
require github [ user="python" ]
require pypi
require setup-py [ import=setuptools blacklist=2 ]
SUMMARY="Optional static typing for Python"
DESCRIPTION="
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.
"
HOMEPAGE="http://www.mypy-lang.org ${HOMEPAGE}"
LICENCES="MIT"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS=""
DEPENDENCIES="
build+run:
2019-08-03 23:20:33 +00:00
dev-python/typed-ast[>=1.4.0&<1.5.0][python_abis:*(-)?]
2020-09-13 19:54:51 +00:00
dev-python/mypy_extensions[>=0.4.3&<0.5.0][python_abis:*(-)?]
dev-python/typing-extensions[>=3.7.4][python_abis:*(-)?]
2018-06-10 21:42:56 +00:00
test:
2019-08-03 23:20:33 +00:00
dev-python/attrs[>=18.0][python_abis:*(-)?]
dev-python/flake8[>=3.7][python_abis:*(-)?]
dev-python/lxml[>=4.2.4][python_abis:*(-)?]
dev-python/psutil[>=4.0][python_abis:*(-)?]
2018-06-10 21:42:56 +00:00
dev-python/py[>=1.5.2][python_abis:*(-)?]
2019-08-03 23:20:33 +00:00
dev-python/pytest[>=4.4][python_abis:*(-)?]
2018-06-10 21:42:56 +00:00
dev-python/pytest-cov[>=2.4.0][python_abis:*(-)?]
2019-08-03 23:20:33 +00:00
dev-python/pytest-xdist[>=1.22][python_abis:*(-)?]
2018-08-19 13:01:00 +00:00
dev-python/virtualenv[python_abis:*(-)?]
2018-06-10 21:42:56 +00:00
suggestion:
2019-08-03 23:20:33 +00:00
dev-python/psutil[>=4.0][python_abis:*(-)?] [[
2018-06-10 21:42:56 +00:00
description = [ Show memory stats in 'dmypy status -v' ] ]]
2017-11-25 15:43:07 +00:00
"
BUGS_TO="hasufell@posteo.de"
2019-08-03 23:20:33 +00:00
# Require unpackaged: flake8-bugbear, flake8-pyi, pytest 4.4+
2018-06-10 21:42:56 +00:00
RESTRICT="test"
test_one_multibuild() {
PYTHONPATH="${PWD}" edo ${PYTHON} -B runtests.py -x lint
}