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/pyGPG/
Date: Mon,  1 May 2023 15:00:18 +0000 (UTC)	[thread overview]
Message-ID: <1682952748.c46540c9fbae4300ce29a90b71b2c20e0d51685a.sam@gentoo> (raw)

commit:     c46540c9fbae4300ce29a90b71b2c20e0d51685a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon May  1 14:52:28 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May  1 14:52:28 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c46540c9

dev-python/pyGPG: add 0.2_p20220808

Snapshot which has tests so let's add Python 3.11 to it as well.

Closes: https://bugs.gentoo.org/896822
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/pyGPG/Manifest                              |  1 +
 .../{pyGPG-9999.ebuild => pyGPG-0.2_p20220808.ebuild}  | 18 ++++++++++++++++--
 dev-python/pyGPG/pyGPG-9999.ebuild                     | 18 ++++++++++++++++--
 3 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/dev-python/pyGPG/Manifest b/dev-python/pyGPG/Manifest
index b05cbd55dc19..9f6ec7e8ff54 100644
--- a/dev-python/pyGPG/Manifest
+++ b/dev-python/pyGPG/Manifest
@@ -1 +1,2 @@
 DIST pyGPG-0.2.tar.gz 15439 BLAKE2B 92c82b8b23c279461a872f118c636fa9cdae3f44910fc34a357983b0b4afea2a7b13c6400499a0fdbb4365357ade64294642178ca07a79ab3b7df89e60146e73 SHA512 93d892a57a27b254bfdc9778b73d341dfec654c2104c578014628df78c43beaf93eafb571ac544d52f334e63f6e5b8c0cfad7c8a0d585ee7211e8649efce8c67
+DIST pyGPG-0.2_p20220808.gh.tar.gz 31955 BLAKE2B ae671b7bf685b1072364dbfcf79bca8fa2dadd034fbdf7a721d7a2cfec44e8d8ffa22b08c14414c8774422b6a62af8d511bd31bd15bd68d89632cde031ec0906 SHA512 85c8d67e71e91cfb26b1e0087889d7cd4fccae9ddcffcd3e3f9d208da7fd352c3273c580e3b7c284c5ab4c2a53c56f4530e5587dc22869098a408a1dfcd1e257

diff --git a/dev-python/pyGPG/pyGPG-9999.ebuild b/dev-python/pyGPG/pyGPG-0.2_p20220808.ebuild
similarity index 70%
copy from dev-python/pyGPG/pyGPG-9999.ebuild
copy to dev-python/pyGPG/pyGPG-0.2_p20220808.ebuild
index 337db049369c..6749e63d1904 100644
--- a/dev-python/pyGPG/pyGPG-9999.ebuild
+++ b/dev-python/pyGPG/pyGPG-0.2_p20220808.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9,10} )
+PYTHON_COMPAT=( python3_{9..11} )
 
 inherit distutils-r1
 
@@ -12,9 +12,12 @@ if [[ ${PV} == *9999 ]]; then
 	inherit git-r3
 	EGIT_REPO_URI="https://github.com/dol-sen/pyGPG.git"
 	EGIT_BRANCH="master"
+elif [[ ${PV} == *_p* ]] ; then
+	MY_COMMIT="eb44ec69978044809325a0a9c8972d1d4f573b47"
+	SRC_URI="https://github.com/dol-sen/pyGPG/archive/${MY_COMMIT}.tar.gz -> ${P}.gh.tar.gz"
+	S="${WORKDIR}"/${PN}-${MY_COMMIT}
 else
 	SRC_URI="https://dev.gentoo.org/~dolsen/releases/pyGPG/${P}.tar.gz"
-	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
 fi
 
 DESCRIPTION="A python interface wrapper for gnupg's gpg command"
@@ -22,9 +25,20 @@ HOMEPAGE="https://github.com/dol-sen/pyGPG"
 
 LICENSE="BSD"
 SLOT="0"
+if [[ ${PV} != *9999 ]] ; then
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+fi
 
 RDEPEND="app-crypt/gnupg"
 
