From f53b2d4f975730f685c695be2e23f5d29d25aadd Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 31 Mar 2020 17:16:43 +0200 Subject: [PATCH 1/6] dev-python/pytest-ordering: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/pytest-ordering/Manifest | 1 + dev-python/pytest-ordering/metadata.xml | 13 ++++++++++ .../pytest-ordering-0.6.ebuild | 24 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 dev-python/pytest-ordering/Manifest create mode 100644 dev-python/pytest-ordering/metadata.xml create mode 100644 dev-python/pytest-ordering/pytest-ordering-0.6.ebuild diff --git a/dev-python/pytest-ordering/Manifest b/dev-python/pytest-ordering/Manifest new file mode 100644 index 0000000000..0036ecd18b --- /dev/null +++ b/dev-python/pytest-ordering/Manifest @@ -0,0 +1 @@ +DIST pytest-ordering-0.6.tar.gz 11046 BLAKE2B 468ae5f04029b96ed3058b7f429aec0aaf96092453b229c3de5eab174702af2c1a9fe83171c68d282c4a144b3dd736daf9ed87b9e139a7bd175114f504049ebc SHA512 fd3aec83914f64d1295e1a1bf3fdc580c6824a749a1da8cebae275fef940d6ed6e5dcafad321d94f504a153e13e298b6544dc3c2db716a6b25d3148c2365fe15 diff --git a/dev-python/pytest-ordering/metadata.xml b/dev-python/pytest-ordering/metadata.xml new file mode 100644 index 0000000000..3f9f921b0e --- /dev/null +++ b/dev-python/pytest-ordering/metadata.xml @@ -0,0 +1,13 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + https://github.com/ftobia/pytest-ordering + pytest-ordering + + diff --git a/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild b/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild new file mode 100644 index 0000000000..6cb756e861 --- /dev/null +++ b/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="pytest plugin to run your tests in a specific order" +HOMEPAGE=" + https://github.com/ftobia/pytest-ordering + https://pypi.org/project/pytest-ordering +" +SRC_URI="https://github.com/ftobia/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="" + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source From dd283f513c60fbc8edaf0d4a32a87da8885e6081 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 31 Mar 2020 17:17:16 +0200 Subject: [PATCH 2/6] dev-python/sphobjinv: more dependencies Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/sphobjinv/sphobjinv-2.0.1.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dev-python/sphobjinv/sphobjinv-2.0.1.ebuild b/dev-python/sphobjinv/sphobjinv-2.0.1.ebuild index 7fb7dd7cc2..5a4e708a6e 100644 --- a/dev-python/sphobjinv/sphobjinv-2.0.1.ebuild +++ b/dev-python/sphobjinv/sphobjinv-2.0.1.ebuild @@ -21,20 +21,25 @@ KEYWORDS="~amd64 ~x86 " SLOT="0" RDEPEND=" - dev-python/attrs[${PYTHON_USEDEP}] + >=dev-python/attrs-17.4[${PYTHON_USEDEP}] dev-python/certifi[${PYTHON_USEDEP}] dev-python/fuzzywuzzy[${PYTHON_USEDEP}] dev-python/jsonschema[${PYTHON_USEDEP}]" DEPEND=" test? ( + >=dev-python/pytest-4.4.0[${PYTHON_USEDEP}] + dev-python/pytest-ordering[${PYTHON_USEDEP}] dev-python/pytest-subtests[${PYTHON_USEDEP}] dev-python/pytest-timeout[${PYTHON_USEDEP}] - dev-python/stdio-mgr[${PYTHON_USEDEP}] + dev-python/sphinx-issues[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + >=dev-python/stdio-mgr-1.0.1[${PYTHON_USEDEP}] dev-python/timeout-decorator[${PYTHON_USEDEP}] ) " +#it may require sphinx==2.3.1 distutils_enable_sphinx doc/source dev-python/sphinx_rtd_theme dev-python/sphinx-issues distutils_enable_tests pytest From 66d7444142931ebbab59cbe3e3f7e2a213a4e97c Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 31 Mar 2020 17:26:25 +0200 Subject: [PATCH 3/6] dev-python/trio: missing dependency Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/trio/trio-0.13.0.ebuild | 1 + 1 file changed, 1 insertion(+) diff --git a/dev-python/trio/trio-0.13.0.ebuild b/dev-python/trio/trio-0.13.0.ebuild index ce3ef2e87b..66266e5006 100644 --- a/dev-python/trio/trio-0.13.0.ebuild +++ b/dev-python/trio/trio-0.13.0.ebuild @@ -32,6 +32,7 @@ DEPEND="${RDEPEND} >=dev-python/astor-0.8.0[${PYTHON_USEDEP}] >=dev-python/immutables-0.6[${PYTHON_USEDEP}] dev-python/jedi[${PYTHON_USEDEP}] + dev-python/pylint[${PYTHON_USEDEP}] dev-python/trustme[${PYTHON_USEDEP}] dev-python/yapf[${PYTHON_USEDEP}] ) From e0d5b38166015cc1c8eb29ee0799c642c1a915b2 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 31 Mar 2020 18:43:22 +0200 Subject: [PATCH 4/6] dev-python/pytest-trio: more deps, more drama Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri --- dev-python/pytest-trio/pytest-trio-0.5.2.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild b/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild index 8232fa52c8..aba3ec7ae4 100644 --- a/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild +++ b/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild @@ -34,14 +34,20 @@ DEPEND=" >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}] !~dev-python/pytest-3.7.0[${PYTHON_USEDEP}] !~dev-python/pytest-3.7.1[${PYTHON_USEDEP}] + >=dev-python/pytest-4.3[${PYTHON_USEDEP}] dev-python/trio-asyncio[${PYTHON_USEDEP}] ) " distutils_enable_tests pytest -distutils_enable_sphinx docs/source +distutils_enable_sphinx docs/source \ + ">=dev-python/attrs-17.4.0" \ + ">=dev-python/sphinx-1.6.1" \ + dev-python/sphinx_rtd_theme \ + dev-python/sphinxcontrib-trio python_prepare_all() { + #fix for https://github.com/python-trio/pytest-trio/issues/90 # AttributeError("module 'pytest' has no attribute 'RemovedInPytest4Warning'",) rm pytest_trio/_tests/conftest.py || die @@ -50,6 +56,10 @@ python_prepare_all() { python_test() { # has to be run in source dir + #even upstream doesn't know how to run their tests + #https://github.com/python-trio/pytest-trio/issues/84 + #"Our CI is still passing AFAIK" + PYTHONPATH="${S}" cd "${S}" || die pytest -vv || die "Tests fail with ${EPYTHON}" From fda864a8f4df250f3de3122d3e7b1650f6d55aab Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 31 Mar 2020 19:05:40 +0200 Subject: [PATCH 5/6] dev-python/pytest-trio: test require package to already be isntalled Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/pytest-trio/pytest-trio-0.5.2.ebuild | 1 + 1 file changed, 1 insertion(+) diff --git a/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild b/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild index aba3ec7ae4..d0b4346aa5 100644 --- a/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild +++ b/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild @@ -32,6 +32,7 @@ DEPEND=" ${RDEPEND} test? ( >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}] + dev-python/pytest-trio[${PYTHON_USEDEP}] !~dev-python/pytest-3.7.0[${PYTHON_USEDEP}] !~dev-python/pytest-3.7.1[${PYTHON_USEDEP}] >=dev-python/pytest-4.3[${PYTHON_USEDEP}] From db2c2dfcf93d7e8b14a6746a755bfef7536fa43e Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 31 Mar 2020 19:32:36 +0200 Subject: [PATCH 6/6] dev-python/pytest-ordering: depend on self for tests Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- .../pytest-ordering/pytest-ordering-0.6.ebuild | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild b/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild index 6cb756e861..a6fe80e294 100644 --- a/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild +++ b/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild @@ -3,7 +3,9 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend inherit distutils-r1 @@ -18,7 +20,15 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -RDEPEND="" +DEPEND="test? ( dev-python/pytest-ordering[${PYTHON_USEDEP}] )" distutils_enable_tests pytest distutils_enable_sphinx docs/source + +python_prepare_all() { + # TypeError: `args` parameter expected to be a list or tuple of strings, got: '--markers' (type: ) + sed -i -e 's:test_run_marker_registered:_&:' \ + tests/test_ordering.py || die + + distutils-r1_python_prepare_all +}