summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <jchelmert3@posteo.net>2020-12-31 15:03:52 -0600
committerJoonas Niilola <juippis@gentoo.org>2021-01-17 11:14:15 +0200
commit407653c0785b394b0c16817faefcada16bffc3b5 (patch)
treecf3c0ff1e4764f2312748310d458308fac4294bd /www-misc
parentwww-misc/buku: bump to 4.5 (and python3.9) (diff)
downloadgentoo-407653c0785b394b0c16817faefcada16bffc3b5.tar.gz
gentoo-407653c0785b394b0c16817faefcada16bffc3b5.tar.bz2
gentoo-407653c0785b394b0c16817faefcada16bffc3b5.zip
www-misc/buku: cleanup old
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: John Helmert III <jchelmert3@posteo.net> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'www-misc')
-rw-r--r--www-misc/buku/Manifest2
-rw-r--r--www-misc/buku/buku-4.3-r1.ebuild65
-rw-r--r--www-misc/buku/buku-4.4-r1.ebuild87
-rw-r--r--www-misc/buku/files/buku-4.4-fix-tests.patch34
4 files changed, 0 insertions, 188 deletions
diff --git a/www-misc/buku/Manifest b/www-misc/buku/Manifest
index cc0bc646868d..ea27579d5755 100644
--- a/www-misc/buku/Manifest
+++ b/www-misc/buku/Manifest
@@ -1,3 +1 @@
-DIST buku-4.3.tar.gz 264480 BLAKE2B 8bddf640512e5741f80bb5bc073208d843cac32d3c3ade0bdf36241e93d6c81d47238ad03c651e924226933efa572e65d9a4c86f861acda68935c9e96d6e6fb4 SHA512 eabf45b1cc1700b20f2a95baf14940f49e2a2ad51aef0f870c488e67cb07fb110916d93037830cd83572317c5d0a8b05c0a5732f105face2a14facf6af02b690
-DIST buku-4.4.tar.gz 273207 BLAKE2B bff849f03ba6b2f8779a9445da26f64875ccc6a7cb1434cba51237742a7b9968d302ee0dd9f87fd2857922660fc304d07012a962c080704d7d99312e8672e4d0 SHA512 5ccd3e72b2256d4d3daf007ffc9279c9958eec6a5baa913cb31bf97d978db227e28311f882a930da737c002ec0750ee9f8cf0f7584e639154398ba5d486bd8ba
DIST buku-4.5.tar.gz 488913 BLAKE2B 29ed93fa9af4503f72a711889fbf17d86bcde1bc1abbfc88242c4ebd18f1c1a57077781eebdd79d9d993078d2f5b5883c9a0ec4fee94e37c0e7bfb727c5154d0 SHA512 7bbb598d5c970e8e594d58c0a18f9b85245d4a214c01d64b537a5ccaadab32c964521046b90754c2f2c721bf816dc7f4438cfeff3a7e7eec75ce958cc41dfa7d
diff --git a/www-misc/buku/buku-4.3-r1.ebuild b/www-misc/buku/buku-4.3-r1.ebuild
deleted file mode 100644
index 96a36a815879..000000000000
--- a/www-misc/buku/buku-4.3-r1.ebuild
+++ /dev/null
@@ -1,65 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6,7,8} )
-PYTHON_REQ_USE="sqlite"
-DISTUTILS_USE_SETUPTOOLS=rdepend
-
-inherit bash-completion-r1 distutils-r1
-
-DESCRIPTION="Powerful command-line bookmark manager"
-HOMEPAGE="https://github.com/jarun/buku"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-RESTRICT="test"
-
-RDEPEND="
- >=dev-python/beautifulsoup-4.6.0[${PYTHON_USEDEP}]
- dev-python/cryptography[${PYTHON_USEDEP}]
- >=dev-python/html5lib-1.0.1[${PYTHON_USEDEP}]
- dev-python/urllib3[${PYTHON_USEDEP}]
-"
-
-DEPEND="${RDEPEND}
- test? (
- dev-python/attrs[${PYTHON_USEDEP}]
- >=dev-python/click-7.0[${PYTHON_USEDEP}]
- dev-python/flake8[${PYTHON_USEDEP}]
- dev-python/hypothesis[${PYTHON_USEDEP}]
- >=dev-python/py-1.5.0[${PYTHON_USEDEP}]
- >=dev-python/pylint-1.7.2[${PYTHON_USEDEP}]
- dev-python/pytest[${PYTHON_USEDEP}]
- >=dev-python/pyyaml-4.2[${PYTHON_USEDEP}]
- >=dev-python/vcrpy-4.0.2[${PYTHON_USEDEP}]
- )
-"
-
-python_prepare() {
- distutils-r1_python_prepare_all
-
- # Remove support for bukuserver - complex depgraph which isn't all
- # sufficiently packaged in Gentoo
- sed -ie '/console_scripts/s/,.*/]/' setup.py || die
-}
-
-python_install_all() {
- distutils-r1_python_install_all
-
- insinto /usr/share/zsh/site-functions
- doins auto-completion/zsh/_*
-
- newbashcomp auto-completion/bash/buku-completion.bash "${PN}"
-
- doman buku.1
-}
-
-python_test() {
- # Explicitly enumerate tests to avoid tests that deal with bukuserver
- py.test -v "tests/test_"{BukuCrypt,bukuDb,buku,ExtendedArgumentParser,import_firefox_json}".py" || die
-}
diff --git a/www-misc/buku/buku-4.4-r1.ebuild b/www-misc/buku/buku-4.4-r1.ebuild
deleted file mode 100644
index 6ea730152354..000000000000
--- a/www-misc/buku/buku-4.4-r1.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6,7,8} )
-PYTHON_REQ_USE="sqlite"
-DISTUTILS_USE_SETUPTOOLS=rdepend
-
-inherit bash-completion-r1 distutils-r1
-
-DESCRIPTION="Powerful command-line bookmark manager"
-HOMEPAGE="https://github.com/jarun/buku"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-PATCHES=( "${FILESDIR}/${P}-fix-tests.patch" )
-
-RDEPEND="
- >=dev-python/beautifulsoup-4.6.0[${PYTHON_USEDEP}]
- dev-python/cryptography[${PYTHON_USEDEP}]
- >=dev-python/html5lib-1.0.1[${PYTHON_USEDEP}]
- dev-python/urllib3[${PYTHON_USEDEP}]
-"
-DEPEND="${RDEPEND}
- test? (
- dev-python/attrs[${PYTHON_USEDEP}]
- >=dev-python/click-7.0[${PYTHON_USEDEP}]
- dev-python/hypothesis[${PYTHON_USEDEP}]
- >=dev-python/py-1.5.0[${PYTHON_USEDEP}]
- dev-python/pytest[${PYTHON_USEDEP}]
- >=dev-python/pyyaml-4.2[${PYTHON_USEDEP}]
- >=dev-python/vcrpy-4.0.2[${PYTHON_USEDEP}]
- )
-"
-
-python_prepare_all() {
- # Remove support for bukuserver - complex depgraph which isn't all
- # sufficiently packaged in Gentoo
- sed -ie '/console_scripts/s/,.*/]/' setup.py || die
- sed -ie 's/.*bukuserver.*//' tests/test_views.py || die
- sed -ie 's/.*flask.*//' tests/test_views.py || die
-
- distutils-r1_python_prepare_all
-}
-
-python_install_all() {
- distutils-r1_python_install_all
-
- insinto /usr/share/zsh/site-functions
- doins auto-completion/zsh/_*
-
- newbashcomp auto-completion/bash/buku-completion.bash "${PN}"
-
- doman buku.1
-}
-
-python_test() {
- local skipped_tests=(
- # Disable tests related to bukuserver
- tests/test_views.py::test_load_firefox_database
- tests/test_views.py::test_tag_model_view_get_list_empty_db
- tests/test_views.py::test_tag_model_view_get_list
- tests/test_views.py::test_bookmark_model_view
- tests/test_setup.py::test_bukuserver_requirement
-
- # Broken with network-sandbox
- tests/test_bukuDb.py::test_load_firefox
- tests/test_bukuDb.py::test_add_rec_exec_arg
- tests/test_buku.py::test_network_handler_with_url
- tests/test_bukuDb.py::TestBukuDb::test_tnyfy_url
- tests/test_bukuDb.py::test_refreshdb
- tests/test_bukuDb.py::test_print_rec_hypothesis
-
- # Passes when called alone, fails when run from the suite,
- # but only when the network is disabled
- tests/test_bukuDb.py::test_delete_rec_index_and_delay_commit[1-True-False]
- )
-
- # tests/test_server.py is bukuserver tests, ignore it
- pytest -v --ignore tests/test_server.py ${skipped_tests[@]/#/--deselect } || die "Tests failed with ${EPYTHON}"
-}
diff --git a/www-misc/buku/files/buku-4.4-fix-tests.patch b/www-misc/buku/files/buku-4.4-fix-tests.patch
deleted file mode 100644
index 0ef0f25228c3..000000000000
--- a/www-misc/buku/files/buku-4.4-fix-tests.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-Upstream: https://github.com/jarun/buku/pull/462/commits/9ecf8857d74f51666ba2ea40344c8ba99accccb8
-
-From 9ecf8857d74f51666ba2ea40344c8ba99accccb8 Mon Sep 17 00:00:00 2001
-From: rachmadaniHaryono <foreturiga@gmail.com>
-Date: Thu, 6 Aug 2020 14:52:31 +0800
-Subject: [PATCH] fix: test: delete_rec
-
----
- tests/test_bukuDb.py | 6 ++----
- 1 file changed, 2 insertions(+), 4 deletions(-)
-
-diff --git a/tests/test_bukuDb.py b/tests/test_bukuDb.py
-index 7e798b3..8b56331 100644
---- a/tests/test_bukuDb.py
-+++ b/tests/test_bukuDb.py
-@@ -936,16 +936,14 @@ def test_delete_rec_on_non_interger(index, low, high, is_range):
-
- for bookmark in TEST_BOOKMARKS:
- bdb.add_rec(*bookmark)
-- db_len = len(TEST_BOOKMARKS)
-
- if is_range and not (isinstance(low, int) and isinstance(high, int)):
- with pytest.raises(TypeError):
- bdb.delete_rec(index=index, low=low, high=high, is_range=is_range)
- return
- if not is_range and not isinstance(index, int):
-- res = bdb.delete_rec(index=index, low=low, high=high, is_range=is_range)
-- assert not res
-- assert len(bdb.get_rec_all()) == db_len
-+ with pytest.raises(TypeError):
-+ bdb.delete_rec(index=index, low=low, high=high, is_range=is_range)
- else:
- assert bdb.delete_rec(index=index, low=low, high=high, is_range=is_range)
-