diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-07-31 18:13:07 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-07-31 18:13:07 +0000 |
| commit | 574e1753f4152794cfa32ae3d6460116abb784ac (patch) | |
| tree | 564145ed5bfbf22eb38f242db90a95fe7226c917 /dev-python/pyquery | |
| parent | c9e2735206c5331476d5b4dda1debb6458344a02 (diff) | |
| download | baldeagleos-repo-574e1753f4152794cfa32ae3d6460116abb784ac.tar.gz baldeagleos-repo-574e1753f4152794cfa32ae3d6460116abb784ac.tar.xz baldeagleos-repo-574e1753f4152794cfa32ae3d6460116abb784ac.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pyquery')
| -rw-r--r-- | dev-python/pyquery/pyquery-2.0.0.ebuild | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/dev-python/pyquery/pyquery-2.0.0.ebuild b/dev-python/pyquery/pyquery-2.0.0.ebuild index c907beda4dfb..4b1703db3a31 100644 --- a/dev-python/pyquery/pyquery-2.0.0.ebuild +++ b/dev-python/pyquery/pyquery-2.0.0.ebuild @@ -4,7 +4,6 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -# No 3.12 yet for https://github.com/gawel/pyquery/issues/249 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 optfeature pypi @@ -35,10 +34,25 @@ DEPEND=" distutils_enable_tests pytest -EPYTEST_DESELECT=( - # needs network - tests/test_pyquery.py::TestWebScrappingEncoding::test_get -) +python_test() { + local EPYTEST_DESELECT=( + # needs network + tests/test_pyquery.py::TestWebScrappingEncoding::test_get + # known breakage, can't do much about it unless we force old + # libxml2 for everyone, sigh + # https://github.com/gawel/pyquery/issues/248 + tests/test_pyquery.py::TestXMLNamespace::test_selector_html + ) + if [[ ${EPYTHON} == python3.12 ]]; then + EPYTEST_DESELECT+=( + # doctest failing because of changed repr() + # https://github.com/gawel/pyquery/issues/249 + pyquery/pyquery.py::pyquery.pyquery.PyQuery.serialize_dict + ) + fi + + epytest +} pkg_postinst() { optfeature "Support for BeautifulSoup3 as a parser backend" dev-python/beautifulsoup4 |
