Gentoo Archives: gentoo-commits

From: John Helmert III <ajak@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-misc/buku/
Date: Tue, 05 Jul 2022 03:40:10
Message-Id: 1656992001.8c998960e9acb4ddbe211c15f9e6db84fbbd704e.ajak@gentoo
1 commit: 8c998960e9acb4ddbe211c15f9e6db84fbbd704e
2 Author: John Helmert III <ajak <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 5 03:33:21 2022 +0000
4 Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 5 03:33:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c998960
7
8 www-misc/buku: add 4.7
9
10 Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
11
12 www-misc/buku/Manifest | 1 +
13 www-misc/buku/buku-4.7.ebuild | 90 +++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 91 insertions(+)
15
16 diff --git a/www-misc/buku/Manifest b/www-misc/buku/Manifest
17 index 535588ada185..d274f0444203 100644
18 --- a/www-misc/buku/Manifest
19 +++ b/www-misc/buku/Manifest
20 @@ -1 +1,2 @@
21 DIST buku-4.6.tar.gz 491809 BLAKE2B 82597b845c56dadf1cc6973d1f3ce6cc4970230d08ac700cf286a8c41420144fb1f42817ab808041600ab8414d96f3a3883c1bd8fbe89f29570d877a495dcd96 SHA512 1c46006d8c950811493a8c11453d51557cac3f6346ea28d66dcb2ae3e4c52727af7349b4b6ea088f9c08a7e9d09e3a4d80679b41497b6cd0844d811f81c9811a
22 +DIST buku-4.7.tar.gz 495773 BLAKE2B 193849333bae9436573d596285f56b17b1b69c4352acbd883d0a82ed3645a7888a509f36ee33fa29526bd3d429e482ef8f43a0e1fd8def7d499f48afd9adba17 SHA512 f5e8984638d2fadeb1227f6ed9015c17fc46f490b6dc3ede7b66db79489cc96c9a8e3426f4722503a7e5a918d874813cf4f1462c4a32ea247e8c581e34555c07
23
24 diff --git a/www-misc/buku/buku-4.7.ebuild b/www-misc/buku/buku-4.7.ebuild
25 new file mode 100644
26 index 000000000000..e27904a3d54b
27 --- /dev/null
28 +++ b/www-misc/buku/buku-4.7.ebuild
29 @@ -0,0 +1,90 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{9,10,11} )
36 +PYTHON_REQ_USE="sqlite"
37 +
38 +inherit bash-completion-r1 distutils-r1
39 +
40 +DESCRIPTION="Powerful command-line bookmark manager"
41 +HOMEPAGE="https://github.com/jarun/buku"
42 +SRC_URI="https://github.com/jarun/${PN}/archive/v$(ver_cut 1-2).tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="test"
48 +RESTRICT="!test? ( test )"
49 +
50 +RDEPEND="
51 + >=dev-python/beautifulsoup4-4.6.0[${PYTHON_USEDEP}]
52 + dev-python/cryptography[${PYTHON_USEDEP}]
53 + >=dev-python/html5lib-1.0.1[${PYTHON_USEDEP}]
54 + dev-python/urllib3[${PYTHON_USEDEP}]
55 +"
56 +DEPEND="${RDEPEND}
57 + test? (
58 + dev-python/attrs[${PYTHON_USEDEP}]
59 + >=dev-python/click-7.0[${PYTHON_USEDEP}]
60 + dev-python/hypothesis[${PYTHON_USEDEP}]
61 + >=dev-python/py-1.5.0[${PYTHON_USEDEP}]
62 + dev-python/pytest[${PYTHON_USEDEP}]
63 + >=dev-python/pyyaml-4.2[${PYTHON_USEDEP}]
64 + >=dev-python/vcrpy-4.0.2[${PYTHON_USEDEP}]
65 + )
66 +"
67 +
68 +python_prepare_all() {
69 + # Remove support for bukuserver - complex depgraph which isn't all
70 + # sufficiently packaged in Gentoo
71 + sed -ie '/console_scripts/s/,.*/]/' setup.py || die
72 + sed -ie 's/.*bukuserver.*//' tests/test_views.py || die
73 + sed -ie 's/.*flask.*//' tests/test_views.py || die
74 +
75 + distutils-r1_python_prepare_all
76 +}
77 +
78 +python_install_all() {
79 + distutils-r1_python_install_all
80 +
81 + insinto /usr/share/zsh/site-functions
82 + doins auto-completion/zsh/_*
83 +
84 + newbashcomp auto-completion/bash/buku-completion.bash "${PN}"
85 +
86 + doman buku.1
87 +}
88 +
89 +python_test() {
90 + local skipped_tests=(
91 + # Disable tests related to bukuserver
92 + tests/test_setup.py::test_bukuserver_requirement
93 + tests/test_views.py::test_bmv_create_form
94 + tests/test_views.py::test_bookmark_model_view
95 + tests/test_views.py::test_load_firefox_database
96 + tests/test_views.py::test_tag_model_view_get_list
97 + tests/test_views.py::test_tag_model_view_get_list_empty_db
98 +
99 + # Broken with network-sandbox
100 + tests/test_buku.py::test_network_handler_with_url
101 + tests/test_bukuDb.py::TestBukuDb::test_tnyfy_url
102 + tests/test_bukuDb.py::test_add_rec_exec_arg
103 + tests/test_bukuDb.py::test_load_firefox
104 + tests/test_bukuDb.py::test_print_db
105 + tests/test_bukuDb.py::test_print_rec
106 + tests/test_bukuDb.py::test_refreshdb
107 +
108 + # Hard to debug sandbox issue - these pass when run outside portage
109 + # There also appears to be some state issue between these, because
110 + # skipping one can result in a later one failing.
111 + tests/test_bukuDb.py::test_delete_rec_index_and_delay_commit[1-True-False]
112 + tests/test_bukuDb.py::test_delete_rec_index_and_delay_commit[1-False-True]
113 + tests/test_bukuDb.py::test_delete_rec_index_and_delay_commit[1-False-False]
114 + tests/test_bukuDb.py::test_delete_rec_index_and_delay_commit[1-True-True]
115 + )
116 +
117 + # tests/test_server.py is bukuserver tests, ignore it
118 + pytest -p no:verbose-parametrize -v --ignore tests/test_server.py ${skipped_tests[@]/#/--deselect } || die "Tests failed with ${EPYTHON}"
119 +}