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

This commit is contained in:
2022-10-17 06:18:19 +02:00
committed by Andreas Billmeier
parent 7a1dd10dfb
commit 8a72e9869b
4 changed files with 9 additions and 45 deletions

View File

@@ -547,13 +547,13 @@ 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 1540 Ebuilds in total, 1533 of them have in total 1545 (34 different) licenses assigned.
There are 1539 Ebuilds in total, 1532 of them have in total 1544 (34 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
|MIT|904|
|Apache-2.0|308|
|GPL-3|94|
|GPL-3|93|
|BSD|89|
|LGPL-3|26|
|GPL-2|19|
@@ -586,9 +586,9 @@ There are 1540 Ebuilds in total, 1533 of them have in total 1545 (34 different)
|CC-BY-NC-SA-4.0|1|
|CC0-1.0|1|
(Last counted: 16/10/2022)
(Last counted: 17/10/2022)
I did my best to keep these clean. If a valid license was published on PyPI, it has been automatically merged. Otherwise I took it from GitHub or alternatively from comments/files in the source. Sometimes these differed and have been not unique. All license strings are adjusted to the list in `/usr/portage/gentoo/licenses/`. Some packages do not have any license published. In this case, Authors have been asked for clarification, some did not respond. Following the [official Gentoo Guide](https://devmanual.gentoo.org/general-concepts/licenses/index.html), these then were added with an `all-rights-reserved` license and `RESTRICT="mirror"` was set. Find the appropriate licenses referenced in the Ebuild files and in the corresponding homepages or sources.
A big thanks goes to Iris for reviewing this README.
Last updated: 16/10/2022
Last updated: 17/10/2022

View File

@@ -1,5 +1,3 @@
DIST pynuki-1.4.1.tar.gz 6227 BLAKE2B c92eff2a24c78b24c2ae31bc48ba98e4688ad78d199347ce5bff19a6c18bafa1bf4f478df66e63100799d1ed0ca5c50b81262148923ff211effe617874cebb06 SHA512 5087fbad5e9f9b4e9cee2269c73ba34e6c108c5e54750f7fbe36191795d1978c622d14ee24d2bdc42783b57f80dd0355e7fefd1cd18e7bf32a372abae31f72e1
DIST pynuki-1.5.2.tar.gz 18656 BLAKE2B 190e3066e9501e5a17a67e34618a65d58dfddefdc2f7a08ae16a0ba98a5d26d609213eb081e092032f176afe49aefeb8a9624f0c6cf84b53e58b01927733fb91 SHA512 968d287110dcb001e855587f7aaf8facb5ffd0c42cded164ef12c9258ea97bc34d058122a47812107f304209ad7d16962c7f25a0886ab937d70f38498c7ba531
EBUILD pynuki-1.4.1.ebuild 823 BLAKE2B ef71bfc313b4c02cc78df20faffc1c647860ff5467aa4915e5d2ed239efeeeaa5b968eeeb592ba2bac9fc0d47bd538cded3ca809438ff59c31d3557b39421ea9 SHA512 1d7c60f13fc59208cecc7275c85d0c4ad996c1412bab53f26575023d042b738b1bcfd96d772e94f730e5bdbf8cc6b017683c53de05fe857add0cceccbd2f2d1b
EBUILD pynuki-1.5.2.ebuild 819 BLAKE2B c90584125176e8e699438a4804c6308ea3fa912f99b2b6a783da19d94a55841b440d14a7c4204976779e42455c357d5f2aa6f4f8bc4b48e6e15ee04bff775782 SHA512 03dda42e79f4623a8bd6759a062c8edd298057c0519b4b21f7524bcfe53e57cffaf63451345f442ce1256a0c167dbc8a5bd1fd962966cd6230957d2b57058381
EBUILD pynuki-1.5.2.ebuild 826 BLAKE2B 4e4e78a1d7e8bd2afdae8043cc735634048090542ccec0c6c7cfb69c2ddb9308a2475e3a137e4be015339295bd8e0dc9e5bdd3d4139a85fdb25e1620c81776e6 SHA512 9d89713f17ad1e0c7e8f162ca10826228fa49a586d24f77260301c9d417c2e3f3f30195f02f083f7fa2de920e2e7a48bd67936d6e7ac7777d29e926572ff5875
MISC metadata.xml 452 BLAKE2B 839add7ac7c0626c032e7ccd2b8e1ef12d5dc09a940fcf3e69d0607ebea4791fb41c5275b3b81f67c3f4ef06e675ae47f03eca4ba779b1bf1577745f1ff51fcd SHA512 4516e55da982ab4bf559aa6e855088379d0fe4cb91cf81f2faa55aefbc1e792faed47835d635cb0aee6714276d503316557875df1c44f70a076a574578794eaa

View File

@@ -1,36 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Python bindings for nuki.io bridges"
HOMEPAGE="https://github.com/pschmitt/pynuki https://pypi.org/project/pynuki/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS="README.md"
# requirements.txt is not read at all
RDEPEND="dev-python/requests[${PYTHON_USEDEP}]
dev-python/click[${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
}

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