Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/toro/files/, dev-python/toro/
Date: Wed, 28 Jun 2017 04:03:01
Message-Id: 1498622413.9d0dcd896f7433c28ad09b76c07b78a9fc6933f1.bicatali@gentoo
1 commit: 9d0dcd896f7433c28ad09b76c07b78a9fc6933f1
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 27 18:41:18 2017 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 28 04:00:13 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d0dcd89
7
8 dev-python/toro: initial import
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-python/toro/Manifest | 1 +
13 .../toro/files/toro-1.0.1-no-test-install.patch | 11 +++++++
14 dev-python/toro/metadata.xml | 15 +++++++++
15 dev-python/toro/toro-1.0.1.ebuild | 38 ++++++++++++++++++++++
16 4 files changed, 65 insertions(+)
17
18 diff --git a/dev-python/toro/Manifest b/dev-python/toro/Manifest
19 new file mode 100644
20 index 00000000000..f4c3b4af3af
21 --- /dev/null
22 +++ b/dev-python/toro/Manifest
23 @@ -0,0 +1 @@
24 +DIST toro-1.0.1.tar.gz 57343 SHA256 c5452e477e0d20ec459612a3be9eeed93e8dc5253423b604f73692ce628c6bc4 SHA512 a8a498868ff32dbd8ba9a0adf62b1fa2e9dea4f34be4e2701c08c7b58ef28b8daf4eab93916855a711a557049e587e886d6ba362487c151c5db34f6135f4f3e5 WHIRLPOOL a31ab1a0b33281cc7e248e297e77825a2015f57727b8d58912fabb17996e3e5e9a737de5748966abaf3db102a37e89fad2be20ca7afdc94773288f8382940d35
25
26 diff --git a/dev-python/toro/files/toro-1.0.1-no-test-install.patch b/dev-python/toro/files/toro-1.0.1-no-test-install.patch
27 new file mode 100644
28 index 00000000000..637f9091ac4
29 --- /dev/null
30 +++ b/dev-python/toro/files/toro-1.0.1-no-test-install.patch
31 @@ -0,0 +1,11 @@
32 +--- a/setup.py.orig 2017-06-27 18:38:37.256325950 +0000
33 ++++ b/setup.py 2017-06-27 18:38:48.896243950 +0000
34 +@@ -45,8 +45,6 @@
35 + kwargs['use_2to3'] = True
36 +
37 + packages = ['toro']
38 +-if "test" in sys.argv:
39 +- packages.append('test')
40 +
41 + setup(name='toro',
42 + version='1.0.1',
43
44 diff --git a/dev-python/toro/metadata.xml b/dev-python/toro/metadata.xml
45 new file mode 100644
46 index 00000000000..214465d5299
47 --- /dev/null
48 +++ b/dev-python/toro/metadata.xml
49 @@ -0,0 +1,15 @@
50 +<?xml version="1.0" encoding="UTF-8"?>
51 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
52 +<pkgmetadata>
53 + <maintainer type="project">
54 + <email>python@g.o</email>
55 + <name>Python</name>
56 + </maintainer>
57 + <longdescription>
58 + A set of locking and synchronizing primitives analogous to those in Python’s
59 + threading module or Gevent’s coros, for use with Tornado’s gen.engine.
60 + </longdescription>
61 + <upstream>
62 + <remote-id type="pypi">toro</remote-id>
63 + </upstream>
64 +</pkgmetadata>
65
66 diff --git a/dev-python/toro/toro-1.0.1.ebuild b/dev-python/toro/toro-1.0.1.ebuild
67 new file mode 100644
68 index 00000000000..195bd0f7796
69 --- /dev/null
70 +++ b/dev-python/toro/toro-1.0.1.ebuild
71 @@ -0,0 +1,38 @@
72 +# Copyright 1999-2017 Gentoo Foundation
73 +# Distributed under the terms of the GNU General Public License v2
74 +
75 +EAPI=6
76 +
77 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
78 +
79 +inherit distutils-r1
80 +
81 +DESCRIPTION="Synchronization primitives for Tornado coroutines"
82 +HOMEPAGE="https://github.com/ajdavis/toro/"
83 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
84 +
85 +LICENSE="Apache-2.0"
86 +SLOT="0"
87 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
88 +
89 +IUSE="examples test"
90 +
91 +RDEPEND="
92 + virtual/python-futures[${PYTHON_USEDEP}]
93 + www-servers/tornado[${PYTHON_USEDEP}]
94 +"
95 +DEPEND="
96 + dev-python/setuptools[${PYTHON_USEDEP}]
97 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )
98 +"
99 +PATCHES=(
100 + "${FILESDIR}"/${P}-no-test-install.patch
101 +)
102 +python_test() {
103 + esetup.py test
104 +}
105 +
106 +python_install_all() {
107 + use examples && dodoc -r examples
108 + distutils-r1_python_install_all
109 +}