dev-python/tank-utility: remove olds, cleanup, enable pytest

This commit is contained in:
Andreas Billmeier 2022-10-18 00:28:43 +02:00 committed by Andreas Billmeier
parent d1df68304a
commit 9d638cd81f
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 5 additions and 43 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 1475 Ebuilds in total, 1468 of them have in total 1478 (34 different) licenses assigned.
There are 1474 Ebuilds in total, 1467 of them have in total 1477 (34 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
|MIT|857|
|MIT|856|
|Apache-2.0|301|
|GPL-3|91|
|BSD|89|

View File

@ -1,5 +1,3 @@
DIST tank-utility-1.4.0.tar.gz 3671 BLAKE2B 25bf5582a879813ed47c09937100810a9ff007dc9ff0e80471e03878936c2cbf89a8fd0e7a73040445da20287453139765fcc67dbd9f6043490a6ae0f6c6c9e4 SHA512 25968cbbfc75987e49981f2aa2fdf840bdd6dc5b0ba663a9ed072dd42e16244f1f58875cca17d5cdae302f4bd995a50e9397ebb2d0a7df8a95bd05f48c22ed0d
DIST tank-utility-1.4.1.gh.tar.gz 13394 BLAKE2B 80c1d768be62628db58fb60072e25a8b6753ce4f0c899cb6930dbf31d8e393878c75f4ce89be1132580404b5f5b42850c69e487f43ff91842d7542da7d6846fa SHA512 2859640a79f166cd75c2cb183f4eaa82c45061aa01bab73cabcc469c1f0823505fb4379a9e913c4e20a440337803a378979c569e214b25f66e83d92846d873a7
EBUILD tank-utility-1.4.0.ebuild 846 BLAKE2B ddf5871abb14a0957cc9dd43f341916c380eeb43ac02309191a715e90a9576fd5736174751026d6d4755d6a117d8914141f5beb65e473c2e65470d8274fc9260 SHA512 e12933ebe604b551a3d1831332ec02b14c9ff824095af9c8f8830653b91881c75ea9f31bc05aa74ffe7f939f22c65bdcdea978cf20078635a5c23a8c51663b92
EBUILD tank-utility-1.4.1.ebuild 864 BLAKE2B 33c7b3990e2c5f0597f07b997d7604a36b3d57aa60d3978a5623f4d37677433e47580b55c826f7ed92c2bfd533eeed2b8e78163d66250b42d3de61482daaeada SHA512 22ab91fda7bee9f767929d3844d2f9402e64ba6f0dd6a20eb7235a888b391e91ba000f22643484e0cfe09d93e6425ee14af265cce089833561441af1d9ae5406
EBUILD tank-utility-1.4.1.ebuild 831 BLAKE2B d44312d9455df5920ca5eb857acd5d3dbc4788d5b2a766e4358f6669759300171a5124c86a299bea860bb06b2b268edf1350793ed30c67d5a8fd5f4b457b0597 SHA512 c19ffd98a7890633618e37e4505d9f87e9655adccfe2acca8e54e8f24c9801da6b4dbc0df0956f613b8a1e2a41460a24015d77243e52b3cbf8559232e4ce5b78
MISC metadata.xml 452 BLAKE2B 6666849e43bb03b8cdfe052aa42ad2280dccc1c4f04bf8a256d8e54acc88c31c877365fe92ee3c80c01829d471aca70cfcd5a207271b76b77d971447a4610645 SHA512 14355b805701811fb9458056771d0102db58483ebb21a9e27dc260d9028d1bb65767dfb31a71b0d85ae5a9125fc4f2bc507bfd7e8de7476ca6d3667218ef33a7

View File

@ -1,36 +0,0 @@
# 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="A smart propane tank monitor."
HOMEPAGE="https://github.com/krismolendyke/tank-utility https://pypi.org/project/tank-utility/"
MY_PN=${PN/-/_}
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS="README.rst"
RDEPEND=">=dev-python/requests-2.0[${PYTHON_USEDEP}]
dev-python/urllib3[${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

@ -26,11 +26,11 @@ RDEPEND=">=dev-python/requests-2.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