Gentoo Archives: gentoo-commits

From: "Aaron W. Swenson" <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/pgxnclient/
Date: Mon, 01 Jun 2020 12:20:42
Message-Id: 1591014024.dd16b275d4a6f22bd1d09555092c980f126655e4.titanofold@gentoo
1 commit: dd16b275d4a6f22bd1d09555092c980f126655e4
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 1 12:20:17 2020 +0000
4 Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 1 12:20:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd16b275
7
8 dev-db/pgxnclient: Bump to 1.3
9
10 Compatible with Python 3.6+ (allegedly).
11
12 Bump EAPI to 7.
13
14 Tests now using pytest, but the test data isn't yet included. So, tests fail.
15
16 Bug: https://bugs.gentoo.org/718270
17 Package-Manager: Portage-2.3.99, Repoman-2.3.22
18 Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org>
19
20 dev-db/pgxnclient/Manifest | 1 +
21 dev-db/pgxnclient/pgxnclient-1.3.ebuild | 39 +++++++++++++++++++++++++++++++++
22 2 files changed, 40 insertions(+)
23
24 diff --git a/dev-db/pgxnclient/Manifest b/dev-db/pgxnclient/Manifest
25 index 571fa88c11f..8cb8e080620 100644
26 --- a/dev-db/pgxnclient/Manifest
27 +++ b/dev-db/pgxnclient/Manifest
28 @@ -1,2 +1,3 @@
29 DIST pgxnclient-1.2.1.tar.gz 87275 BLAKE2B 794ee6201988ba523cdcb4ee5a6287625cb3dd8a30ad750266d7adb739792b7f8e852d5d01f746fb6b05b54c98d677854dceacc57e41b05efba094efabc6a129 SHA512 3fa864b1ebb5dedaf75515b5efe4c453f02acff558f7b82d2648da62e58c93e050049a7688171a69593784d9963bb62f4ad3674d526284554dbeb4f4a4ea1dbf
30 DIST pgxnclient-1.2.tar.gz 86436 BLAKE2B 796191d31000ff75360e0990bb20ca88af0fb1b908aac9ca7a6b7309b5420c56d045a67c775e8d5dda166f37ad956314f65bd2032c114cac7414bef9ad1a0d8e SHA512 d677f8d5346caf4de5d7e0d4e4031b8bdd932e343af7fc33e8895ebe51b1e9e6a11d7300d9e98ddc10242854f7d39c0a4196f41938e42f0b0e5158454e386deb
31 +DIST pgxnclient-1.3.tar.gz 51976 BLAKE2B 84ae5573588e6da0b01d5b05e296adc09f28a0b21ff81e5f2f14f3035a98ad5eb834d6793acf0a48a8b19190b989562e75094341f7c01b371028a0dd6a87b0f4 SHA512 fd9326107334d473db3466f776021186a5add389a93266b000c143131a0214b9773dd4cdd4688575cd720c8357afce1473838dea4aa5ff2564dcbc2c359de2dd
32
33 diff --git a/dev-db/pgxnclient/pgxnclient-1.3.ebuild b/dev-db/pgxnclient/pgxnclient-1.3.ebuild
34 new file mode 100644
35 index 00000000000..586f7287262
36 --- /dev/null
37 +++ b/dev-db/pgxnclient/pgxnclient-1.3.ebuild
38 @@ -0,0 +1,39 @@
39 +# Copyright 1999-2020 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=7
43 +
44 +PYTHON_COMPAT=( python3_{6..9} )
45 +DISTUTILS_USE_SETUPTOOLS=rdepend
46 +inherit distutils-r1
47 +
48 +DESCRIPTION="PostgreSQL Extension Network Client"
49 +HOMEPAGE="http://pgxnclient.projects.postgresql.org/ https://pypi.org/project/pgxnclient"
50 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
51 +
52 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
53 +
54 +LICENSE="BSD"
55 +SLOT="0"
56 +
57 +IUSE="test"
58 +
59 +# Test data isn't included in releases. So, the tests fail.
60 +# https://github.com/pgxn/pgxnclient/issues/36
61 +RESTRICT="test
62 + !test? ( test )"
63 +
64 +distutils_enable_tests pytest
65 +
66 +RDEPEND="dev-db/postgresql:*[server]
67 + dev-python/six[${PYTHON_USEDEP}]
68 +"
69 +DEPEND+="${RDEPEND}
70 + test? ( dev-python/mock[${PYTHON_USEDEP}] )
71 +"
72 +
73 +src_prepare() {
74 + sed "s/find_packages()/find_packages(exclude=['tests'])/" -i setup.py || die
75 +
76 + default
77 +}