Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bottle/
Date: Wed, 03 Aug 2022 17:30:36
Message-Id: 1659547653.b180adf97a306d5764848efef608b11b8eb48df7.arthurzam@gentoo
1 commit: b180adf97a306d5764848efef608b11b8eb48df7
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 3 16:42:57 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 3 17:27:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b180adf9
7
8 dev-python/bottle: add 0.12.23
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/bottle/Manifest | 1 +
13 dev-python/bottle/bottle-0.12.23.ebuild | 46 +++++++++++++++++++++++++++++++++
14 2 files changed, 47 insertions(+)
15
16 diff --git a/dev-python/bottle/Manifest b/dev-python/bottle/Manifest
17 index ab37c16b4288..4b1105c6afb0 100644
18 --- a/dev-python/bottle/Manifest
19 +++ b/dev-python/bottle/Manifest
20 @@ -1 +1,2 @@
21 DIST bottle-0.12.21.tar.gz 74229 BLAKE2B 88674389d2c087a7416443d031995ee923a98b790eb85d81b625f11b2fb0baee35d90a3ee2dba5b9d4744a343a34396a50edef0f85a2d6f4f0f4da95bae31b5b SHA512 3d621f6684f439a4a5718ad25e8b45eb0d1100cd565ec5b797adf67141e01d835cde671e687f5515cb6eab69bb465e9c7d004131634609266c2e1b69b0adbf43
22 +DIST bottle-0.12.23.tar.gz 73965 BLAKE2B ccd3dc3aad5c4c8b6899f55f03550cf9178e51788c27ece9808e1cff92693cc09dab145be16f814d29dae02ce53374a0470b2c4b032bc66a0ec2b1a11ec5ca44 SHA512 0550aa95680dd79d9c63c5de854845377183c86015893d9ee4e67126eca201582ef79d40ff0d1cbe79fe8a250118a775c63102475e337e18cfc1a65afe18f62a
23
24 diff --git a/dev-python/bottle/bottle-0.12.23.ebuild b/dev-python/bottle/bottle-0.12.23.ebuild
25 new file mode 100644
26 index 000000000000..87a0756c7931
27 --- /dev/null
28 +++ b/dev-python/bottle/bottle-0.12.23.ebuild
29 @@ -0,0 +1,46 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
37 +
38 +inherit distutils-r1 optfeature
39 +
40 +DESCRIPTION="A fast and simple micro-framework for small web-applications"
41 +HOMEPAGE="
42 + https://bottlepy.org/
43 + https://github.com/bottlepy/bottle/
44 + https://pypi.org/project/bottle/
45 +"
46 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
51 +
52 +distutils_enable_tests unittest
53 +
54 +BDEPEND="
55 + test? (
56 + dev-python/mako[${PYTHON_USEDEP}]
57 + )
58 +"
59 +
60 +python_prepare_all() {
61 + sed -e '/scripts/d' -i setup.py || die
62 +
63 + # Remove test file requiring connection to network
64 + rm test/test_server.py || die
65 + distutils-r1_python_prepare_all
66 +}
67 +
68 +pkg_postinst() {
69 + optfeature "Templating support" dev-python/mako
70 + elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)"
71 + elog "we do as most other distros and do not install the script anymore."
72 + elog "If you do want/have to call it directly rather than through your app,"
73 + elog "please use the following instead:"
74 + elog ' `python -m bottle`'
75 +}