1 |
commit: 42e4ca2d9fad0bb9fff378bc17abf45a2c8af9e3 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 24 13:00:27 2018 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 24 13:17:31 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42e4ca2d |
7 |
|
8 |
dev-python/pyfakefs: version bump to 3.4.1 |
9 |
|
10 |
dev-python/pyfakefs/Manifest | 1 + |
11 |
.../pyfakefs/files/pyfakefs-3.4.1-tests.patch | 40 ++++++++++++++++++++++ |
12 |
dev-python/pyfakefs/pyfakefs-3.4.1.ebuild | 26 ++++++++++++++ |
13 |
3 files changed, 67 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/pyfakefs/Manifest b/dev-python/pyfakefs/Manifest |
16 |
index 4119d7c6310..b60e61ccabc 100644 |
17 |
--- a/dev-python/pyfakefs/Manifest |
18 |
+++ b/dev-python/pyfakefs/Manifest |
19 |
@@ -1 +1,2 @@ |
20 |
DIST pyfakefs-3.3.tar.gz 141704 BLAKE2B f805146024d9886ce6cb25b23f6f818bb37cac00a51528375b3da3e728515cb5ffd292352888861ff2b434ff71dd730bfbd84874fee0ae1f4d2cfca974f73771 SHA512 0044643964a4f2329d777476940b38d2d63c6de8f854992b4fba7b7e49f1186e7ce9811f83c9870655cbe33b7dda816c1aa1ce685e800e55c06d175c281748b7 |
21 |
+DIST pyfakefs-3.4.1.tar.gz 151662 BLAKE2B cbfdd7ab4c2936d484b5ff1e22852438c5c653e8875b7d363324e0a1aed0bfc5c492c2cd5c64a47052fcb4d043f567819f32067527b870ab42da8cfd92d40be3 SHA512 1be0254455f6046f1d28bf4377d17e0fb943b4b0db09e933c114f587f3d917877b23ee1610cf83a6330b406bb9ae66fe79dea31a6bf75c0b9c2b79a88d07e753 |
22 |
|
23 |
diff --git a/dev-python/pyfakefs/files/pyfakefs-3.4.1-tests.patch b/dev-python/pyfakefs/files/pyfakefs-3.4.1-tests.patch |
24 |
new file mode 100644 |
25 |
index 00000000000..d893a3adcb7 |
26 |
--- /dev/null |
27 |
+++ b/dev-python/pyfakefs/files/pyfakefs-3.4.1-tests.patch |
28 |
@@ -0,0 +1,40 @@ |
29 |
+Drop checks that fail due to sandboxing and skip failing tell check. |
30 |
+ |
31 |
+--- pyfakefs-3.4.1/tests/fake_os_test.py |
32 |
++++ pyfakefs-3.4.1/tests/fake_os_test.py |
33 |
+@@ -449,7 +449,6 @@ |
34 |
+ self.os.chdir(directory) |
35 |
+ self.assert_raises_os_error(dir_error, self.os.remove, dir_path) |
36 |
+ self.assertTrue(self.os.path.exists(dir_path)) |
37 |
+- self.assert_raises_os_error(errno.ENOENT, self.os.remove, '/plugh') |
38 |
+ |
39 |
+ def test_remove_dir_linux(self): |
40 |
+ self.check_linux_only() |
41 |
+@@ -963,6 +962,8 @@ |
42 |
+ self.assertEqual(b'\0\0abcde', f.read()) |
43 |
+ |
44 |
+ def test_append_mode_tell_linux_windows(self): |
45 |
++ # skipping real fs test - python2 on the actual filesystem is also 7 |
46 |
++ self.skip_real_fs() |
47 |
+ self.check_linux_and_windows() |
48 |
+ tell_result = 5 if self.is_python2 else 7 |
49 |
+ self.check_append_mode_tell_after_truncate(tell_result) |
50 |
+@@ -1885,8 +1886,8 @@ |
51 |
+ # trying to create a link from a non-existent file should fail |
52 |
+ self.skip_if_symlink_not_supported() |
53 |
+ self.assert_raises_os_error(errno.ENOENT, |
54 |
+- self.os.link, '/nonexistent_source', |
55 |
+- '/link_dest') |
56 |
++ self.os.link, 'nonexistent_source', |
57 |
++ 'link_dest') |
58 |
+ |
59 |
+ def test_link_delete(self): |
60 |
+ self.skip_if_symlink_not_supported() |
61 |
+@@ -2233,7 +2234,6 @@ |
62 |
+ self.os.chdir(directory) |
63 |
+ self.assert_raises_os_error(dir_error, self.os.remove, dir_path) |
64 |
+ self.assertTrue(self.os.path.exists(dir_path)) |
65 |
+- self.assert_raises_os_error(errno.ENOENT, self.os.remove, '/Plugh') |
66 |
+ |
67 |
+ def test_remove_dir_mac_os(self): |
68 |
+ self.check_macos_only() |
69 |
|
70 |
diff --git a/dev-python/pyfakefs/pyfakefs-3.4.1.ebuild b/dev-python/pyfakefs/pyfakefs-3.4.1.ebuild |
71 |
new file mode 100644 |
72 |
index 00000000000..36f46d577c5 |
73 |
--- /dev/null |
74 |
+++ b/dev-python/pyfakefs/pyfakefs-3.4.1.ebuild |
75 |
@@ -0,0 +1,26 @@ |
76 |
+# Copyright 1999-2018 Gentoo Foundation |
77 |
+# Distributed under the terms of the GNU General Public License v2 |
78 |
+ |
79 |
+EAPI=6 |
80 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} ) |
81 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
82 |
+ |
83 |
+inherit distutils-r1 |
84 |
+ |
85 |
+DESCRIPTION="a fake file system that mocks the Python file system modules" |
86 |
+HOMEPAGE="https://github.com/jmcgeheeiv/pyfakefs/ https://pypi.python.org/pypi/pyfakefs" |
87 |
+SRC_URI="https://github.com/jmcgeheeiv/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
88 |
+ |
89 |
+LICENSE="Apache-2.0" |
90 |
+SLOT="0" |
91 |
+KEYWORDS="~amd64 ~x86" |
92 |
+IUSE="" |
93 |
+ |
94 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
95 |
+RDEPEND="" |
96 |
+ |
97 |
+PATCHES=( "${FILESDIR}"/${P}-tests.patch ) |
98 |
+ |
99 |
+python_test() { |
100 |
+ "${PYTHON}" tests/all_tests.py || die "tests failed under ${EPYTHON}" |
101 |
+} |