From fa28403b5f1d59d71c140cbf9083dc87b506a196 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [feature/flatten]" Date: Fri, 9 Oct 2020 12:38:46 +0000 Subject: Updating liguros repo --- dev-python/tox/tox-3.20.0-r1.ebuild | 72 +++++++++++++++++++++++++++++++++++++ dev-python/tox/tox-3.20.0.ebuild | 70 ------------------------------------ 2 files changed, 72 insertions(+), 70 deletions(-) create mode 100644 dev-python/tox/tox-3.20.0-r1.ebuild delete mode 100644 dev-python/tox/tox-3.20.0.ebuild (limited to 'dev-python/tox') diff --git a/dev-python/tox/tox-3.20.0-r1.ebuild b/dev-python/tox/tox-3.20.0-r1.ebuild new file mode 100644 index 000000000000..5c09b6932040 --- /dev/null +++ b/dev-python/tox/tox-3.20.0-r1.ebuild @@ -0,0 +1,72 @@ +# 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_{5,6,7,8,9} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="virtualenv-based automation of test activities" +HOMEPAGE="https://tox.readthedocs.io https://github.com/tox-dev/tox https://pypi.org/project/tox/" +SRC_URI="https://github.com/tox-dev/tox/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +# doc disabled because of missing deps in tree +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/filelock[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/importlib_metadata-1.1[${PYTHON_USEDEP}] + ' python3_{5,6,7} pypy3) + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/pluggy-0.12[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + dev-python/py[${PYTHON_USEDEP}] + >=dev-python/six-1.14[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]" +# TODO: figure out how to make tests work without the package being +# installed first. +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + >=dev-python/flaky-3.4.0[${PYTHON_USEDEP}] + >=dev-python/freezegun-0.3.11[${PYTHON_USEDEP}] + dev-python/pathlib2[${PYTHON_USEDEP}] + >=dev-python/pytest-4.0.0[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + =dev-python/tox-${PV}-${PR}[${PYTHON_USEDEP}] + )" + +src_prepare() { + distutils-r1_src_prepare + + # broken without internet + sed -i -e 's:test_provision_non_canonical_dep:_&:' \ + tests/unit/session/test_provision.py || die + sed -i -e 's:test_provision_interrupt_child:_&:' \ + tests/integration/test_provision_int.py || die + # broken with our mock version (?) + sed -i -e 's:test_create_KeyboardInterrupt:_&:' \ + tests/unit/test_venv.py || die + # broken with Gentoo Python layout + sed -i -e 's:test_tox_get_python_executable:_&:' \ + -e 's:test_find_alias_on_path:_&:' \ + tests/unit/interpreters/test_interpreters.py || die + # ignore importlib_metadata version constraints + sed -i -e '/^[[:space:]]*importlib-metadata\b/d' setup.cfg || die + + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} +} + +python_test() { + distutils_install_for_testing + pytest -vv --no-network || die "Testsuite failed under ${EPYTHON}" +} diff --git a/dev-python/tox/tox-3.20.0.ebuild b/dev-python/tox/tox-3.20.0.ebuild deleted file mode 100644 index d998f919c884..000000000000 --- a/dev-python/tox/tox-3.20.0.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# 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_{5,6,7,8,9} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="virtualenv-based automation of test activities" -HOMEPAGE="https://tox.readthedocs.io https://github.com/tox-dev/tox https://pypi.org/project/tox/" -SRC_URI="https://github.com/tox-dev/tox/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" -# doc disabled because of missing deps in tree -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-python/filelock[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/importlib_metadata-1.1[${PYTHON_USEDEP}] - ' python3_{5,6,7} pypy3) - dev-python/packaging[${PYTHON_USEDEP}] - >=dev-python/pluggy-0.12[${PYTHON_USEDEP}] - dev-python/pip[${PYTHON_USEDEP}] - dev-python/py[${PYTHON_USEDEP}] - >=dev-python/six-1.14[${PYTHON_USEDEP}] - dev-python/toml[${PYTHON_USEDEP}] - >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]" -# TODO: figure out how to make tests work without the package being -# installed first. -BDEPEND=" - dev-python/setuptools_scm[${PYTHON_USEDEP}] - test? ( - ${RDEPEND} - >=dev-python/flaky-3.4.0[${PYTHON_USEDEP}] - >=dev-python/freezegun-0.3.11[${PYTHON_USEDEP}] - dev-python/pathlib2[${PYTHON_USEDEP}] - >=dev-python/pytest-4.0.0[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - =dev-python/tox-${PV}-${PR}[${PYTHON_USEDEP}] - )" - -src_prepare() { - distutils-r1_src_prepare - - # broken without internet - sed -i -e 's:test_provision_non_canonical_dep:_&:' \ - tests/unit/session/test_provision.py || die - sed -i -e 's:test_provision_interrupt_child:_&:' \ - tests/integration/test_provision_int.py || die - # broken with our mock version (?) - sed -i -e 's:test_create_KeyboardInterrupt:_&:' \ - tests/unit/test_venv.py || die - # broken with Gentoo Python layout - sed -i -e 's:test_tox_get_python_executable:_&:' \ - -e 's:test_find_alias_on_path:_&:' \ - tests/unit/interpreters/test_interpreters.py || die - - export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} -} - -python_test() { - distutils_install_for_testing - pytest -vv --no-network || die "Testsuite failed under ${EPYTHON}" -} -- cgit v1.3