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.862d7cd8ac5600f85760044e120335df28e7969f.patrick@gentoo
1 commit: 862d7cd8ac5600f85760044e120335df28e7969f
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 25 07:14:20 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=862d7cd8
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-3.1.0.ebuild | 48 +++++++++++++++++++++++++++++++++++
14 2 files changed, 49 insertions(+)
15
16 diff --git a/dev-python/peewee/Manifest b/dev-python/peewee/Manifest
17 index 20e175ad366..e83f4649a39 100644
18 --- a/dev-python/peewee/Manifest
19 +++ b/dev-python/peewee/Manifest
20 @@ -1,3 +1,4 @@
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 +DIST peewee-3.1.0.tar.gz 705099 BLAKE2B 1dc528082337ae509fc9f91c521d7bf036179ad6b1a5a93e113d594ce819d3a9cdbb7e687b51acacdaf242d542dad138ce2a21f9dcc19483c7361788329a53ed SHA512 628eea27d51017a6ab87aae9ae851d749b0f437fe1806957b23408ad3c97bbb93e5b84c66c5e70bfb7b55c9f29a0c517b84e65adc0f979da450987d670661e84
25
26 diff --git a/dev-python/peewee/peewee-3.1.0.ebuild b/dev-python/peewee/peewee-3.1.0.ebuild
27 new file mode 100644
28 index 00000000000..2a0505fdaa2
29 --- /dev/null
30 +++ b/dev-python/peewee/peewee-3.1.0.ebuild
31 @@ -0,0 +1,48 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
37 +PYTHON_REQ_USE="sqlite(+)"
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Small python ORM"
42 +HOMEPAGE="https://github.com/coleifer/peewee/"
43 +SRC_URI="https://github.com/coleifer/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="doc examples"
49 +
50 +DEPEND="dev-python/cython[${PYTHON_USEDEP}]
51 + dev-python/setuptools[${PYTHON_USEDEP}]
52 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
53 +# Req'd to ensure a unique tmp.db for each python impl running the testsuite.
54 +DISTUTILS_IN_SOURCE_BUILD=1
55 +
56 +python_prepare_all() {
57 + sed -i -e "s#test_suite='tests',##g;" ./setup.py || die
58 + distutils-r1_python_prepare_all
59 +}
60 +
61 +python_compile() {
62 + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
63 + distutils-r1_python_compile
64 +}
65 +
66 +python_compile_all() {
67 + use doc && emake -C docs html
68 +}
69 +
70 +python_test() {
71 + # Testsuite run using runtests.py does not require deps listed in previous ebuild
72 + "${PYTHON}" ./runtests.py || die "tests failed under ${EPYTHON}"
73 +}
74 +
75 +python_install_all() {
76 + use doc && local HTML_DOCS=( docs/_build/html/. )
77 + use examples && DOCS=( examples/ )
78 + distutils-r1_python_install_all
79 +}