1 |
commit: 5f29e89b0416a2eb5f8abab4e6ba6a66d2f87e8b |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Thu Mar 26 23:13:23 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 26 23:13:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f29e89b |
7 |
|
8 |
dev-python/cherrypy-17.4.2: Version bump to 17.4.2, add py38 |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-2.3.96, Repoman-2.3.21 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
dev-python/cherrypy/cherrypy-17.4.2.ebuild | 61 ++++++++++++++++++++++++++++++ |
15 |
1 file changed, 61 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/cherrypy/cherrypy-17.4.2.ebuild b/dev-python/cherrypy/cherrypy-17.4.2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..26d9b18b652 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/cherrypy/cherrypy-17.4.2.ebuild |
22 |
@@ -0,0 +1,61 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) |
29 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+MY_P="CherryPy-${PV}" |
33 |
+ |
34 |
+DESCRIPTION="CherryPy is a pythonic, object-oriented HTTP framework" |
35 |
+HOMEPAGE="https://www.cherrypy.org https://pypi.org/project/CherryPy/" |
36 |
+SRC_URI="mirror://pypi/C/CherryPy/${MY_P}.tar.gz" |
37 |
+S="${WORKDIR}/${MY_P}" |
38 |
+ |
39 |
+LICENSE="BSD" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64" |
42 |
+IUSE="ssl test" |
43 |
+ |
44 |
+# tests fail hard with no error, i have no idea how to debug |
45 |
+RESTRICT="test" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ >=dev-python/six-1.11.0[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/cheroot-8.2.1[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/portend-2.1.1[${PYTHON_USEDEP}] |
51 |
+ dev-python/more-itertools[${PYTHON_USEDEP}] |
52 |
+ dev-python/zc-lockfile[${PYTHON_USEDEP}] |
53 |
+ dev-python/jaraco-collections[${PYTHON_USEDEP}] |
54 |
+ dev-python/contextlib2[${PYTHON_USEDEP}] |
55 |
+ ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )" |
56 |
+BDEPEND="${RDEPEND} |
57 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]" |
58 |
+# test? ( |
59 |
+# dev-python/routes[${PYTHON_USEDEP}] |
60 |
+# dev-python/simplejson[${PYTHON_USEDEP}] |
61 |
+# dev-python/objgraph[${PYTHON_USEDEP}] |
62 |
+# dev-python/backports-unittest-mock[${PYTHON_USEDEP}] |
63 |
+# dev-python/path-py[${PYTHON_USEDEP}] |
64 |
+# dev-python/requests-toolbelt[${PYTHON_USEDEP}] |
65 |
+# ) |
66 |
+ |
67 |
+distutils_enable_tests pytest |
68 |
+ |
69 |
+python_prepare_all() { |
70 |
+ # UnicodeEncodeError: 'ascii' codec can't encode character u'\u2603' in position 0: ordinal not in range(128) |
71 |
+ sed -e 's|@pytest.mark.xfail(py27_on_windows|@pytest.mark.xfail(sys.version_info < (3,)|' \ |
72 |
+ -i cherrypy/test/test_static.py || die |
73 |
+ |
74 |
+ sed -r -e '/(pytest-sugar|pytest-cov)/ d' \ |
75 |
+ -i setup.py || die |
76 |
+ |
77 |
+ sed -r -e 's:--cov-report[[:space:]]+[[:graph:]]+::' \ |
78 |
+ -e 's:--cov[[:graph:]]+::' \ |
79 |
+ -e 's:--doctest[[:graph:]]+::' \ |
80 |
+ -i pytest.ini || die |
81 |
+ |
82 |
+ distutils-r1_python_prepare_all |
83 |
+} |