diff options
author | 2019-11-22 20:12:32 -0800 | |
---|---|---|
committer | 2019-11-22 20:12:32 -0800 | |
commit | a7aab5104a15a98b3de193b6a6b47b5688b36897 (patch) | |
tree | c64062bccc2b19e23b25aefcf38262f0b0ee126b | |
parent | dev-python/path-py: Version bump to 11.5.2 (diff) | |
download | gentoo-a7aab5104a15a98b3de193b6a6b47b5688b36897.tar.gz gentoo-a7aab5104a15a98b3de193b6a6b47b5688b36897.tar.bz2 gentoo-a7aab5104a15a98b3de193b6a6b47b5688b36897.zip |
dev-python/pytest-shutil: Bump to 1.7.0, RESTRICT for CI
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
-rw-r--r-- | dev-python/pytest-shutil/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pytest-shutil/pytest-shutil-1.2.11.ebuild | 1 | ||||
-rw-r--r-- | dev-python/pytest-shutil/pytest-shutil-1.2.4.ebuild | 1 | ||||
-rw-r--r-- | dev-python/pytest-shutil/pytest-shutil-1.2.8.ebuild | 2 | ||||
-rw-r--r-- | dev-python/pytest-shutil/pytest-shutil-1.7.0.ebuild | 51 |
5 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/pytest-shutil/Manifest b/dev-python/pytest-shutil/Manifest index 6c59168bd664..746c1da14176 100644 --- a/dev-python/pytest-shutil/Manifest +++ b/dev-python/pytest-shutil/Manifest @@ -1,3 +1,4 @@ DIST pytest-shutil-1.2.11.tar.gz 18310 BLAKE2B a85f50a8a0e98de6dd71af0b27f76181b1ff80b518877155122998c3f8992c2749ebcc837d630dc19d60d988410eba8dc77b1be7faff7cf27003ebbba9194bcc SHA512 2a998218bb997a6ceb277965e2f150b2d7722ba518f579154f804568f552e2c41ced9a491c1745382dc119d0b92f3ea993ae77a61851809aae59a1e17501bde8 DIST pytest-shutil-1.2.4.tar.gz 16327 BLAKE2B eb5bb96c78be5b91de29f6c30634cb56a69e30b5ebee9b43a0e970691a7094dfefb83ea741650e0732ff60b9d08cc8ad94d80bb95f1222ba8670402c1fb1d5ab SHA512 9ec6baa3cf53bb80103b1dfbf6c26794090c26dd74b29cd19e76b1037c6939538c7b05ea16368a76cce6969216c291e27b00833a990268239bfd2222f69ddfb4 DIST pytest-shutil-1.2.8.tar.gz 17051 BLAKE2B 9006ccd51bce6e5035ed93a330e460666bd0782fe56ef400f66de174914aa89b49d6684d1a3a2d2d69b308c4d8466db83eb0865ad20649106dac735b9d1e6772 SHA512 de73b2c350709e356810f58d2a8a4c7668144701639c45a0690081e707e7147762f650af2e9f826429d0488655dae0e3366611da5e8e3ecd0c6382e215170b2d +DIST pytest-shutil-1.7.0.tar.gz 23497 BLAKE2B e13641491fb4bd448973b8004ac9ded2f9b7c412ea93af7f9206e5fc38ea7554073374116eeefc529d2ae35e8a25e678fef5a27089af89026077a72d11d6016d SHA512 3746c08b17834621a7142ed9d5915b5c348c13367f5b423b258d3471bcb9c9e983c61c25ca936f879b8b82f80512512b7f3ade5555c24a790c72b502e3f3d144 diff --git a/dev-python/pytest-shutil/pytest-shutil-1.2.11.ebuild b/dev-python/pytest-shutil/pytest-shutil-1.2.11.ebuild index 9baee13e9a76..10ae8992e31c 100644 --- a/dev-python/pytest-shutil/pytest-shutil-1.2.11.ebuild +++ b/dev-python/pytest-shutil/pytest-shutil-1.2.11.ebuild @@ -29,6 +29,7 @@ DEPEND=" dev-python/setuptools-git[${PYTHON_USEDEP}] test? ( ${RDEPEND} ) " +RESTRICT="!test? ( test )" python_test() { # various pickling errors, but code works to run pytest-virtualenv tests diff --git a/dev-python/pytest-shutil/pytest-shutil-1.2.4.ebuild b/dev-python/pytest-shutil/pytest-shutil-1.2.4.ebuild index d5bf9bb648c5..f7965032f9f1 100644 --- a/dev-python/pytest-shutil/pytest-shutil-1.2.4.ebuild +++ b/dev-python/pytest-shutil/pytest-shutil-1.2.4.ebuild @@ -28,6 +28,7 @@ RDEPEND=" DEPEND=" ${RDEPEND} " +RESTRICT="!test? ( test )" python_test() { distutils_install_for_testing diff --git a/dev-python/pytest-shutil/pytest-shutil-1.2.8.ebuild b/dev-python/pytest-shutil/pytest-shutil-1.2.8.ebuild index d5bf9bb648c5..63b0189b886a 100644 --- a/dev-python/pytest-shutil/pytest-shutil-1.2.8.ebuild +++ b/dev-python/pytest-shutil/pytest-shutil-1.2.8.ebuild @@ -29,6 +29,8 @@ DEPEND=" ${RDEPEND} " +RESTRICT="!test? ( test )" + python_test() { distutils_install_for_testing diff --git a/dev-python/pytest-shutil/pytest-shutil-1.7.0.ebuild b/dev-python/pytest-shutil/pytest-shutil-1.7.0.ebuild new file mode 100644 index 000000000000..d7a72037c4a9 --- /dev/null +++ b/dev-python/pytest-shutil/pytest-shutil-1.7.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python{2_7,3_{5,6,7,8}} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="A goodie-bag of unix shell and environment tools for py.test" +HOMEPAGE="https://github.com/manahl/pytest-plugins https://pypi.org/project/pytest-shutil/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~mips ~s390 ~sparc ~x86" +IUSE="test" + +RDEPEND=" + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/contextlib2[${PYTHON_USEDEP}] + dev-python/execnet[${PYTHON_USEDEP}] + dev-python/path-py[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/termcolor[${PYTHON_USEDEP}] +" + +BDEPEND=" + ${RDEPEND} +" + +RESTRICT="!test? ( test )" + +python_prepare_all() { + # keeps trying to install this in tests + sed -i 's:path.py::' setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + # at this point let's not fix python2 stuff + if ! python_is_python3; then + ewarn "Tests broken on python2, not runninge tests for ${EPYTHON}" + return 0 + fi + + distutils_install_for_testing + + esetup.py test || die "Tests failed under ${EPYTHON}" +} |