diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
commit | 8d5dbd847cbc704a6a06405856e94b461011afe3 (patch) | |
tree | 4d26462d027b14926335894749d2e01d982234d0 /dev-python/mypy/mypy-0.790.ebuild | |
parent | 5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 (diff) |
gentoo resync : 27.03.2021
Diffstat (limited to 'dev-python/mypy/mypy-0.790.ebuild')
-rw-r--r-- | dev-python/mypy/mypy-0.790.ebuild | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/dev-python/mypy/mypy-0.790.ebuild b/dev-python/mypy/mypy-0.790.ebuild deleted file mode 100644 index 35743fc52044..000000000000 --- a/dev-python/mypy/mypy-0.790.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2020 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="5be9c91" -SRC_URI=" - https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://api.github.com/repos/python/typeshed/tarball/${TYPESHED_COMMIT} -> mypy-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.0.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}] - ) -" - -PATCHES=( - # https://github.com/python/mypy/commit/13ae58ffe8bedb7da9f4c657297f0d61e681d671 - # https://github.com/python/mypy/commit/ab1bd98cc8a6415398121a47c687ede6f4cca4fd - # https://github.com/python/mypy/commit/ffed88fb95fcbfdd1363f0f719bd3e13f8fe20e9 - "${FILESDIR}/${P}-py39-fixes.patch" -) - -distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme -distutils_enable_tests pytest - -src_unpack() { - unpack ${A} - rmdir "${S}/mypy/typeshed" || die - mv "${WORKDIR}/python-typeshed-${TYPESHED_COMMIT}" "${S}/mypy/typeshed" -} - -python_prepare_all() { - # https://github.com/python/mypy/commit/2f291f2e312dd3bf2c05c45da0b032b240bfd7ab - # Avoid a big patch by deleting the file manually - rm test-data/samples/crawl.py || die - distutils-r1_python_prepare_all -} - -python_test() { - # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests - # fail with high COLUMNS values - local -x COLUMNS=80 - pytest -vv || die "Tests fail with ${EPYTHON}" -} |