commit:     dff1bf4a87061d0a6e6d97aec748defc765dc8ef
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  8 19:57:30 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Oct  9 06:34:09 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dff1bf4a

dev-python/agate: remove IUSE=xml

- remove IUSE="xml" as it was used as gateway for test dependencies.
- use new EPYTEST_DESELECT

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 .../{agate-1.6.3.ebuild => agate-1.6.3-r1.ebuild}  | 23 +++++++---------------
 1 file changed, 7 insertions(+), 16 deletions(-)

diff --git a/dev-python/agate/agate-1.6.3.ebuild 
b/dev-python/agate/agate-1.6.3-r1.ebuild
similarity index 60%
rename from dev-python/agate/agate-1.6.3.ebuild
rename to dev-python/agate/agate-1.6.3-r1.ebuild
index 92bdd1023bf..a5508109955 100644
--- a/dev-python/agate/agate-1.6.3.ebuild
+++ b/dev-python/agate/agate-1.6.3-r1.ebuild
@@ -13,11 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="+xml"
 
-# Other packages have BDEPEND="test? ( dev-python/agate[xml] )"
-LEATHER_VERSION_DEP=">=dev-python/leather-0.3.3-r2"
-TEST_AGAINST_RDEPEND="xml? ( ${LEATHER_VERSION_DEP}[xml,${PYTHON_USEDEP}] )"
 RDEPEND="
        >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
        >=dev-python/pytimeparse-1.1.5[${PYTHON_USEDEP}]
@@ -26,21 +22,16 @@ RDEPEND="
        >=dev-python/isodate-0.5.4[${PYTHON_USEDEP}]
        >=dev-python/pyicu-2.4.2[${PYTHON_USEDEP}]
        >=dev-python/python-slugify-1.2.1[${PYTHON_USEDEP}]
-       ${LEATHER_VERSION_DEP}[${PYTHON_USEDEP}]
-
-       ${TEST_AGAINST_RDEPEND}
+       >=dev-python/leather-0.3.3-r2[${PYTHON_USEDEP}]
 "
-BDEPEND="test? ( ${LEATHER_VERSION_DEP}[xml,${PYTHON_USEDEP}] )"
+BDEPEND="test? ( dev-python/lxml[${PYTHON_USEDEP}] )"
 
 distutils_enable_tests pytest
 distutils_enable_sphinx docs \
        dev-python/sphinx_rtd_theme
 
-python_test() {
-       local deselect=(
-               # require specific locales
-               tests/test_data_types.py::TestDate::test_cast_format_locale
-               tests/test_data_types.py::TestDateTime::test_cast_format_locale
-       )
-       epytest ${deselect[@]/#/--deselect }
-}
+EPYTEST_DESELECT=(
+       # require specific locales
+       tests/test_data_types.py::TestDate::test_cast_format_locale
+       tests/test_data_types.py::TestDateTime::test_cast_format_locale
+)

Reply via email to