Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/psycopg/
Date: Wed, 05 Aug 2020 15:10:44
Message-Id: 1596640102.dabad89499b7ba357f023ad11b974e3831e82ca6.mgorny@gentoo
1 commit: dabad89499b7ba357f023ad11b974e3831e82ca6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 5 15:08:22 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 5 15:08:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dabad894
7
8 dev-python/psycopg: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/psycopg/Manifest | 1 -
13 dev-python/psycopg/psycopg-2.8.4.ebuild | 82 ---------------------------------
14 2 files changed, 83 deletions(-)
15
16 diff --git a/dev-python/psycopg/Manifest b/dev-python/psycopg/Manifest
17 index 93ad4779f79..4c2172a1c62 100644
18 --- a/dev-python/psycopg/Manifest
19 +++ b/dev-python/psycopg/Manifest
20 @@ -1,3 +1,2 @@
21 DIST psycopg2-2.7.7.tar.gz 427474 BLAKE2B bc721b721693bc5f560a4829e84715d15e8c14523ada00109c7d7ba916c91928082fff286bd3c2ff5987c0436443128d1408ac9de073ad538b1e356fc73aaf8f SHA512 032344957c00bf659ca5e46f54f827a6d79809e370d661cd349e2ce935873359bcc4f440b74c6f14658bf1cd9598b6d884abae507fd33db9e07b01fc87967fb0
22 -DIST psycopg2-2.8.4.tar.gz 377883 BLAKE2B 6d25a96d6fb45cc450b20fb570741538c2870e0ab205b9aab1018d4ef716bfba129235a422f2a0dfd182162bff948db8a2e4d23cd57dc01971f2e6f734ebf90e SHA512 d4590c6e4e310d280b6b341cb23427b56b04c1ef08e877f0d99a79c6b00b959307bb18defaf1d9cea58482fb974a78760c5f26a3ece8c1f34ae1840570a71a28
23 DIST psycopg2-2.8.5.tar.gz 380874 BLAKE2B 843321175499bf00b080d3e58ce0d586e674585af4be5a08866b5dbb68256ff9232d3c25e2603a3a0920a6c91927eb9fbb5942acd429be5dab9177c65da0c32e SHA512 d4cf9b94573b90fe56555ea5cf841aa0c4c806770f92f35a7ef2531999bb50f98eb1276e56f1540b5f2695e443bac7e9cb8bbfbd24ed82164f99663259d2da3e
24
25 diff --git a/dev-python/psycopg/psycopg-2.8.4.ebuild b/dev-python/psycopg/psycopg-2.8.4.ebuild
26 deleted file mode 100644
27 index 15c005f09ae..00000000000
28 --- a/dev-python/psycopg/psycopg-2.8.4.ebuild
29 +++ /dev/null
30 @@ -1,82 +0,0 @@
31 -# Copyright 1999-2020 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -
36 -PYTHON_COMPAT=( python2_7 python3_{6..9} )
37 -
38 -inherit distutils-r1 flag-o-matic
39 -
40 -MY_PN="${PN}2"
41 -MY_P="${MY_PN}-${PV}"
42 -
43 -DESCRIPTION="PostgreSQL database adapter for Python"
44 -HOMEPAGE="https://www.psycopg.org https://pypi.org/project/psycopg2/"
45 -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
46 -S=${WORKDIR}/${MY_P}
47 -
48 -LICENSE="LGPL-3+"
49 -SLOT="2"
50 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
51 -IUSE="debug doc"
52 -
53 -RDEPEND=">=dev-db/postgresql-8.1:*"
54 -DEPEND="${RDEPEND}
55 - doc? (
56 - >=dev-python/pygments-2.2[${PYTHON_USEDEP}]
57 - >=dev-python/sphinx-1.6
58 - )"
59 -
60 -# Avoid using mxdatetime: https://bugs.gentoo.org/452028
61 -PATCHES=(
62 - "${FILESDIR}"/psycopg-2.8.3-avoid-mxdatetime.patch
63 -)
64 -
65 -python_compile() {
66 - local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS}
67 -
68 - ! python_is_python3 && append-flags -fno-strict-aliasing
69 -
70 - distutils-r1_python_compile
71 -}
72 -
73 -python_prepare_all() {
74 - if use debug; then
75 - sed -i 's/^\(define=\)/\1PSYCOPG_DEBUG,/' setup.cfg || die
76 - fi
77 -
78 - distutils-r1_python_prepare_all
79 -}
80 -
81 -python_compile_all() {
82 - use doc && emake -C doc/src -j1 html text
83 -}
84 -
85 -src_test() {
86 - initdb -D "${T}"/pgsql || die
87 - # TODO: random port
88 - pg_ctl -w -D "${T}"/pgsql start \
89 - -o "-h '' -k '${T}'" || die
90 - createdb -h "${T}" psycopg2_test || die
91 -
92 - local -x PSYCOPG2_TESTDB_HOST="${T}"
93 - distutils-r1_src_test
94 -
95 - pg_ctl -w -D "${T}"/pgsql stop || die
96 -}
97 -
98 -python_test() {
99 - "${EPYTHON}" -c "
100 -import tests
101 -tests.unittest.main(defaultTest='tests.test_suite')
102 -" --verbose || die "Tests fail with ${EPYTHON}"
103 -}
104 -
105 -python_install_all() {
106 - if use doc; then
107 - dodoc -r doc/src/_build/html
108 - dodoc doc/src/_build/text/*
109 - fi
110 -
111 - distutils-r1_python_install_all
112 -}