forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michał Górny <[email protected]>
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
DIST mypy-0.790.tar.gz 2082487 BLAKE2B f8efcb701b4b7533306948721968c9a01ab6c6e56ec99fe6c36e35aca50b52f29f518aee2268a628539a372b8024094ef2d4d87da580b4dd667f41133351596e SHA512 be670456bb64cd197bb6a73832b7e0fd6439ae4af128212328a41cd93d9f644a82e79ffb05bf4695e99bd9788244a24916bf765cf30a6f162cf3b471f45c25b8 | ||
DIST mypy-0.800.tar.gz 2119165 BLAKE2B 48ead6c893f7055f4b1c0167f61e07b647a15f3a13688e1a93f11ebfdfe70ec3ccba3678bb5cf0e61af8dacfa64c241e5b79f28af55e8bfc5ce0a81c409deca9 SHA512 e267fa288f9c538e5c1d0a115b353aabbfbbd46a372dbaefbf43abeae1e6b88cc1b3e0bb301881f20e20b4e69eeeff4be22cf330bf58eaad09b4ea152ab02c12 | ||
DIST mypy-typeshed-5be9c91.tar.gz 583006 BLAKE2B 08ab2b6d479ccc66493524482051e825c65c0a94ea5cac8e56a8ea1dca85eda6104e4ed3188b7d5ce1ea99058019d66a21a7e270e3ad9df694be67ea1e6a7ce9 SHA512 2912bcf66e0f550941eb9c1f34979644857448a4bec478cfc0d662e9a401ade93ccfb2f57b5348504b4d6f0f23e576da609167f1ec3a0861414fc9c7dea80243 | ||
DIST typeshed-8cad322a8ccf4b104cafbac2c798413edaa4f327.tar.gz 600618 BLAKE2B acc4397fba21db1bcc7b3ca0922fb561d19161579062e1ee506cadfbbb1de952e36fab6ce552bdca932757274c882a90a948e9dfc257905d7f2e90de9f22bf55 SHA512 728808a568074310bd700a6fe3d667ced01a36f4a6ed2fa6df9d7a784e3167e2c96f7b91dcca1f99d50e325165f3ddea6bbafeab2469a9105c1cb217f16beded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright 1999-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
PYTHON_COMPAT=( python3_{7..9} ) | ||
DISTUTILS_USE_SETUPTOOLS=rdepend | ||
|
||
inherit distutils-r1 | ||
|
||
DESCRIPTION="Optional static typing for Python" | ||
HOMEPAGE="http://www.mypy-lang.org/" | ||
# One module is missing from the PyPI tarball | ||
# https://github.com/python/mypy/pull/9587 | ||
# conftest.py is missing at the moment | ||
# https://github.com/python/mypy/pull/9543 | ||
TYPESHED_COMMIT="8cad322a8ccf4b104cafbac2c798413edaa4f327" | ||
SRC_URI=" | ||
https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz | ||
https://github.com/python/typeshed/archive/${TYPESHED_COMMIT}.tar.gz | ||
-> typeshed-${TYPESHED_COMMIT}.tar.gz | ||
" | ||
|
||
LICENSE="MIT" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" | ||
|
||
# stubgen collides with this package: https://bugs.gentoo.org/585594 | ||
RDEPEND=" | ||
!dev-util/stubgen | ||
>=dev-python/psutil-4[${PYTHON_USEDEP}] | ||
>=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] | ||
<dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}] | ||
>=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] | ||
>=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] | ||
<dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}] | ||
" | ||
BDEPEND=" | ||
test? ( | ||
>=dev-python/attrs-18.0[${PYTHON_USEDEP}] | ||
>=dev-python/lxml-4.4.0[${PYTHON_USEDEP}] | ||
>=dev-python/pytest-6.1.0[${PYTHON_USEDEP}] | ||
>=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}] | ||
>=dev-python/py-1.5.2[${PYTHON_USEDEP}] | ||
>=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}] | ||
) | ||
" | ||
|
||
distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme | ||
distutils_enable_tests pytest | ||
|
||
src_unpack() { | ||
default | ||
rmdir "${S}/mypy/typeshed" || die | ||
mv "${WORKDIR}/typeshed-${TYPESHED_COMMIT}" "${S}/mypy/typeshed" || die | ||
} | ||
|
||
python_test() { | ||
# Some mypy/test/testcmdline.py::PythonCmdlineSuite tests | ||
# fail with high COLUMNS values | ||
local -x COLUMNS=80 | ||
pytest -vv -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || | ||
die "Tests failed with ${EPYTHON}" | ||
} |