diff options
Diffstat (limited to 'dev-python/keep')
| -rw-r--r-- | dev-python/keep/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/keep/keep-2.11.ebuild | 45 | ||||
| -rw-r--r-- | dev-python/keep/metadata.xml | 10 |
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/keep/Manifest b/dev-python/keep/Manifest new file mode 100644 index 000000000000..fbcab25257c7 --- /dev/null +++ b/dev-python/keep/Manifest @@ -0,0 +1 @@ +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..e4b0f6b85fec --- /dev/null +++ b/dev-python/keep/keep-2.11.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{13..14} ) + +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 +} diff --git a/dev-python/keep/metadata.xml b/dev-python/keep/metadata.xml new file mode 100644 index 000000000000..5e95859f915a --- /dev/null +++ b/dev-python/keep/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