+EPYTEST_DESELECT=(
+	# Expired keys
+	test/pyGPG/test_gpg.py::test_listkeys2
+	test/pyGPG/test_gpg.py::test_listkey2
+	test/pyGPG/test_gpg.py::test_listkey
+	test/pyGPG/test_gpg.py::test_fingerprint2
+)
+
 distutils_enable_tests pytest
 
 pkg_postinst() {

diff --git a/dev-python/pyGPG/pyGPG-9999.ebuild b/dev-python/pyGPG/pyGPG-9999.ebuild
index 337db049369c..6749e63d1904 100644
--- a/dev-python/pyGPG/pyGPG-9999.ebuild
+++ b/dev-python/pyGPG/pyGPG-9999.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9,10} )
+PYTHON_COMPAT=( python3_{9..11} )
 
 inherit distutils-r1
 
@@ -12,9 +12,12 @@ if [[ ${PV} == *9999 ]]; then
 	inherit git-r3
 	EGIT_REPO_URI="https://github.com/dol-sen/pyGPG.git"
 	EGIT_BRANCH="master"
+elif [[ ${PV} == *_p* ]] ; then
+	MY_COMMIT="eb44ec69978044809325a0a9c8972d1d4f573b47"
+	SRC_URI="https://github.com/dol-sen/pyGPG/archive/${MY_COMMIT}.tar.gz -> ${P}.gh.tar.gz"
+	S="${WORKDIR}"/${PN}-${MY_COMMIT}
 else
 	SRC_URI="https://dev.gentoo.org/~dolsen/releases/pyGPG/${P}.tar.gz"
-	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
 fi
 
 DESCRIPTION="A python interface wrapper for gnupg's gpg command"
@@ -22,9 +25,20 @@ HOMEPAGE="https://github.com/dol-sen/pyGPG"
 
 LICENSE="BSD"
 SLOT="0"
+if [[ ${PV} != *9999 ]] ; then
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+fi
 
 RDEPEND="app-crypt/gnupg"
 
+EPYTEST_DESELECT=(
+	# Expired keys
+	test/pyGPG/test_gpg.py::test_listkeys2
+	test/pyGPG/test_gpg.py::test_listkey2
+	test/pyGPG/test_gpg.py::test_listkey
+	test/pyGPG/test_gpg.py::test_fingerprint2
+)
+
 distutils_enable_tests pytest
 
 pkg_postinst() {


             reply	other threads:[~2023-05-01 15:00 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-01 15:00 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-05-03  6:33 [gentoo-commits] repo/gentoo:master commit in: dev-python/pyGPG/ Arthur Zamarin
2023-05-03  5:35 Sam James
2023-05-03  5:25 Sam James
2023-05-02 20:50 Sam James
2023-05-02 20:50 Sam James
2023-05-02 20:26 Sam James
2023-02-16  3:29 Sam James
2022-03-18 11:41 Michał Górny
2022-03-18  9:02 Arthur Zamarin
2022-03-17  7:45 Agostino Sarubbo
2022-03-16 23:53 Sam James
2022-03-15 17:56 Jakov Smolić
2022-03-15 11:27 Jakov Smolić
2022-03-15 11:27 Jakov Smolić
2022-02-02 15:22 Craig Andrews
2022-01-29 21:19 Michał Górny
2021-09-14 14:15 Yixun Lan
2021-07-11 13:00 Brian Dolbec
2021-06-01 10:44 Sam James
2021-02-13 21:27 Brian Dolbec
2020-04-18 17:55 Craig Andrews
2020-02-26 12:18 Michał Górny
2019-07-26 22:21 Aaron Bauman
2019-06-16 15:01 David Seifert
2019-06-16 15:01 David Seifert
2019-06-16 15:01 David Seifert
2017-07-30  9:15 Michał Górny
2017-05-12 15:19 Manuel Rüger
2017-04-29 11:39 Jeroen Roovers
2017-03-11 17:07 Agostino Sarubbo
2017-03-04 14:02 Agostino Sarubbo
2017-02-17  6:03 Markus Meier
2017-02-16 20:34 Michael Weber
2017-02-14 15:39 Agostino Sarubbo
2017-02-14 14:52 Agostino Sarubbo
2016-12-24 21:54 Brian Dolbec
2016-10-09  7:47 Pacho Ramos
2016-02-22  0:43 Stephen Klimaszewski
2016-01-23 19:28 Brian Dolbec

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=1682952748.c46540c9fbae4300ce29a90b71b2c20e0d51685a.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