mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/bottle: Remove old
Bug: https://bugs.gentoo.org/849398 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,3 +1 @@
|
||||
DIST bottle-0.12.19.tar.gz 73142 BLAKE2B e59d7a507d3401869ba4953a48274062fc56226afa2f7aad596b4ef4352e4a79cea2d224dfe32d7ce014e4f4a3ba088d0e7a0886f64a84bb6b78571e953fa3c3 SHA512 e5d2f6a32d1b89ae3cc9607456c0614db2b58882c6d36273d695c51d3d77b1858cac4d914dbf19bca3b74be68c197aa6473f162e40d9b7ae2af3a084a28c2637
|
||||
DIST bottle-0.12.20.tar.gz 74235 BLAKE2B 8d6c03ac9a0330fa13e474fcb6bb985d663d3c4c1c2cd6ca24a1224efd3072d4897efafc095af13f8231b99d705ae252fbed29ebe8e18dc5c9db7318a9c749c7 SHA512 149355d39ac1370a3b6c1999756ac2c7eb98ef04cf99df7099a6c84112e1ff06a0cac4612843750499633a136ea2ddfb1a5d594ba03d7ee63cf7cae9aceba823
|
||||
DIST bottle-0.12.21.tar.gz 74229 BLAKE2B 88674389d2c087a7416443d031995ee923a98b790eb85d81b625f11b2fb0baee35d90a3ee2dba5b9d4744a343a34396a50edef0f85a2d6f4f0f4da95bae31b5b SHA512 3d621f6684f439a4a5718ad25e8b45eb0d1100cd565ec5b797adf67141e01d835cde671e687f5515cb6eab69bb465e9c7d004131634609266c2e1b69b0adbf43
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} pypy3 )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="A fast and simple micro-framework for small web-applications"
|
||||
HOMEPAGE="
|
||||
https://bottlepy.org/
|
||||
https://github.com/bottlepy/bottle/
|
||||
https://pypi.org/project/bottle/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.12.8-py3.5-backport.patch
|
||||
"${FILESDIR}"/${P}-py311.patch
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i -e '/scripts/d' setup.py || die
|
||||
|
||||
# Remove test file requring connection to network
|
||||
rm test/test_server.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" test/testall.py || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Templating support" dev-python/mako
|
||||
elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)"
|
||||
elog "we do as most other distros and do not install the script anymore."
|
||||
elog "If you do want/have to call it directly rather than through your app,"
|
||||
elog "please use the following instead:"
|
||||
elog ' `python -m bottle`'
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..10} pypy3 )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="A fast and simple micro-framework for small web-applications"
|
||||
HOMEPAGE="https://pypi.org/project/bottle/ https://bottlepy.org/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="test? ( dev-python/mako[${PYTHON_USEDEP}] )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.12.8-py3.5-backport.patch
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i -e '/scripts/d' setup.py || die
|
||||
|
||||
# Remove test file requring connection to network
|
||||
rm test/test_server.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# A few odd fails in the suite under pypy
|
||||
# https://github.com/bottlepy/bottle/issues/714
|
||||
"${EPYTHON}" test/testall.py || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Templating support" dev-python/mako
|
||||
elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)"
|
||||
elog "we do as most other distros and do not install the script anymore."
|
||||
elog "If you do want/have to call it directly rather than through your app,"
|
||||
elog "please use the following instead:"
|
||||
elog ' `python -m bottle`'
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} pypy3 )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="A fast and simple micro-framework for small web-applications"
|
||||
HOMEPAGE="
|
||||
https://bottlepy.org/
|
||||
https://github.com/bottlepy/bottle/
|
||||
https://pypi.org/project/bottle/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/bottle-0.12.8-py3.5-backport.patch
|
||||
"${FILESDIR}"/bottle-0.12.19-py311.patch
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i -e '/scripts/d' setup.py || die
|
||||
|
||||
# Remove test file requring connection to network
|
||||
rm test/test_server.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" test/testall.py || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Templating support" dev-python/mako
|
||||
elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)"
|
||||
elog "we do as most other distros and do not install the script anymore."
|
||||
elog "If you do want/have to call it directly rather than through your app,"
|
||||
elog "please use the following instead:"
|
||||
elog ' `python -m bottle`'
|
||||
}
|
||||
Reference in New Issue
Block a user