diff options
Diffstat (limited to 'dev-python/agate-excel')
-rw-r--r-- | dev-python/agate-excel/Manifest | 2 | ||||
-rw-r--r-- | dev-python/agate-excel/agate-excel-0.2.3.ebuild | 27 |
2 files changed, 26 insertions, 3 deletions
diff --git a/dev-python/agate-excel/Manifest b/dev-python/agate-excel/Manifest index 2f35e45e30f9..84ef1f0d9ed5 100644 --- a/dev-python/agate-excel/Manifest +++ b/dev-python/agate-excel/Manifest @@ -1,3 +1,3 @@ DIST agate-excel-0.2.3.tar.gz 153880 BLAKE2B f090c8bbb75341623545781cbf116b547ebc16249eb0c6814e9fbd51d2688fd2bd0354d187d2f803bde69e563b57836e3d214e287ae62455c59075020588d235 SHA512 3a50bab182391bdadb2e0a82dc28a3cfa1eebbe67744835ab20581a67f7f08f4edb96eebc9a286ac4a6a302996571563ca9e487ea7defdcf07265e9c42436ddf -EBUILD agate-excel-0.2.3.ebuild 636 BLAKE2B a89276069166a3695f10338c3479916460faea3d0272d66d21b4943ed219d038bec3e6b8e9a2ba6c2b44ec0c111d3d1e4cbaaec2a1f7e70749b713bfa9940e9e SHA512 d5b19348b871bceff28a17fb27601b168d1400be7072ff30280f9b737b952995bb2ce5d5c59488fc674e52883e208865b6abb55b43f7589c8c48b1ef7e2c4e5b +EBUILD agate-excel-0.2.3.ebuild 1221 BLAKE2B 3d27b1d2f248306abd7742204e1736ab1f93e3b6235e811dcfae2e37c74809b15f8f19c40e8f625acecfe8998915eaf8d91dc1d9d872539cf4e58af8ba122dcf SHA512 a7e81b85932f0e7b95c5c68f9f2ae513defe74830d9e237bab2c639fb5c9244c74a3be5563ff6f2372d9a697fb560cd2638571890bc3833c94e43d2d9bdcf98b MISC metadata.xml 520 BLAKE2B 76548784a8782afa93d38311da98f13f33ac7291f88699dd6c9b2430081803e6a9fbd9d378f060dc641ff6ebc5cea664f60b09d7cc1e58bdb50a2a94bd277843 SHA512 de75458d4d3976f6c54ff41ff14d98b34cee9a2dc3e8830f76362c5c024f8849b8cd27a4999bb9e0cd8adb3e7bf89ace54d5f5eadaeb7975e4145389d635f1ad diff --git a/dev-python/agate-excel/agate-excel-0.2.3.ebuild b/dev-python/agate-excel/agate-excel-0.2.3.ebuild index 224da100426a..0774e1cfcadd 100644 --- a/dev-python/agate-excel/agate-excel-0.2.3.ebuild +++ b/dev-python/agate-excel/agate-excel-0.2.3.ebuild @@ -15,10 +15,33 @@ SLOT="0" KEYWORDS="~amd64" IUSE="" RDEPEND="" -RESTRICT="test" +IUSE="test +xml" +RESTRICT="!test? ( test )" +# Other packages have BDEPEND="test? ( dev-python/agate-excel[xml] )" +AGATE_VERSION_DEP=">=dev-python/agate-1.5.0" +TEST_AGAINST_RDEPEND="xml? ( ${AGATE_VERSION_DEP}[xml,${PYTHON_USEDEP}] )" RDEPEND=" - >=dev-python/agate-1.5.0[${PYTHON_USEDEP}] + ${AGATE_VERSION_DEP}[${PYTHON_USEDEP}] >=dev-python/openpyxl-2.3.0[${PYTHON_USEDEP}] >=dev-python/xlrd-0.9.4[${PYTHON_USEDEP}] + + ${TEST_AGAINST_RDEPEND} " +BDEPEND="test? ( ${AGATE_VERSION_DEP}[xml,${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest + +python_test() { + local pytest_args test_name xfails + + xfails=( + tests/test_table_xlsx.py::TestXLSX::test_ambiguous_date + ) + + for test_name in "${xfails[@]}"; do + pytest_args+=(--deselect "${test_name}") + done + + epytest "${pytest_args[@]}" || die +} |