Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/peewee/
Date: Sun, 25 Feb 2018 07:28:29
Message-Id: 1519543700.4b00afdadaa15b7c2262dd6224a183696b50d8c3.patrick@gentoo
1 commit: 4b00afdadaa15b7c2262dd6224a183696b50d8c3
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 25 06:32:50 2018 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 25 07:28:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b00afda
7
8 dev-python/peewee: Bump
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-python/peewee/Manifest | 1 +
13 dev-python/peewee/peewee-2.8.4.ebuild | 48 +++++++++++++++++++++++++++++++++++
14 2 files changed, 49 insertions(+)
15
16 diff --git a/dev-python/peewee/Manifest b/dev-python/peewee/Manifest
17 index c182267d082..20e175ad366 100644
18 --- a/dev-python/peewee/Manifest
19 +++ b/dev-python/peewee/Manifest
20 @@ -1,2 +1,3 @@
21 DIST peewee-2.7.4.tar.gz 608818 BLAKE2B 3749b84b903240851f4f765a1d19d9629600563991b4474027e69f134bdd176abed322b37de69ce99412ecfa19bef78d6d8a52b3629481a99a0e762841d8a1f3 SHA512 c72391316c8bd1f712bcb26d4d6e5ef386a415da536d78cade35d42bbb9c8c6d7b0494bf329bd67e3ac5b91a2d76e97365376b0e91a5c6a5b78ab1696f7576cb
22 DIST peewee-2.8.3.tar.gz 639529 BLAKE2B 2d7bd7745b406e2b512a277667cf4c393cdc8ccf193af719d49e9c7e39bce1da3a634c0ef39efda8dbbdb5bdeb9ed5084abf8a304766f4f0216b1bf9abed2936 SHA512 03a2a24acc12c024d9ffc2ccdc70e763e4879f65221b44cda7ee41083e85e8fa5ffa39227a20baa32368d6bd1f104621bb431740430ef6eb0457225fc78e76e4
23 +DIST peewee-2.8.4.tar.gz 644430 BLAKE2B cbfc829a7abef3ccbbdc863efa9a04d2ad07f052fad11d0e26d8c4902c60c01ad532ae127166ca253f0f656fe9c69d1f1044779d3d9e612e5348c72c10582b1d SHA512 1fa421d3622c63f42901e1673ed1fb47676030861df9758bed801afbcc4ab3e793650fce30e79c7b39d7388a0a2230bfe1a378e43e9b7eafbb29d4bd354ee057
24
25 diff --git a/dev-python/peewee/peewee-2.8.4.ebuild b/dev-python/peewee/peewee-2.8.4.ebuild
26 new file mode 100644
27 index 00000000000..2a0505fdaa2
28 --- /dev/null
29 +++ b/dev-python/peewee/peewee-2.8.4.ebuild
30 @@ -0,0 +1,48 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
36 +PYTHON_REQ_USE="sqlite(+)"
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Small python ORM"
41 +HOMEPAGE="https://github.com/coleifer/peewee/"
42 +SRC_URI="https://github.com/coleifer/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="doc examples"
48 +
49 +DEPEND="dev-python/cython[${PYTHON_USEDEP}]
50 + dev-python/setuptools[${PYTHON_USEDEP}]
51 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
52 +# Req'd to ensure a unique tmp.db for each python impl running the testsuite.
53 +DISTUTILS_IN_SOURCE_BUILD=1
54 +
55 +python_prepare_all() {
56 + sed -i -e "s#test_suite='tests',##g;" ./setup.py || die
57 + distutils-r1_python_prepare_all
58 +}
59 +
60 +python_compile() {
61 + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
62 + distutils-r1_python_compile
63 +}
64 +
65 +python_compile_all() {
66 + use doc && emake -C docs html
67 +}
68 +
69 +python_test() {
70 + # Testsuite run using runtests.py does not require deps listed in previous ebuild
71 + "${PYTHON}" ./runtests.py || die "tests failed under ${EPYTHON}"
72 +}
73 +
74 +python_install_all() {
75 + use doc && local HTML_DOCS=( docs/_build/html/. )
76 + use examples && DOCS=( examples/ )
77 + distutils-r1_python_install_all
78 +}