From dff1bf4a87061d0a6e6d97aec748defc765dc8ef Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Fri, 8 Oct 2021 22:57:30 +0300 Subject: 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 --- dev-python/agate/agate-1.6.3-r1.ebuild | 37 +++++++++++++++++++++++++++ dev-python/agate/agate-1.6.3.ebuild | 46 ---------------------------------- 2 files changed, 37 insertions(+), 46 deletions(-) create mode 100644 dev-python/agate/agate-1.6.3-r1.ebuild delete mode 100644 dev-python/agate/agate-1.6.3.ebuild (limited to 'dev-python/agate') diff --git a/dev-python/agate/agate-1.6.3-r1.ebuild b/dev-python/agate/agate-1.6.3-r1.ebuild new file mode 100644 index 000000000000..a55081099558 --- /dev/null +++ b/dev-python/agate/agate-1.6.3-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="A Python data analysis library that is optimized for humans instead of machines" +HOMEPAGE="https://github.com/wireservice/agate https://pypi.org/project/agate/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/six-1.9.0[${PYTHON_USEDEP}] + >=dev-python/pytimeparse-1.1.5[${PYTHON_USEDEP}] + >=dev-python/parsedatetime-2.1[${PYTHON_USEDEP}] + >=dev-python/Babel-2.0[${PYTHON_USEDEP}] + >=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}] + >=dev-python/leather-0.3.3-r2[${PYTHON_USEDEP}] +" +BDEPEND="test? ( dev-python/lxml[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest +distutils_enable_sphinx docs \ + dev-python/sphinx_rtd_theme + +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 +) diff --git a/dev-python/agate/agate-1.6.3.ebuild b/dev-python/agate/agate-1.6.3.ebuild deleted file mode 100644 index 92bdd1023bf1..000000000000 --- a/dev-python/agate/agate-1.6.3.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) -inherit distutils-r1 - -DESCRIPTION="A Python data analysis library that is optimized for humans instead of machines" -HOMEPAGE="https://github.com/wireservice/agate https://pypi.org/project/agate/" -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}] - >=dev-python/parsedatetime-2.1[${PYTHON_USEDEP}] - >=dev-python/Babel-2.0[${PYTHON_USEDEP}] - >=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} -" -BDEPEND="test? ( ${LEATHER_VERSION_DEP}[xml,${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 } -} -- cgit v1.2.3-65-gdbad