diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2021-10-08 23:05:27 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2021-10-09 09:34:09 +0300 |
commit | 700488e14d17c25fd435fc05ae9963839334ae8e (patch) | |
tree | d5c5386ee6e170ad93fe5a74d665586b59c5f55e /dev-python/agate-dbf/agate-dbf-0.2.2.ebuild | |
parent | dev-python/agate: remove IUSE=xml (diff) | |
download | gentoo-700488e14d17c25fd435fc05ae9963839334ae8e.tar.gz gentoo-700488e14d17c25fd435fc05ae9963839334ae8e.tar.bz2 gentoo-700488e14d17c25fd435fc05ae9963839334ae8e.zip |
dev-python/agate-dbf: mass cleanup
- remove IUSE="xml" and set lxml as test dep
- use github tarball for fetching all test parts in one shot
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/agate-dbf/agate-dbf-0.2.2.ebuild')
-rw-r--r-- | dev-python/agate-dbf/agate-dbf-0.2.2.ebuild | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/dev-python/agate-dbf/agate-dbf-0.2.2.ebuild b/dev-python/agate-dbf/agate-dbf-0.2.2.ebuild deleted file mode 100644 index 04248032f373..000000000000 --- a/dev-python/agate-dbf/agate-dbf-0.2.2.ebuild +++ /dev/null @@ -1,57 +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="Adds read support for DBF files to agate." -HOMEPAGE="https://github.com/wireservice/agate-dbf https://pypi.org/project/agate-dbf/" -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-dbf[xml] )" -AGATE_VERSION_DEP=">=dev-python/agate-1.5.0" -TEST_AGAINST_RDEPEND="xml? ( ${AGATE_VERSION_DEP}[xml,${PYTHON_USEDEP}] )" -RDEPEND=" - ${AGATE_VERSION_DEP}[${PYTHON_USEDEP}] - >=dev-python/dbfread-2.0.5[${PYTHON_USEDEP}] - - ${TEST_AGAINST_RDEPEND} -" -BDEPEND="test? ( ${AGATE_VERSION_DEP}[xml,${PYTHON_USEDEP}] )" - -distutils_enable_tests pytest - -AGATE_DBF_TEST_FILES=( - examples/test.dbf - examples/testdbf_converted.csv - tests/test_table.py -) -SRC_URI+=" test? ( " -for extra_file in "${AGATE_DBF_TEST_FILES[@]}"; do - SRC_URI+=" https://raw.githubusercontent.com/wireservice/agate-dbf/${PV}/${extra_file} -> ${P}_${extra_file//\//%2F}" -done -SRC_URI+=" )" - -agate-dbf_src_prepare() { - local extra_file - if use test; then - for extra_file in "${AGATE_DBF_TEST_FILES[@]}"; do - mkdir -p "${extra_file%/*}" || die - cp "${DISTDIR}/${P}_${extra_file//\//%2F}" "${extra_file}" || die - [[${extra_file} == *.py ]] && { true >> "${extra_file%/*}/__init__.py" || die; } - done - fi -} - -src_prepare() { - agate-dbf_src_prepare - distutils-r1_src_prepare -} |