mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/typing: Remove redundant versions
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,3 +1 @@
|
||||
DIST typing-3.7.4.1.tar.gz 77982 BLAKE2B e770b1c028142a70799732159b295d3bd5c4911619fd5f200567f8b27813d86de643e9b79aa45fba8590c1e2a6c96c1411dabd0707190a237a79f6f11851e1e0 SHA512 5f5080bf66b1de094b7984ed3d1de22651de8ca018ffde927dfa67fe65b13f91602a877faa24e73d44558638b609be276b924b894d63999bb93b0657a2d5ec6e
|
||||
DIST typing-3.7.4.2.tar.gz 78588 BLAKE2B 0e5174d3bee9315cf011f461c7baaaa4cc2bbd7b27d9148bb17df1c2160e4e79298761b75381b8871395acd2be4490f2ad2bfbae55c69708e94c73a48de6cc6a SHA512 69c172efcfd9a284528007dc0c7df290aed8317d2225c1200eba35138ff1d55503d6c6aa70b4b246b45ac5fbeca82f48efa784cc095a3b0dacefd481fa0b0266
|
||||
DIST typing-3.7.4.3.tar.gz 78592 BLAKE2B a47991466db75729620e180d230917cb32158475804b294d2ca956544c575323765bb9d2fd87e723fb8a6c79db4c0c83387fc45fe31f8c55a802bcebe793b997 SHA512 01d3d33bf3264a8929242d58ffa3b6a897a9ce23cb84858871146ed516a6ef2fc222d3001bb5197276da1a374ae243f0ceab0325ae8675ef0ffb76df5065ae1e
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Type Hints for Python"
|
||||
HOMEPAGE="https://docs.python.org/3/library/typing.html https://pypi.org/project/typing/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~x64-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# broken on PyPy, unclear if CPython behavior is not a bug
|
||||
# https://github.com/python/typing/issues/671
|
||||
sed -i -e 's:test_new_no_args:_&:' python2/test_typing.py || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
if python_is_python3; then
|
||||
cd "${S}"/src || die
|
||||
else
|
||||
cd "${S}"/python2 || die
|
||||
fi
|
||||
|
||||
"${EPYTHON}" test_typing.py -v || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Type Hints for Python"
|
||||
HOMEPAGE="https://docs.python.org/3/library/typing.html https://pypi.org/project/typing/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# broken on PyPy, unclear if CPython behavior is not a bug
|
||||
# https://github.com/python/typing/issues/671
|
||||
sed -i -e 's:test_new_no_args:_&:' python2/test_typing.py || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
if python_is_python3; then
|
||||
cd "${S}"/src || die
|
||||
else
|
||||
cd "${S}"/python2 || die
|
||||
fi
|
||||
|
||||
"${EPYTHON}" test_typing.py -v || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
Reference in New Issue
Block a user