dev-python/xbox-webapi: remove olds, cleanup, enable pytest

This commit is contained in:
2022-10-18 01:46:30 +02:00
committed by Andreas Billmeier
parent c312a01e03
commit 124b66e773
2 changed files with 12 additions and 7 deletions

View File

@@ -1,3 +1,3 @@
DIST xbox-webapi-2.0.11.tar.gz 298991 BLAKE2B fa61cc0c4e36c95ee156da5d7fdc9239733c6c3e7e125675043d7c0e310bce8d58ae2b9774f8e2bdbeb5c1b82ad81ecae0c72a17a993c7a14f721d8ad99a8074 SHA512 3332aed3cc044781f41efdbd41e8b7160d52fa707928adeb9666807122dfbedc1168baea72a47f0cbcbe53995467d370da3656942182c702a746d4c3904614cd
EBUILD xbox-webapi-2.0.11.ebuild 948 BLAKE2B b92ed64287295aa67cc7fc957c21a392365e65022a59f4c190d5c713601e56a39c2ae8ff67c396fc911e335c6e3f046e6b525774b42da5d5fb98c87a5323b8db SHA512 2706612e38c69dbc750f48f321e69d5b91b252fb831dc95c3354415a37552ee2fd311cef46fa7bae76481d37471fa32f905e5d33ce8ed2267b5266b555791e63
EBUILD xbox-webapi-2.0.11.ebuild 988 BLAKE2B 1847776dabe74e002093b6714ff176838636562ce1e66c6ff0f7a2047512ecabf9a7cf2a27f200ae019e7c7ae2b540831626c8866aa0c8b93d3171ac6b9b5ac1 SHA512 ae00ea2446280842ad6c83821e925792c20519fd134b70cee586bb8f5f434595cf1fc62aeb987f99605a50efed976fc1b0dc8cc5bc3ab033904edc30d4b440e3
MISC metadata.xml 330 BLAKE2B 680fd6a35843f55e103d03b0cf8064360f2e95391b32a3b1c6ee6b663db238938ce9627ee23582ac1529821a2bf2feb62c63aa796536fb3fa04bbabc82383187 SHA512 38ad19361e649f7e6d3bf5922712eccce0cb86990269f76bff9c28aa9f89482e06ee118733591801a1f41df768e99fc017ffb34565910876a5e75925197142c1

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
EAPI=8
PYTHON_COMPAT=( python3_{7..9} )
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
@@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
@@ -27,11 +27,16 @@ RDEPEND="dev-python/aiohttp[${PYTHON_USEDEP}]
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
nosetests --verbose || die
py.test -v -v || die
}
distutils_enable_tests pytest
python_install_all() {
distutils-r1_python_install_all
find "${ED}" -name '*.pth' -delete || die
}