dev-python/miflora: Revbump for PEP517 and other QA

Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
This commit is contained in:
Nils Freydank 2022-11-22 22:38:13 +01:00
parent aac40ecfc0
commit a9978ce848
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112
2 changed files with 5 additions and 10 deletions

View File

@ -6,6 +6,7 @@
<name>Nils Freydank</name> <name>Nils Freydank</name>
</maintainer> </maintainer>
<upstream> <upstream>
<remote-id type="pypi">miflora</remote-id>
<remote-id type="github">basnijholt/miflora</remote-id> <remote-id type="github">basnijholt/miflora</remote-id>
</upstream> </upstream>
</pkgmetadata> </pkgmetadata>

View File

@ -3,8 +3,8 @@
EAPI="8" EAPI="8"
PYTHON_COMPAT=( python3_10 ) DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 inherit distutils-r1
DESCRIPTION="Library to read data from Mi Flora sensor" DESCRIPTION="Library to read data from Mi Flora sensor"
@ -26,10 +26,6 @@ RDEPEND="
BDEPEND=" BDEPEND="
${REDEPEND} ${REDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)
" "
src_prepare() { src_prepare() {
@ -37,7 +33,5 @@ src_prepare() {
default default
} }
python_test() { distutils_enable_tests nose
nosetests --verbose || die distutils_enable_tests pytest
py.test -v -v || die
}