Hi,
Two more changes to the EPYTEST_PLUGINS support in eclasses:
1. distutils-r1.eclass will skip ${PN} when adding deps. This means
that dev-python/pytest-foo will no longer have to do something like:
EPYTEST_PLUGINS=( foo bar )
distutils_enable_tests pytest
python_test() {
local EPYTEST_PLUGINS=( "${EPYTEST_PLUGINS[@]}" "${PN}" )
epytest
}
but will instead be able to put PN into the global var.
2. python-utils-r1.eclass will preserve entry point order. As it turns
out, if you sort entry points from pytest-xdist, you get warnings.
Includes a bunch of patches to ebuilds that benefit from these patches.
Michał Górny (6):
distutils-r1.eclass: Skip dep on ${PN} in EPYTEST_PLUGINS
dev-python/pytest-asyncio: Simplify EPYTEST_PLUGINS
dev-python/pytest-lazy-fixtures: Simplify EPYTEST_PLUGINS
dev-python/tavern: Simplify EPYTEST_PLUGINS
python-utils-r1.eclass: Preserve order in PYTEST_PLUGINS
dev-python/inline-snapshot: Use EPYTEST_PLUGINS
.../inline-snapshot-0.24.0.ebuild | 4 +--
.../pytest-asyncio-1.0.0.ebuild | 29 +++++++----------
.../pytest-lazy-fixtures-1.2.0.ebuild | 7 +----
dev-python/tavern/tavern-2.16.0.ebuild | 31 ++++++++-----------
eclass/distutils-r1.eclass | 4 +++
eclass/python-utils-r1.eclass | 8 +++--
6 files changed, 37 insertions(+), 46 deletions(-)