Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: David Roman <davidroman96@gmail.com>
- Loading branch information
Showing
5 changed files
with
214 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
DIST buku-3.7.tar.gz 98970 BLAKE2B 7227b5fb632d9ec92ef236d1889f2ba0872d67d2c3cfb302beab48b03e8d62a762d02e517014d5041a9f79deab74d0f5ceca12c315eb77922f73d359b58a48b5 SHA512 c515e11686aa8888231ffc8c1d6ec29d6143f1714eacdf640d8d3d3fa3fd469e111073762a3ba831dd673d63034afe3db181ec66501c18165e8ddd97cbc57c82 | ||
DIST buku-4.2.2.tar.gz 126488 BLAKE2B 9960d8aeaeaa01d722cb7aff10efd19f105092e75a90e8adda3a7b62b13a0237ecc0c330892d828b1068eba9750bce32ac5b6d349e49312f8e465f225054b99b SHA512 feff1667c9efbde9b3e8c4ac91c870a8a3fa6d05670089294cc8ebccad0f58b952f163871fd780bd3141125c0987a9aaf9ab4e6ce00bc010762c48d981fc14c1 | ||
DIST buku-bookmarks.zip 449981 BLAKE2B a758cc79c7009c2f36d46be64d074c6979444faf7eba6a49a23c7af30a9dd229121d56fccd154226fb4f466f7581ba2033e693e6f3a16eb3e3726adfae9fe7eb SHA512 a93f2e99f802aedd3660e7475ac01ecb7b2bd00e03d3e1991b3784121fa4b4561fb02fd68668edc0f06e6d17672714937676222d1feabaf3aaaa5efd17d115e4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Copyright 1999-2019 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
PYTHON_COMPAT=( python3_{5,6} ) | ||
|
||
inherit bash-completion-r1 distutils-r1 | ||
|
||
DESCRIPTION="Powerful command-line bookmark manager" | ||
HOMEPAGE="https://github.com/jarun/Buku" | ||
SRC_URI="test? ( https://github.com/jarun/Buku/files/1319933/bookmarks.zip -> buku-bookmarks.zip )" | ||
|
||
if [[ ${PV} == *9999 ]]; then | ||
inherit git-r3 | ||
EGIT_REPO_URI="https://github.com/jarun/Buku" | ||
else | ||
SRC_URI="${SRC_URI} mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz -> ${P}.tar.gz" | ||
|
||
KEYWORDS="~amd64 ~x86" | ||
fi | ||
|
||
LICENSE="GPL-3" | ||
SLOT="0" | ||
IUSE="test server" | ||
RESTRICT="!test? ( test )" | ||
|
||
CLIENT_DEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}] | ||
dev-python/certifi[${PYTHON_USEDEP}] | ||
dev-python/cryptography[${PYTHON_USEDEP}] | ||
dev-python/html5lib[${PYTHON_USEDEP}] | ||
>=dev-python/urllib3-1.13.1[${PYTHON_USEDEP}]" | ||
|
||
SERVER_DEPEND="dev-python/arrow[${PYTHON_USEDEP}] | ||
dev-python/click[${PYTHON_USEDEP}] | ||
dev-python/flask[${PYTHON_USEDEP}] | ||
dev-python/flask-admin[${PYTHON_USEDEP}] | ||
dev-python/flask-api[${PYTHON_USEDEP}] | ||
dev-python/flask-bootstrap[${PYTHON_USEDEP}] | ||
dev-python/flask-paginate[${PYTHON_USEDEP}] | ||
dev-python/flask-wtf[${PYTHON_USEDEP}] | ||
dev-python/requests[${PYTHON_USEDEP}] | ||
dev-python/werkzeug[${PYTHON_USEDEP}]" | ||
|
||
RDEPEND="${CLIENT_DEPEND} | ||
server? ( ${SERVER_DEPEND} )" | ||
|
||
DEPEND="${RDEPEND} | ||
test? ( | ||
dev-python/attrs[${PYTHON_USEDEP}] | ||
dev-python/hypothesis[${PYTHON_USEDEP}] | ||
dev-python/py[${PYTHON_USEDEP}] | ||
dev-python/pytest[${PYTHON_USEDEP}] | ||
dev-python/pyyaml[${PYTHON_USEDEP}] | ||
dev-python/vcrpy[${PYTHON_USEDEP}] | ||
) | ||
" | ||
|
||
python_prepare_all() { | ||
distutils-r1_python_prepare_all | ||
|
||
if ! use server; then | ||
eapply "${FILESDIR}/buku-4.1-disable-server.patch" || die | ||
fi | ||
|
||
if use test; then | ||
cd "tests/test_bukuDb" || die | ||
unpack "buku-bookmarks.zip" || die | ||
fi | ||
} | ||
|
||
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}" | ||
|
||
insinto /usr/share/zsh/site-functions | ||
newins auto-completion/zsh/_buku _buku | ||
|
||
doman buku.1 | ||
} | ||
|
||
python_test() { | ||
local skipped=("_rec" "refreshdb" "tnyfy_url" "with_url" "test_browse" | ||
"search" "_tag" "_compactdb" "cleardb" "_database" ) | ||
|
||
local args="not ${skipped[0]}" | ||
for i in "${skipped[@]:1}"; do | ||
args+=" and not $i" | ||
done | ||
|
||
pytest -vv -k "${args}" tests/test_*.py || die | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Copyright 1999-2019 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
PYTHON_COMPAT=( python3_{5,6} ) | ||
|
||
inherit bash-completion-r1 distutils-r1 | ||
|
||
DESCRIPTION="Powerful command-line bookmark manager" | ||
HOMEPAGE="https://github.com/jarun/Buku" | ||
SRC_URI="test? ( https://github.com/jarun/Buku/files/1319933/bookmarks.zip -> buku-bookmarks.zip )" | ||
|
||
if [[ ${PV} == *9999 ]]; then | ||
inherit git-r3 | ||
EGIT_REPO_URI="https://github.com/jarun/Buku" | ||
else | ||
SRC_URI="${SRC_URI} mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz -> ${P}.tar.gz" | ||
|
||
KEYWORDS="~amd64 ~x86" | ||
fi | ||
|
||
LICENSE="GPL-3" | ||
SLOT="0" | ||
IUSE="test server" | ||
RESTRICT="!test? ( test )" | ||
|
||
CLIENT_DEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}] | ||
dev-python/certifi[${PYTHON_USEDEP}] | ||
dev-python/cryptography[${PYTHON_USEDEP}] | ||
dev-python/html5lib[${PYTHON_USEDEP}] | ||
>=dev-python/urllib3-1.13.1[${PYTHON_USEDEP}]" | ||
|
||
SERVER_DEPEND="dev-python/arrow[${PYTHON_USEDEP}] | ||
dev-python/click[${PYTHON_USEDEP}] | ||
dev-python/flask[${PYTHON_USEDEP}] | ||
dev-python/flask-admin[${PYTHON_USEDEP}] | ||
dev-python/flask-api[${PYTHON_USEDEP}] | ||
dev-python/flask-bootstrap[${PYTHON_USEDEP}] | ||
dev-python/flask-paginate[${PYTHON_USEDEP}] | ||
dev-python/flask-wtf[${PYTHON_USEDEP}] | ||
dev-python/requests[${PYTHON_USEDEP}] | ||
dev-python/werkzeug[${PYTHON_USEDEP}]" | ||
|
||
RDEPEND="${CLIENT_DEPEND} | ||
server? ( ${SERVER_DEPEND} )" | ||
|
||
DEPEND="${RDEPEND} | ||
test? ( | ||
dev-python/attrs[${PYTHON_USEDEP}] | ||
dev-python/hypothesis[${PYTHON_USEDEP}] | ||
dev-python/py[${PYTHON_USEDEP}] | ||
dev-python/pytest[${PYTHON_USEDEP}] | ||
dev-python/pyyaml[${PYTHON_USEDEP}] | ||
dev-python/vcrpy[${PYTHON_USEDEP}] | ||
) | ||
" | ||
|
||
python_prepare_all() { | ||
distutils-r1_python_prepare_all | ||
|
||
if ! use server; then | ||
eapply "${FILESDIR}/buku-4.1-disable-server.patch" || die | ||
fi | ||
|
||
if use test; then | ||
cd "tests/test_bukuDb" || die | ||
unpack "buku-bookmarks.zip" || die | ||
fi | ||
} | ||
|
||
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}" | ||
|
||
insinto /usr/share/zsh/site-functions | ||
newins auto-completion/zsh/_buku _buku | ||
|
||
doman buku.1 | ||
} | ||
|
||
python_test() { | ||
local skipped=("_rec" "refreshdb" "tnyfy_url" "with_url" "test_browse" | ||
"search" "_tag" "_compactdb" "cleardb" "_database" ) | ||
|
||
local args="not ${skipped[0]}" | ||
for i in "${skipped[@]:1}"; do | ||
args+=" and not $i" | ||
done | ||
|
||
pytest -vv -k "${args}" tests/test_*.py || die | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/setup.py b/setup.py | ||
index 91f9fbb..a702b9c 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -62,10 +62,10 @@ setup( | ||
'urllib3>=1.23', | ||
'html5lib>=1.0.1', | ||
], | ||
- packages=find_packages(exclude=['tests']), | ||
+ packages=find_packages(exclude=['bukuserver', 'tests']), | ||
include_package_data=True, | ||
entry_points={ | ||
- 'console_scripts': ['buku=buku:main', 'bukuserver=bukuserver.server:cli'] | ||
+ 'console_scripts': ['buku=buku:main'] | ||
}, | ||
extras_require={ | ||
'tests': tests_require, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters