diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/pytest-shutil | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/pytest-shutil')
| -rw-r--r-- | dev-python/pytest-shutil/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/pytest-shutil/metadata.xml | 22 | ||||
| -rw-r--r-- | dev-python/pytest-shutil/pytest-shutil-1.2.11.ebuild | 39 | ||||
| -rw-r--r-- | dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild | 57 | ||||
| -rw-r--r-- | dev-python/pytest-shutil/pytest-shutil-1.7.0.ebuild | 53 |
5 files changed, 173 insertions, 0 deletions
diff --git a/dev-python/pytest-shutil/Manifest b/dev-python/pytest-shutil/Manifest new file mode 100644 index 000000000000..8274ff9c3053 --- /dev/null +++ b/dev-python/pytest-shutil/Manifest @@ -0,0 +1,2 @@ +DIST pytest-shutil-1.2.11.tar.gz 18310 BLAKE2B a85f50a8a0e98de6dd71af0b27f76181b1ff80b518877155122998c3f8992c2749ebcc837d630dc19d60d988410eba8dc77b1be7faff7cf27003ebbba9194bcc SHA512 2a998218bb997a6ceb277965e2f150b2d7722ba518f579154f804568f552e2c41ced9a491c1745382dc119d0b92f3ea993ae77a61851809aae59a1e17501bde8 +DIST pytest-shutil-1.7.0.tar.gz 23497 BLAKE2B e13641491fb4bd448973b8004ac9ded2f9b7c412ea93af7f9206e5fc38ea7554073374116eeefc529d2ae35e8a25e678fef5a27089af89026077a72d11d6016d SHA512 3746c08b17834621a7142ed9d5915b5c348c13367f5b423b258d3471bcb9c9e983c61c25ca936f879b8b82f80512512b7f3ade5555c24a790c72b502e3f3d144 diff --git a/dev-python/pytest-shutil/metadata.xml b/dev-python/pytest-shutil/metadata.xml new file mode 100644 index 000000000000..b2b44bb99ca1 --- /dev/null +++ b/dev-python/pytest-shutil/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <maintainer> + <email>eeaston@gmail.com</email> + <name>Edward Easton</name> + </maintainer> + <remote-id type="pypi">pytest-shutil</remote-id> + <remote-id type="github">man-group/pytest-plugins</remote-id> + </upstream> + <longdescription> + This library is a goodie-bag of Unix shell and environment management + tools for automated tests. A summary of the available functions is + below, look at the source for the full listing. + </longdescription> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/pytest-shutil/pytest-shutil-1.2.11.ebuild b/dev-python/pytest-shutil/pytest-shutil-1.2.11.ebuild new file mode 100644 index 000000000000..b4eecc6c24f3 --- /dev/null +++ b/dev-python/pytest-shutil/pytest-shutil-1.2.11.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A goodie-bag of unix shell and environment tools for py.test" +HOMEPAGE="https://github.com/man-group/pytest-plugins https://pypi.org/project/pytest-shutil/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86" +IUSE="test" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + dev-python/execnet[${PYTHON_USEDEP}] + dev-python/contextlib2[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/path-py[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] +" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools-git[${PYTHON_USEDEP}] + test? ( ${RDEPEND} ) +" +RESTRICT="!test? ( test )" + +python_test() { + # various pickling errors, but code works to run pytest-virtualenv tests + [[ ${EPYTHON} == pypy ]] && return + + esetup.py test +} diff --git a/dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild b/dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild new file mode 100644 index 000000000000..668d150c5535 --- /dev/null +++ b/dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A goodie-bag of unix shell and environment tools for py.test" +HOMEPAGE="https://github.com/man-group/pytest-plugins https://pypi.org/project/pytest-shutil/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( 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}] +" +# block pytest plugins that will be broken by the upgrade +RDEPEND+=" + !<dev-python/pytest-virtualenv-1.7.0-r1[python_targets_python2_7(-)] +" + +BDEPEND=" + ${RDEPEND} + dev-python/setuptools-git[${PYTHON_USEDEP}] +" + +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}" +} 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..d7793ef0daaa --- /dev/null +++ b/dev-python/pytest-shutil/pytest-shutil-1.7.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A goodie-bag of unix shell and environment tools for py.test" +HOMEPAGE="https://github.com/man-group/pytest-plugins https://pypi.org/project/pytest-shutil/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86" +IUSE="test" +RESTRICT="!test? ( 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} + dev-python/setuptools-git[${PYTHON_USEDEP}] +" + +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}" +} |
