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

This commit is contained in:
Andreas Billmeier 2022-10-18 00:03:43 +02:00 committed by Andreas Billmeier
parent 64c99570bf
commit 43c175491b
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 7 additions and 41 deletions

View File

@ -547,11 +547,11 @@ 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 1481 Ebuilds in total, 1474 of them have in total 1484 (34 different) licenses assigned.
There are 1480 Ebuilds in total, 1473 of them have in total 1483 (34 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
|MIT|863|
|MIT|862|
|Apache-2.0|301|
|GPL-3|91|
|BSD|89|

View File

@ -1,5 +1,3 @@
DIST srpenergy-1.3.2.tar.gz 9362 BLAKE2B 08dea05d894d61c1cfec1367c02eecf095c7419ea1c46e2c008ff5251fea25a22ec8f9c51d6d83b4e709262e25075743933a7ba78e5116c54cb3ca1ac5d6f764 SHA512 71374bb7636513c04cab3ca8cdd0a1d3d1f5380b07c5648f490128c6682d544775b541d9d16fa4fa2549f94fe4f30b49370dc54fb80b150eafc5be985d349a1c
DIST srpenergy-1.3.6.tar.gz 11733 BLAKE2B 3045b34d0a049575e6ab7b45cd01b8c5fb4b46fc5c1d6e3f778c5662c456e3ad20cae75bd7f92081c360398d3f52f887f0242e412d7103cdd4f7fe4d551815af SHA512 24e4e2959b9255b96b34f73a67749bce1b531fd00cf36f67eebf4120f220aea0d4da59088dcf6038061238c4066c3bed6f1e8219c7e058142699c4bfb5fac967
EBUILD srpenergy-1.3.2-r1.ebuild 849 BLAKE2B 7513fff5ed7db16773b25980d59717afc3794e834201fe84e90bb7905d488bf20b8f5eb50cdbe5748c0a427271660d55a9cb645cb17cf9ff6515e10d056f328e SHA512 02e9fc901419566abee5254f1178a113969ea470326956a3dd12e45719e8f3e3cdfa35c9df862f2232e0eabbbc49961cc14068e4e4b4f0c729b7670ddaa65a90
EBUILD srpenergy-1.3.6.ebuild 868 BLAKE2B 84d2733026b99a8298cba70f1114c6954fe00e2152bf1acaf52cc4409a39e4d8f45c3e1b12d0fd3d175f80838256b1f2f54682d7c335abc37ed54948873b4d77 SHA512 6aceac766d2f18969cc4e52b5ade625b21ab84a1f80bd96a202fd2b431c587c8973cbb127501bd93b97cce8f4e73107b9a23ab52161c8ff31ab03476f092d5e5
EBUILD srpenergy-1.3.6.ebuild 807 BLAKE2B 9750944611d3bf8dfc8b9ef14bc2236deb2073ccf8e1a4a10efdc3db8098dadd8edb1f47403d4c62ac2dde3176c3b97f439648f473b691b5255b4b4a4bcaf23c SHA512 34202c2c9b52ee33f7501a9f7ee7eb5779ae82a71aeefeae08a83ac50c96e1107ece228998917441bde1769c27102b74ec791bbab949030c96295899174f62f3
MISC metadata.xml 456 BLAKE2B bada16ea09c3415f7b68120de631983c5cab863b2dee2c638132723bbe7f56a06b3149cdf588025adcfdffdc006c583eedb72a0ed68fb6e666d001bc469171c5 SHA512 e7cd396bb396765a5868a55f9666cc3aaf288e1d6d9b026e543f52f7e77bb4f3c5424ca62332d3dad70294f8b2c26fae93b0a16222575d53a8687857600421f9

View File

@ -1,32 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="An unofficial Python module for interacting with Srp Energy data."
HOMEPAGE="https://github.com/lamoreauxlab/srpenergy-api-client-python https://pypi.org/project/srpenergy/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND=">=dev-python/requests-2.22.0[${PYTHON_USEDEP}]
>=dev-python/python-dateutil-2.8.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
}

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="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
@ -24,11 +24,11 @@ RDEPEND=">=dev-python/requests-2.22.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
}
distutils_enable_tests pytest