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

This commit is contained in:
2022-10-17 22:49:51 +02:00
committed by Andreas Billmeier
parent 17d9ceb570
commit 5b6840f4af
4 changed files with 7 additions and 47 deletions

View File

@@ -547,7 +547,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 1500 Ebuilds in total, 1493 of them have in total 1504 (34 different) licenses assigned.
There are 1499 Ebuilds in total, 1492 of them have in total 1503 (34 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
@@ -569,11 +569,11 @@ There are 1500 Ebuilds in total, 1493 of them have in total 1504 (34 different)
|PSF-2|3|
|EPL-1.0|3|
|AGPL-3+|2|
|ZPL|2|
|LGPL-2+|2|
|ISC|2|
|BSD-4|2|
|EPL-2.0|2|
|ZPL|1|
|ECL-2.0|1|
|Boost-1.0|1|
|AGPL-3|1|

View File

@@ -1,5 +1,3 @@
DIST RestrictedPython-5.1.tar.gz 443982 BLAKE2B 9cd47ccb400cb9a6254f4da2d29c108fc985e2f1e037f120ac1eba993ff9bbdcb048f70a0904248f21fbe4107c79004844f18f6005108f20c55758c09ed056da SHA512 d75f3e9d9b3258e4d49f03981d05de832d490676feaffbaea4a08f08fa75b0e4b016aef69ee921efe7a3f26fd1bc6c2399a80793cc58a248c717771e0b3d27e0
DIST RestrictedPython-5.2.tar.gz 444846 BLAKE2B 1aceff4b588dcb879f6b3592910ae089a26666c3d7fe0a259e4476f7fe69cee9fbe5e6394cffb6ee3e5bee94276ce7ee11cfcc8563af923a4990bd8bbb66910e SHA512 b311939a6521db2129333f10522c528c09de9263bd5c6f475e6582e6dc80b0c68385c58ee26b473d1b09e7d51b4b494cff592130342b6b208562069557604fbf
EBUILD RestrictedPython-5.1.ebuild 885 BLAKE2B c72613c73fd73a8d778c80f1fd4bbbf25bca1f31566ab933c1411cb1ea7ea7f5d9ac203a4af8e6f5da4e8d79dfe6e5d57dd5a548e34379c188376c0c0d769b09 SHA512 a19e8ff92ce5d9a5801e6639c68746cbc0075e9465170e675b24baccc204c2303bcbb6dc94461105ff80f0f045ee89b5539fd07e8e03b8eb45372dbeb1a9a18f
EBUILD RestrictedPython-5.2.ebuild 902 BLAKE2B 9f1045e1226761a932787726600fa6f9665d20099c26acd4e039029147b2492263559b6dd0638f3bf606ee736115351eac07c211ba17eb6f937c846c5a3c1e7a SHA512 06d1b8629b5be071b6208fd1f0bd1a01b7bf059fae88eb59528f13c2316aaa19a55cc6530b1f92a0727376365c6df548d204cd7f428943f2f79efe1897f84f5a
EBUILD RestrictedPython-5.2.ebuild 834 BLAKE2B fca4b66d7ba910ab52752b8fecc234d61cca260b70c1c46f1ee9fed00ce11dee709db55d388f5e7acf94a15814eabf04a5974589c6f45364794c7bce06a69eae SHA512 545557e5e811b0e5f30a9fa041f58a8ef3aebac9e1e8379b442f257e02bff47ac2e5ccde16ea398a273659d6b77a0b61cb23935a9fc2249ebb6f65163478282f
MISC metadata.xml 478 BLAKE2B e694fe8c97965fc49c316892f7d210b53d864e0b5077607f06dfde2bc0dc01267f82202cce10ee816c26c642f60862330b2c6e7388254f98d35ba15cbf0d641b SHA512 24c4e0ea0acb3fd46b43c6f7d4f1174522fa0c05b5333322b186ca673ff12af6d269a4ffa0cda78eaf9670325214d1efb76faf0fbfb3955840a46e0a7af21e3c

View File

@@ -1,37 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
MY_P=${P/_beta/b}
MY_PV=${PV/_beta/b}
DESCRIPTION="subset of Python which allows program input into a trusted environment."
HOMEPAGE="https://github.com/zopefoundation/RestrictedPython https://pypi.python.org/pypi/RestrictedPython https://pypi.org/project/RestrictedPython/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${MY_P}.tar.gz"
LICENSE="ZPL"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 x86 amd64-linux x86-linux"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND=""
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
S="${WORKDIR}/${MY_P}"
PYTHON_MODULES="${PN}"
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
@@ -16,17 +16,15 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${MY_P}.tar.gz"
LICENSE="ZPL"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 x86 amd64-linux x86-linux"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS="README.rst"
RDEPEND=""
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
@@ -34,6 +32,7 @@ S="${WORKDIR}/${MY_P}"
PYTHON_MODULES="${PN}"
python_test() {
nosetests --verbose || die
py.test -v -v || die
}
distutils_enable_tests pytest