diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-06-16 06:22:55 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-06-16 06:22:55 +0000 |
| commit | 0fa4148af439d1471b7ba8cbeaa2719752bfdea5 (patch) | |
| tree | 644e5a6bcfb2f715ff40a954bbe6564f1fdf33ff /dev-python/pyquery | |
| parent | 138976658758b93a17ac984aac6795c177573feb (diff) | |
| download | baldeagleos-repo-0fa4148af439d1471b7ba8cbeaa2719752bfdea5.tar.gz baldeagleos-repo-0fa4148af439d1471b7ba8cbeaa2719752bfdea5.tar.xz baldeagleos-repo-0fa4148af439d1471b7ba8cbeaa2719752bfdea5.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pyquery')
| -rw-r--r-- | dev-python/pyquery/pyquery-2.0.0-r1.ebuild | 61 | ||||
| -rw-r--r-- | dev-python/pyquery/pyquery-2.0.0.ebuild | 18 |
2 files changed, 10 insertions, 69 deletions
diff --git a/dev-python/pyquery/pyquery-2.0.0-r1.ebuild b/dev-python/pyquery/pyquery-2.0.0-r1.ebuild deleted file mode 100644 index 2d1423ca19cb..000000000000 --- a/dev-python/pyquery/pyquery-2.0.0-r1.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) - -inherit distutils-r1 optfeature pypi - -DESCRIPTION="A jQuery-like library for python" -HOMEPAGE=" - https://github.com/gawel/pyquery/ - https://pypi.org/project/pyquery/ -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - >=dev-python/lxml-2.1[${PYTHON_USEDEP}] - >=dev-python/cssselect-1.2.0[${PYTHON_USEDEP}] - >=dev-python/webob-1.1.9[${PYTHON_USEDEP}] -" -DEPEND=" - test? ( - dev-python/beautifulsoup4[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/webtest[${PYTHON_USEDEP}] - dev-python/webob[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -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 - ) - case ${EPYTHON} in - python3.1[23]) - EPYTEST_DESELECT+=( - # doctest failing because of changed repr() - # https://github.com/gawel/pyquery/issues/249 - pyquery/pyquery.py::pyquery.pyquery.PyQuery.serialize_dict - ) - ;; - esac - - epytest -} - -pkg_postinst() { - optfeature "Support for BeautifulSoup3 as a parser backend" dev-python/beautifulsoup4 -} diff --git a/dev-python/pyquery/pyquery-2.0.0.ebuild b/dev-python/pyquery/pyquery-2.0.0.ebuild index e50b186b9133..2f5b1bede7f9 100644 --- a/dev-python/pyquery/pyquery-2.0.0.ebuild +++ b/dev-python/pyquery/pyquery-2.0.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -43,13 +43,15 @@ python_test() { # 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 + case ${EPYTHON} in + python3.1[23]) + EPYTEST_DESELECT+=( + # doctest failing because of changed repr() + # https://github.com/gawel/pyquery/issues/249 + pyquery/pyquery.py::pyquery.pyquery.PyQuery.serialize_dict + ) + ;; + esac epytest } |
