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

This commit is contained in:
Andreas Billmeier 2022-10-16 10:28:01 +02:00 committed by Andreas Billmeier
parent 6991115fe6
commit 2bb0e6aaa5
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 19 additions and 44 deletions

View File

@ -32,6 +32,14 @@ Currently some help on the nodejs Ebuilds would be very welcome:
* zigbee2mqtt
* zwave-js-server (W.I.P, see https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/269)
## 2022-10: reworked all Ebuilds, same KEYWORDS on all Ebuilds
Overdue for long, went through all Ebuilds, removed unused and old versions. All Ebuilds now have default tests turned on, and got Python 3.11 compatibility assigned. Some could not be tested yet on 3.11 (missing external dependencies). Ebuilds now are maintained with `pkgdev` instead of `repoman` and are check against `pkgcheck` before release. For easier compilations tests and maintainance, all Ebuilds will get
```
KEYWORDS="amd64 arm arm64 x86"
```
no matter of the platform they are designed to run on, e.g. on a Raspberry Pi. Please choose your modules wisely :-)
I will keep the best last two major versions of all three main Ebuilds and 2-3 versions of the current, when other Ebuilds are touched, unreferenced versions will be removed.
## 2022-07: file collisions with pysnmp
With 2022.7.0, Home Assistant and some components started again using `pysnmplib`, this causes file collisions with `pysnmp`, which is referred by many packages from Gentoo. `pysnmp` uses the same namespace as `pysnmplib`, and should be compatible. To avoid the collisions, add the following packages
```
@ -538,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 1606 Ebuilds in total, 1599 of them have in total 1611 (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|
|-------|-----|
@ -551,7 +559,7 @@ There are 1606 Ebuilds in total, 1599 of them have in total 1611 (34 different)
|all-rights-reserved|14|
|BSD-2|13|
|GPL-3+|13|
|LGPL-3+|13|
|LGPL-3+|12|
|LGPL-2.1|6|
|Unlicense|5|
|LGPL-2.1+|4|

View File

@ -1,5 +1,3 @@
DIST libpyfoscam-1.0.tar.gz 21421 BLAKE2B aa0171e7e8e7efc9595367523dd4d4f801d858278543a7206ae6e27409afd8e62365ef2d15db7d38e3f61077032dc20c235c025b79377ebf74be3b523e98c2ac SHA512 2813c3f134bbf3cb0ffc18abcbf847b3652ad04cb59c07051b91131f11ef2ac025eebc8cbb398c0f5d542307f309599a5a5a85a6699c5ee31829adf4af874be9
DIST libpyfoscam-1.1.tar.gz 7971 BLAKE2B b7add94c8a2bfae688e5eaa4107d878ea9c0e585c9cf0e442fb060bae140a4cbef6b90acf91de1273ccf7d213f5421b74abdab5627ca4a8e5f63cbfcf483a16c SHA512 8c8c8bccb235f921827d4accccb0e7d805a9f2bba5805019188e3a8416dc5d45b45473015d95f4b2acc10d07bb61b867bd90c4f3dcefcc371bcf6f68e29e3565
EBUILD libpyfoscam-1.0.ebuild 804 BLAKE2B 6094b68efb1438fc81ed4ed1aaae24152a8f4d42a7fa519faf12c40d4eea003b0cc400c9a97f29bee2ce365145782a8ba65faf81f51f85bd6275d5b147e8fe73 SHA512 3cfb463c2f1976ec47b617ad521264fe8264a38c094009c29b56d873dab3a96a158c5f43706218305dd3d87cd25f72d8fb8abcc7d8248b165f53d0f2d12cd3fe
EBUILD libpyfoscam-1.1.ebuild 712 BLAKE2B 39003a86f095e9202182316d0072442a67509283b9c07d29d7c8a16eccb314df00f79b979895ee11ef7179e86dc406ec039ae3cf89fd7d977c0b823243ad4505 SHA512 95e134720253a03dee3119b20a71f83e4c8db911ea1cd391d5c3e8f7fd6a79ec1e0d9edbcbbc5713fe66ba6aa9871883d2a1e1c2da4cfcb6fbf47d3eab4c5dea
DIST libpyfoscam-1.0.gh.tar.gz 21421 BLAKE2B aa0171e7e8e7efc9595367523dd4d4f801d858278543a7206ae6e27409afd8e62365ef2d15db7d38e3f61077032dc20c235c025b79377ebf74be3b523e98c2ac SHA512 2813c3f134bbf3cb0ffc18abcbf847b3652ad04cb59c07051b91131f11ef2ac025eebc8cbb398c0f5d542307f309599a5a5a85a6699c5ee31829adf4af874be9
EBUILD libpyfoscam-1.0.ebuild 762 BLAKE2B c719e4e87fb4ef9b9e6bf52878d4bd943ecc11984459f3443df8556b1a1daa82d1b7efd1c117db2bccca1a977cd1d91e75c56824649a253e828893ab2cf458ef SHA512 0ed0289f100bf4247835cb6df17d9c1f271e26554a887f11a0274a471b945219841f87bb8721624e761ddb6fc59e94d9e7caf5874e806e6c5215fae6088c7523
MISC metadata.xml 458 BLAKE2B e425a12d814c1b1f84660a4b3ab3a3d38076c8d31751dddcb094cb450058275f3f46d960f53ed82d3c1dbe171e8721ea0706f985e1981bd9b081a2c929110eac SHA512 2b586113d829fec67c71e70c856ffa555108c34c78c42605bdf26a12724d86d0ff8fb5f65dacb4f20c688c6d872c092d107e72f47aa459c0c726f910526733ed

View File

@ -1,24 +1,24 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
EAPI=8
PYTHON_COMPAT=( python3_{8..9} )
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
DESCRIPTION="Python Library for Foscam IP Cameras"
HOMEPAGE="https://github.com/viswa-swami/python-foscam https://pypi.org/project/libpyfoscam/"
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
SRC_URI="https://github.com/viswa-swami/python-foscam/archive/${PV}.tar.gz -> ${P}.tar.gz"
MY_PN="python-foscam"
SRC_URI="https://github.com/viswa-swami/${MY_PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND=""
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (

View File

@ -1,31 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1
DESCRIPTION="Python Library for Foscam IP Cameras"
HOMEPAGE="https://github.com/viswa-swami/python-foscam https://pypi.org/project/libpyfoscam/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RESTRICT="!test? ( test )"
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
}