From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C313E15812D for ; Mon, 30 Dec 2024 07:48:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9E60BE081A; Mon, 30 Dec 2024 07:48:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 70F00E0817 for ; Mon, 30 Dec 2024 07:48:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5734B33BF39 for ; Mon, 30 Dec 2024 07:48:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6A49D126A for ; Mon, 30 Dec 2024 07:48:30 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1735544880.f781e76f2fdf8dbab39d53a4628861705cdfe321.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/keep/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/keep/Manifest dev-python/keep/keep-2.11.ebuild X-VCS-Directories: dev-python/keep/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: f781e76f2fdf8dbab39d53a4628861705cdfe321 X-VCS-Branch: master Date: Mon, 30 Dec 2024 07:48:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 41a66386-3d78-404d-83f4-f39cfacc26f4 X-Archives-Hash: 51f4eb1fcfd6f8d0f7f53349165f5059 commit: f781e76f2fdf8dbab39d53a4628861705cdfe321 Author: Michał Górny gentoo org> AuthorDate: Mon Dec 30 07:48:00 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Dec 30 07:48:00 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f781e76f dev-python/keep: Bump to 2.11 Signed-off-by: Michał Górny gentoo.org> dev-python/keep/Manifest | 1 + dev-python/keep/keep-2.11.ebuild | 45 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/dev-python/keep/Manifest b/dev-python/keep/Manifest index c1697381f87b..39df976abf49 100644 --- a/dev-python/keep/Manifest +++ b/dev-python/keep/Manifest @@ -1 +1,2 @@ DIST keep-2.10.1.tar.gz 13044 BLAKE2B 178207ccad7f0feec2d9a57f0e5345e0ef9853bedd3f8efc8afac5f81c35e74ee6d3dab66b75ceeac4a3d76f2297ec645bae61f2f1e78218e910a2537984f4cd SHA512 d4144bd7f6f623b1c9c9468f5596818f47cba8a9bc80e75ebaf75f147823a01da53ef84c76b9f24240a8d0fbdb770c5cdf108c276ecdcd882ac9db0c1608480f +DIST keep-2.11.tar.gz 12175 BLAKE2B 88116819bf3aafeac5d4891a136f4a17751aff3141d55891bb7c29bbcf36e7c3a5a7d5aeaf6ccf62377cf7f660178cc971ffba7c8e8a80e9d3ffb87f91bed150 SHA512 b26349dcaf03cdec6463ee73029e644a41985f09efa4923ce6344884ea8d4189679747202af1ec930479ec1290374b4c55d4ae478590ce690f8920de00276782 diff --git a/dev-python/keep/keep-2.11.ebuild b/dev-python/keep/keep-2.11.ebuild new file mode 100644 index 000000000000..318de55a30fe --- /dev/null +++ b/dev-python/keep/keep-2.11.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Personal shell command keeper and snippets manager" +HOMEPAGE=" + https://github.com/orkohunter/keep/ + https://pypi.org/project/keep/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + dev-python/click[${PYTHON_USEDEP}] + dev-python/pygithub[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/terminaltables3[${PYTHON_USEDEP}] +" + +python_test() { + "${EPYTHON}" - <<-EOF || die "Smoke test failed with ${EPYTHON}" + import datetime, sys, os + import keep.cli, keep.utils + + # avoid automatic initialization, otherwise keep basically just creates + # this directory and exits + # see https://github.com/OrkoHunter/keep/blob/8dddc00aaaf0e53edbd2477a02d3fe53e38b7f28/keep/utils.py#L53-L63 + os.makedirs(keep.utils.dir_path, exist_ok=True) + + # keep tries to check newest version on pypi once a day, let's pretend + # that this check was already done + # see https://github.com/OrkoHunter/keep/blob/8dddc00aaaf0e53edbd2477a02d3fe53e38b7f28/keep/utils.py#L23-L50 + with open(os.path.join(keep.utils.dir_path, 'update_check.txt'), 'w') as f: f.write(datetime.date.today().strftime("%m/%d/%Y")) + + sys.exit(keep.cli.cli()) + EOF +}