summaryrefslogtreecommitdiff
path: root/dev-python/pathlib2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-03-09 16:53:27 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-03-09 16:53:27 +0000
commit80208fb578cf92cc308906660ca6d7860c6b2a1f (patch)
tree6f06818031b553c506fc10dfe9908a835df288aa /dev-python/pathlib2
parent06a7b5647e11a8ddf69b1c3d3ded6a8ba28b923e (diff)
gentoo resync : 09.03.2018
Diffstat (limited to 'dev-python/pathlib2')
-rw-r--r--dev-python/pathlib2/Manifest2
-rw-r--r--dev-python/pathlib2/pathlib2-2.3.0.ebuild21
2 files changed, 17 insertions, 6 deletions
diff --git a/dev-python/pathlib2/Manifest b/dev-python/pathlib2/Manifest
index 897bba0e7efe..8e15a293df60 100644
--- a/dev-python/pathlib2/Manifest
+++ b/dev-python/pathlib2/Manifest
@@ -1,5 +1,5 @@
DIST pathlib2-2.1.0.tar.gz 30390 BLAKE2B e009fa866dcdb2a6f078d746c423484bd90df049d59c89427c631cd63ac11376bb5549f45f0e98da036b15c6674040ffc8844fc08b95abb1d677783dedf9e126 SHA512 5dad54d4bf7a37a2c425afeca030a23d802a8a450186292f3d80aa9ee5c2985701871a0386a2f58e2b05b4bbfd7734a238d0a73625c5839237e4f3984088a8b1
DIST pathlib2-2.3.0.tar.gz 34291 BLAKE2B ef1768f8a9cc9b28f85ef84c0dfdbfce0b0087c1ffb6718e2b13eb007ea3e0ab0eebe946a1bcc2683fed7db46867f415ad2b52abedcdc87fb67bd45d5998aea5 SHA512 715fbd981d42767862dcaf2cc0fee31b9ec5050915ef7d909d14587609a7a5939e32b39736b586a890e7625443bb163832896fcf138b5c2863c451b71c36a124
EBUILD pathlib2-2.1.0.ebuild 581 BLAKE2B 62d3e1f8e2705db80933876650fa594a8986cf3b74c78039925ca9dc024ddd979491ae254a7b09c1ed83cce2464fbfeccc16106724254373efffc28987aa7f4a SHA512 e14f2bb06e96e63d9812e31da3a27ce9b9d56f1405515c29df695167e48e7f4122f778688f66a20b8ef15630b5dd4fa7affea9b9946362b7124ded7ff0ae2ce3
-EBUILD pathlib2-2.3.0.ebuild 675 BLAKE2B 29916d5d48a2dc959f67c40b3052b7858cb924efaaee592eabf2f7f4ef957e5baac1f1599dc44bdd918ba369565a2917a3ea6b32b48f5e38af20b627b7c38c82 SHA512 6b90c2b554f82246f6bde18cedfc6bda2204848bb565d4af5c76fe8f81ed3079ee7abeddbe03dd699da7a6efc2d6b75502c84782be1df09c107cf38ebf70bc2f
+EBUILD pathlib2-2.3.0.ebuild 1052 BLAKE2B 895eafa533a0e41c38a82cfcea046ecdb5c1d539262231a9db4d41fc914190a877c429c279176a96bd50de5b4c125cfbfd400d0463d4a1b70c92f81f85cf419e SHA512 b215543d5c7c97a413cba74ae2014769be02eb4cc0e84304766d2881ebff4453d58052fbc9f8b304a6872baae0823446ac5a1a5d1392f37a4090c20751d06798
MISC metadata.xml 371 BLAKE2B e2a18977882b53d7e6588147a17a9fe2c2a1b0850946b15036941b908ece241cace91e66373d5edaa4ac2ba46935413b223ea78cb6ca01b758673ef719b76966 SHA512 dce5315fa4bc25047346fbf06a9f2da5828475bf0b36a1dcdd6ea9917f29ed4bbefc22aba699a43d7b3c5f771939bd81b3da20df54537b22aa4811a19ab62a6e
diff --git a/dev-python/pathlib2/pathlib2-2.3.0.ebuild b/dev-python/pathlib2/pathlib2-2.3.0.ebuild
index c23057673735..1308182a31f9 100644
--- a/dev-python/pathlib2/pathlib2-2.3.0.ebuild
+++ b/dev-python/pathlib2/pathlib2-2.3.0.ebuild
@@ -13,15 +13,26 @@ SRC_URI="mirror://pypi/p/pathlib2/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86"
-IUSE=""
+KEYWORDS="~amd64 ~arm64 ppc64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
RDEPEND="
- $(python_gen_cond_dep 'dev-python/scandir[${PYTHON_USEDEP}]' 'python2*' python3_4 pypy )
+ $(python_gen_cond_dep 'dev-python/scandir[${PYTHON_USEDEP}]' -2 python3_4 )
dev-python/six[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
- dev-python/setuptools[${PYTHON_USEDEP}]"
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) )"
+
+python_prepare_all() {
+ # stop using private Python API
+ # https://github.com/mcmtroffaes/pathlib2/issues/39
+ sed -i -e 's/support\.android_not_root/False/' test*.py || die
+
+ distutils-r1_python_prepare_all
+}
python_test() {
- "${EPYTHON}" test_pathlib2.py || die
+ "${EPYTHON}" test_pathlib2.py -v || die
+ "${EPYTHON}" test_pathlib2_with_py2_unicode_literals.py -v || die
}