1 |
commit: 836ae4fbbac161b4c2c1e373fd9e2ba182e5091f |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 24 01:37:45 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 24 03:21:06 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=836ae4fb |
7 |
|
8 |
dev-python/py: Bump to v1.5.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
dev-python/py/Manifest | 1 + |
13 |
.../py/files/py-1.5.2-skip-apiwarn-pytest31.patch | 14 +++++++ |
14 |
dev-python/py/py-1.5.2.ebuild | 46 ++++++++++++++++++++++ |
15 |
3 files changed, 61 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/py/Manifest b/dev-python/py/Manifest |
18 |
index 046a9fbbae3..c774ff54a63 100644 |
19 |
--- a/dev-python/py/Manifest |
20 |
+++ b/dev-python/py/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST py-1.4.30.tar.gz 191796 BLAKE2B 1d908f5f29788868cb7c4da49bc8a9343176030df4549a992e06245d1d56d74ddf0477048992d282aa59e6ace1ff695a7e2c2c6f00b55f185bc91d0df8b6a6dd SHA512 dd9d92f8eaf8e5fc61bfb7feb4b07df5ae1745ebf88bcbe9d62589caa9e1f7d8beae5b2d20b407520919e47391cd50cf2d5323556fa5bd90a37e120b1d394d7a |
23 |
DIST py-1.4.34.tar.gz 194450 BLAKE2B 3e5733bb53d4f7eb8e6d43a5140f2ddf692d4272b564a9dd4fe8ede2cb4d0296e7c8764957bf4615f5cc4272d07997d126133dfce8ac8837f01d91bf557023d2 SHA512 2e19c82c8315274bffe0ba2c7e20ae3af95f942c40c16121ec953af186f8ff33e8f427c070e137bb04b7cc6dcc6779e35df3911c08595fd3294b5ec9897706e1 |
24 |
+DIST py-1.5.2.tar.gz 189542 BLAKE2B f0c5995121492ebca7bab9e73b7db61edf014be8e7d76822c72ded9ea19dd647dc0a83cbbcbf732c4ddae9070126cecb00958b623ca43d2219b7be8519b5b58e SHA512 ad92110d56caba2be44c6759350b05ceb882165ad0f58e6cce8361273be874b20b01856d685b142a83edff77b41bcce2911cf5797db5253b4f3e9b36e703c07d |
25 |
|
26 |
diff --git a/dev-python/py/files/py-1.5.2-skip-apiwarn-pytest31.patch b/dev-python/py/files/py-1.5.2-skip-apiwarn-pytest31.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..36727df9366 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/py/files/py-1.5.2-skip-apiwarn-pytest31.patch |
31 |
@@ -0,0 +1,14 @@ |
32 |
+https://github.com/pytest-dev/py/issues/162 |
33 |
+ |
34 |
+--- a/testing/log/test_warning.py |
35 |
++++ b/testing/log/test_warning.py |
36 |
+@@ -8,8 +8,7 @@ import py |
37 |
+ mypath = py.path.local(__file__).new(ext=".py") |
38 |
+ |
39 |
+ |
40 |
+-win = sys.platform.startswith('win') |
41 |
+-pytestmark = pytest.mark.skipif(win and LooseVersion(pytest.__version__) >= LooseVersion('3.1'), |
42 |
++pytestmark = pytest.mark.skipif(LooseVersion(pytest.__version__) >= LooseVersion('3.1'), |
43 |
+ reason='apiwarn is not compatible with pytest >= 3.1 (#162)') |
44 |
+ |
45 |
+ |
46 |
|
47 |
diff --git a/dev-python/py/py-1.5.2.ebuild b/dev-python/py/py-1.5.2.ebuild |
48 |
new file mode 100644 |
49 |
index 00000000000..3c27d6bfde9 |
50 |
--- /dev/null |
51 |
+++ b/dev-python/py/py-1.5.2.ebuild |
52 |
@@ -0,0 +1,46 @@ |
53 |
+# Copyright 1999-2018 Gentoo Foundation |
54 |
+# Distributed under the terms of the GNU General Public License v2 |
55 |
+ |
56 |
+EAPI="6" |
57 |
+ |
58 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) |
59 |
+ |
60 |
+inherit distutils-r1 |
61 |
+ |
62 |
+DESCRIPTION="library with cross-python path, ini-parsing, io, code, log facilities" |
63 |
+HOMEPAGE="http://pylib.readthedocs.org/ https://pypi.python.org/pypi/py" |
64 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
65 |
+ |
66 |
+LICENSE="MIT" |
67 |
+SLOT="0" |
68 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
69 |
+IUSE="doc test" |
70 |
+ |
71 |
+RDEPEND="" |
72 |
+DEPEND=" |
73 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
74 |
+ test? ( >=dev-python/pytest-2.4.2[${PYTHON_USEDEP}] ) |
75 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" |
76 |
+ |
77 |
+PATCHES=( "${FILESDIR}"/${P}-skip-apiwarn-pytest31.patch ) |
78 |
+ |
79 |
+python_prepare_all() { |
80 |
+ sed -e 's:intersphinx_mapping:#&:' -i doc/conf.py || die |
81 |
+ distutils-r1_python_prepare_all |
82 |
+} |
83 |
+ |
84 |
+python_compile_all() { |
85 |
+ use doc && emake -C doc html |
86 |
+} |
87 |
+ |
88 |
+python_test() { |
89 |
+ # 1 failure, test_comments, under both pypy only. |
90 |
+ # Also appears the home repo has no issue tracker. |
91 |
+ [[ "${EPYTHON}" == pypy ]] && return |
92 |
+ py.test -v -v || die "testing failed with ${EPYTHON}" |
93 |
+} |
94 |
+ |
95 |
+python_install_all() { |
96 |
+ use doc && local HTML_DOCS=( doc/_build/html/. ) |
97 |
+ distutils-r1_python_install_all |
98 |
+} |