public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/keep/
Date: Tue,  7 Mar 2023 17:18:05 +0000 (UTC)	[thread overview]
Message-ID: <1678209473.d17c40bc7422658eecd8dd08d03870f97135df6e.sam@gentoo> (raw)

commit:     d17c40bc7422658eecd8dd08d03870f97135df6e
Author:     Petr Vaněk <arkamar <AT> atlas <DOT> cz>
AuthorDate: Tue Mar  7 16:47:15 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar  7 17:17:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d17c40bc

dev-python/keep: enable py3.11

- enable python3_11
- use pypi eclass
- break HOMEPAGE to multiple lines
- introduce simple smoketest which just prints usage message, however it
  is necessary to prepare environment in order to avoid internet
  connections or early exit

Closes: https://bugs.gentoo.org/896792
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/29978
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/keep/keep-2.10.1-r2.ebuild | 44 +++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/dev-python/keep/keep-2.10.1-r2.ebuild b/dev-python/keep/keep-2.10.1-r2.ebuild
new file mode 100644
index 000000000000..560d061eb528
--- /dev/null
+++ b/dev-python/keep/keep-2.10.1-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+inherit distutils-r1 pypi
+
+DESCRIPTION="Personal shell command keeper and snippets manager"
+HOMEPAGE="
+	https://pypi.org/project/keep/
+	https://github.com/orkohunter/keep
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+	dev-python/click[${PYTHON_USEDEP}]
+	dev-python/PyGithub[${PYTHON_USEDEP}]
+	dev-python/requests[${PYTHON_USEDEP}]
+	dev-python/terminaltables[${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
+}


             reply	other threads:[~2023-03-07 17:18 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-07 17:18 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-18 10:08 [gentoo-commits] repo/gentoo:master commit in: dev-python/keep/ Michał Górny
2025-01-18  9:49 Arthur Zamarin
2025-01-18  8:24 Michał Górny
2024-12-30  7:48 Michał Górny
2024-08-10 13:20 Michał Górny
2023-11-30  3:09 Sam James
2023-11-09 21:12 Arthur Zamarin
2023-04-08 12:24 Michał Górny
2023-04-08  8:47 Arthur Zamarin
2023-01-10 14:31 Michał Górny
2022-06-16 11:24 Michał Górny
2022-06-16  9:37 Jakov Smolić
2022-05-13 11:02 Arthur Zamarin
2022-05-13 11:02 Arthur Zamarin
2021-03-30 22:27 Michał Górny
2021-03-30 22:02 Sam James
2021-02-24  7:38 Michael Palimaka
2020-12-15  6:16 Sam James
2020-12-15  6:16 Sam James
2020-12-03 17:37 Thomas Deutschmann
2020-12-03 14:55 Aaron Bauman
2020-12-03  9:39 Michael Palimaka
2020-12-03  9:39 Michael Palimaka
2020-11-09  8:06 Michael Palimaka
2020-09-06 10:35 Michael Palimaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1678209473.d17c40bc7422658eecd8dd08d03870f97135df6e.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox