mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 03:23:20 -04:00
Merge updates from master
This commit is contained in:
1
dev-python/pytest-ordering/Manifest
Normal file
1
dev-python/pytest-ordering/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST pytest-ordering-0.6.tar.gz 11046 BLAKE2B 468ae5f04029b96ed3058b7f429aec0aaf96092453b229c3de5eab174702af2c1a9fe83171c68d282c4a144b3dd736daf9ed87b9e139a7bd175114f504049ebc SHA512 fd3aec83914f64d1295e1a1bf3fdc580c6824a749a1da8cebae275fef940d6ed6e5dcafad321d94f504a153e13e298b6544dc3c2db716a6b25d3148c2365fe15
|
||||
13
dev-python/pytest-ordering/metadata.xml
Normal file
13
dev-python/pytest-ordering/metadata.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">https://github.com/ftobia/pytest-ordering</remote-id>
|
||||
<remote-id type="pypi">pytest-ordering</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
34
dev-python/pytest-ordering/pytest-ordering-0.6.ebuild
Normal file
34
dev-python/pytest-ordering/pytest-ordering-0.6.ebuild
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
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"
|
||||
|
||||
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: <class 'str'>)
|
||||
sed -i -e 's:test_run_marker_registered:_&:' \
|
||||
tests/test_ordering.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
@@ -32,16 +32,23 @@ 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}]
|
||||
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 +57,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}"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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}]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user