pytest-benchmark: pkgcheck fixes

This commit is contained in:
Rick Farina (Zero_Chaos) 2024-04-03 13:21:15 -04:00
parent bcac1b32cf
commit bd5eb5e5f3
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 20 additions and 7 deletions

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>noone@pentoo.org</email>
<name>No One</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">pytest-benchmark</remote-id>
<remote-id type="github">ionelmc/pytest-benchmark</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1,15 +1,15 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 optfeature
PYPI_NO_NORMALIZE=1
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 optfeature pypi
DESCRIPTION="py.test fixture for benchmarking code"
HOMEPAGE="https://github.com/ionelmc/pytest-benchmark"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
@ -19,14 +19,14 @@ RESTRICT="test" # fails
RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]
dev-python/py-cpuinfo[${PYTHON_USEDEP}]"
BDEPEND="test? ( dev-python/aspectlib[${PYTHON_USEDEP}]
dev-python/elasticsearch-py[${PYTHON_USEDEP}]
dev-python/elasticsearch[${PYTHON_USEDEP}]
dev-python/pygal[${PYTHON_USEDEP}]
dev-python/pygal[${PYTHON_USEDEP}] )"
distutils_enable_tests pytest
pkg_postinst() {
optfeature "integration with Elasticsearch" dev-python/elasticsearch-py
optfeature "integration with Elasticsearch" dev-python/elasticsearch
optfeature "support of histogram" dev-python/pygal dev-python/pygaljs
optfeature "support of aspect" dev-python/aspectlib
}