mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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@gentoo.org>
This commit is contained in:
@@ -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
|
||||
)
|
||||
Reference in New Issue
Block a user