dev-python/libusb1: remove olds, cleanup, enable pytest

This commit is contained in:
Andreas Billmeier 2022-10-16 10:42:20 +02:00 committed by Andreas Billmeier
parent fb07676fea
commit f166a044ee
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 44 additions and 5 deletions

View File

@ -546,7 +546,7 @@ 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 1604 Ebuilds in total, 1597 of them have in total 1609 (34 different) licenses assigned.
There are 1605 Ebuilds in total, 1598 of them have in total 1610 (34 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
@ -562,7 +562,7 @@ There are 1604 Ebuilds in total, 1597 of them have in total 1609 (34 different)
|LGPL-3+|12|
|LGPL-2.1|6|
|Unlicense|5|
|LGPL-2.1+|4|
|LGPL-2.1+|5|
|public-domain|4|
|EPL-1.0|4|
|MPL-2.0|3|

View File

@ -1,3 +1,5 @@
DIST libusb1-2.0.1.tar.gz 82619 BLAKE2B 53b5302b0b2a6907b62493f56a041add928a20950542bf8034ada4240b65c51fd187aff3a97393d2cde64b4a7756a0aeebec449a62b25b5b7c82f4afe815c5a5 SHA512 d675ff9e0b89f53341182e69d62573a6494826abdfbcb56a3fe2de232920375ddcd37da1ee802a2315ef695418ce202a3c84b8ec4c7ed24799ed5aee37eaf242
EBUILD libusb1-2.0.1.ebuild 726 BLAKE2B 36c1dc5ad1e1f421e6af387b4b13ce1d3c4c17ae1ae627d3a46440e8e5533c07d2d1e3ffb4fe365be268cf4a31f303aa04b0a28340718114a32eaa21c003d571 SHA512 6199805a4a3b6a5d21aa72491dc9194d1232974f9e9810cc7513326929277441b88e83ed8b2e36ea7eca2111418f58f7fb361312316c310e9431a3aed22430b8
DIST libusb1-3.0.0.tar.gz 82499 BLAKE2B 6595bd9c5803b92c52732971a634ef306c04499e175d958f14f5be09c86f33cbf968cbd93883b70b93719ea11fa89fe90f97dc088da6d64ae25866af77ceb959 SHA512 3e1726e80a5c60a9081410a0da8603b89a15da37c0e8702b7ef846e58c86529568d6cb6d762bc6a10a8aa6f24f51fd1043f80433e93b6a7434731882e7888da8
EBUILD libusb1-2.0.1.ebuild 729 BLAKE2B 9e841a30b10dfa6b55b168dd54810cb2216ec04c88837d78747e133aa7386a0f9af48693dddd9c945daff3143ace03ff358a004581c01094f28a34b237dd20c9 SHA512 486c7c369155c6805dd40895501445e62937294a683c7ac480e7a75d97c7b91cd570969ee478c6526dbdc1bea64db29e073768581676f57982f8df8530757cc6
EBUILD libusb1-3.0.0.ebuild 731 BLAKE2B 688e09f9904f93d71bd26794720f8b04df16f4098a44f923a31f2a0730a4f06e32d26ab99c83dac9c9302f6971850865eea7499365ac5cfd5e8564dbc9194b09 SHA512 fd292363f48c7ec136d1005cd32bd4869327572f738957f8fcaa220dcff7b659d85d52905bd3de48bb69e66465a9c7be6ab100a140a543c9d277330a8fd8e756
MISC metadata.xml 458 BLAKE2B 134ce827b5667b3a2e1ab99558a0cbcd485b42777a33fd1be83f746ceb22591d8fb47494a8bd1cbd5d700444074659670da646ddd6510689fe8e8ed67c93d088 SHA512 87622b1978b99ab57f86c9cfe751b7accd9694e336a37e9df8c62d62025459fe0a0706c8127ae939017826ec1e825b5eb82b02d42933a981def64cc3135bf7df

View File

@ -3,7 +3,7 @@
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="LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
@ -31,3 +31,5 @@ python_test() {
nosetests --verbose || die
py.test -v -v || die
}
distutils_enable_tests pytest

View File

@ -0,0 +1,35 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
DESCRIPTION="Pure-python wrapper for libusb-1.0"
HOMEPAGE="https://github.com/vpelletier/python-libusb1 https://pypi.org/project/libusb1/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS="README.rst"
RDEPEND=""
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 unittest