dev-python/openwrt-luci-rpc: remove olds, cleanup, enable pytest

This commit is contained in:
Andreas Billmeier 2022-10-16 14:44:24 +02:00 committed by Andreas Billmeier
parent 080084080d
commit e232e5ed2a
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 8 additions and 43 deletions

View File

@ -547,12 +547,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
## Licenses
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
There are 1583 Ebuilds in total, 1576 of them have in total 1588 (34 different) licenses assigned.
There are 1582 Ebuilds in total, 1575 of them have in total 1587 (34 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
|MIT|938|
|Apache-2.0|312|
|Apache-2.0|311|
|GPL-3|95|
|BSD|90|
|LGPL-3|26|

View File

@ -1,5 +1,3 @@
DIST openwrt-luci-rpc-1.1.11.tar.gz 16711 BLAKE2B ff789b512e9f0f010aa4b24d884567ad2ea276c193b8eba71433afd1100b88e4a5d0c73a35f8ca545c7c0051e36bac693d4fe6679e97c4fff0278258685b1632 SHA512 83b79a3acfe8589d6f10d87c20d34799a6d3bc8ca1586213f9dde6d39b0a2fccb584d1c038d73d12e6ceb0e2edc37d4fe96d1a773d0e86203e37f507f28727f4
DIST openwrt-luci-rpc-1.1.8.tar.gz 16481 BLAKE2B 5810cb6e983755876ddd1ce0329d5f86bcf7a786bdbff1eb498af56bc4ae31cbf98d0eac91c25815464dd544458f86ad571752b607ef9901b06e78966462baec SHA512 7a9523da17f201c3c1e958ba7ab455d0874c01d2b20693060e8204bdf3bb7dc95bfc9b1472c1f4265c9db0413c38f28c02f0e5a4687f83aa74cd54f8f542ccba
EBUILD openwrt-luci-rpc-1.1.11.ebuild 889 BLAKE2B 1b173f8bb0f022aff7e781c951efb5cd8ec6c02c14594a65005703b617870726c3ba8c5b22290777aaddee09615be0c59826cd38b3215de824c66d95df518dbf SHA512 1aa2f0219d72474128b563a327ecdaa754b429b3938c198090b277e6c649464a64e1f4428a4ad7154c65ffd1f2736a26574baece0e15b57203c015df8e799358
EBUILD openwrt-luci-rpc-1.1.8.ebuild 895 BLAKE2B 388ae3e23cbb8738ac3dec90eeafd18198099c8be195029a5192a9d36de17c241eb7c8ec30d8c28a40fbaadb7935b43e640d02d5a545bf2fb6dc8dc18cb5f956 SHA512 e634bb82b44566e9c279640a557cb880bc468dd258b1fab6552209b508c8d96d2899008fad483fcd44be8161c25ea43fb7522437343d1553f430204f751a48ae
EBUILD openwrt-luci-rpc-1.1.11.ebuild 896 BLAKE2B 66ebaa82bbe11f211be94190429def9be9929792a2239cee220fd0f5297e3e92507092c2345683e8923f1c4b3506c3b06f2dc23dbbef55866065f3dfc9956b49 SHA512 eb470b3b5abb5e3f334b27c42422d94fdc4483e5e42076ebc52a96a0b9d912f76c0ccdc3be0e18154799088dcc44747cdeeade81fa4ff26855da584fa4767b9e
MISC metadata.xml 461 BLAKE2B 987fcd68b863a8cd15923deb45616ccf3d7415a03fbd24131d65eecbae52825d07a2661ed87e3a250898a521a40a62fca39d48d63a19cb80980f30c08b54f889 SHA512 21daf47c64c73a39c589e199da793be47e84e0f2a81157a4fbe32b9b2835da464ebaefcf7b8fe75a8faa7468e4d20fedb63790526105743e2c168e61d1f2c619

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=8
PYTHON_COMPAT=( python3_{8..10} )
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86 ~amd64-linux ~x86-linux"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
@ -33,3 +33,5 @@ python_test() {
nosetests --verbose || die
py.test -v -v || die
}
distutils_enable_tests pytest

View File

@ -1,35 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Module for interacting with OpenWrt Luci RPC interface"
HOMEPAGE="https://github.com/fbradyirl/openwrt-luci-rpc https://pypi.org/project/openwrt-luci-rpc/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS="README.rst"
RDEPEND=">=dev-python/requests-2.21.0[${PYTHON_USEDEP}]
>=dev-python/packaging-19.1[${PYTHON_USEDEP}]
>dev-python/click-6.0.0[${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
}