diff options
Diffstat (limited to 'dev-python/feedparser')
-rw-r--r-- | dev-python/feedparser/Manifest | 9 | ||||
-rw-r--r-- | dev-python/feedparser/feedparser-5.2.1-r1.ebuild | 40 | ||||
-rw-r--r-- | dev-python/feedparser/feedparser-6.0.11.ebuild | 46 | ||||
-rw-r--r-- | dev-python/feedparser/feedparser-6.0.2.ebuild | 38 | ||||
-rw-r--r-- | dev-python/feedparser/feedparser-6.0.3.ebuild | 38 | ||||
-rw-r--r-- | dev-python/feedparser/feedparser-6.0.4.ebuild | 38 | ||||
-rw-r--r-- | dev-python/feedparser/feedparser-6.0.5.ebuild | 38 | ||||
-rw-r--r-- | dev-python/feedparser/feedparser-6.0.6.ebuild | 38 | ||||
-rw-r--r-- | dev-python/feedparser/feedparser-6.0.7.ebuild | 38 | ||||
-rw-r--r-- | dev-python/feedparser/feedparser-6.0.8.ebuild | 38 | ||||
-rw-r--r-- | dev-python/feedparser/files/feedparser-5.2.1-sgmllib.patch | 78 | ||||
-rw-r--r-- | dev-python/feedparser/files/feedparser-6.0.8-fix-py3.10.patch | 15 | ||||
-rw-r--r-- | dev-python/feedparser/metadata.xml | 2 |
13 files changed, 63 insertions, 393 deletions
diff --git a/dev-python/feedparser/Manifest b/dev-python/feedparser/Manifest index e87bd4eeb34e..4cfb87176dcc 100644 --- a/dev-python/feedparser/Manifest +++ b/dev-python/feedparser/Manifest @@ -1,8 +1 @@ -DIST feedparser-5.2.1.tar.gz 252956 BLAKE2B 182ebefa8a44276e758f277c203c28b274c580b667b039e4fc6ed9bd059b15e35e775e9efb784a97d712dc57e7b176ff91d6e094ddd225735f4315ffa770ae83 SHA512 1fd0c4324e2eff8ef4b15e3793c767290bca562af4a5056fdbdfa12411095530c87a113bb1b9757e532ff63aecb399b18f1e6b753884798eb6b8d3fdf575af81 -DIST feedparser-6.0.2.tar.gz 251508 BLAKE2B e571bbd1a26ff06536ce3a134a5f91ff2cfc65ef7074ba7d1e17f4ed57ba19f8db395991b0a8137f9a7db931d4bda2a8a9157588ea5764ffde3bfd0616c71a35 SHA512 8ffcfb2934070ed6f0fc1a3b3d7c6a055c8c8e29dee8d56fa489832b71b94bc70dd8c8360061a103894ea9a80c6a91a6708da16999e36619092674ccfda36a75 -DIST feedparser-6.0.3.tar.gz 251556 BLAKE2B e0aec37a3bf70be26791c6717dd015e128a8a1e4dc8be77371deb4b02e4dac7316366e1a36333e92ae1fbf10096bcba6aa61e06fcbb58c7cc6a00d401939fa7d SHA512 f8de4ed660cde3bce1b289a3f2eb49222a55bd3512a1a16b1805f7d19461c0aac3d9603d66c68af94b71557adcb1cc080cea996700950cee81b644c2fefe0c54 -DIST feedparser-6.0.4.tar.gz 251880 BLAKE2B 22a94bce43b4ff8ad9aa95d07c71568d7d6e1d8732ce84880f1565d48673706a3eea1c9bbf2dbe42e6384a737170c409cddccfcbfb46f92140d9262b16573071 SHA512 33b6e2cda5a6fe5bc1b51f26ec256e86e81c7cab050027592cc47173389554a7ebf9ed82454690dad534256bac5f907ca0f32871b2741d1d5318ff94e8e66558 -DIST feedparser-6.0.5.tar.gz 252003 BLAKE2B 91f1a5cd8f1d7124ebfc4c6ce31be81d2251a3769a2ec491325236ecc6506d73658fa7f4825a82e41d4c190017a66a41b6a93f19b37f0062d2abcca76d6791bf SHA512 6b91c8cd84ac7de9a632ae23c3bcd543ecc4dbbeeefac370c62af0fc83057a108b26a84e2199ae900300a09e89a117c475776276231d7cd27d20a10b16814958 -DIST feedparser-6.0.6.tar.gz 252114 BLAKE2B 47a22799c76832d8c21959a43514f4e81b427a1d54d4cfd6e95bcb3cd23a8b50611f640107d9078b3bf8f4d3b254b8c8863fafe56b6a53d02cffb6d7cd7c1a3f SHA512 e94b0f8e1be2b70db897297fb456df3d5e86a1e952fd4278f9370fc94e3a13930ddbeb866a525b9344e9cd2e4d768a7bda7b1368354e68d16eff133319a8bca9 -DIST feedparser-6.0.7.tar.gz 252432 BLAKE2B 7eba914b073a241d79c73a1a3a0308d035fae9eaa26a3eb54714272d534b5c965db97676e32ce59bf748dfb3ccbf31d1044b75006b87df0e0b6fc2f7a6f5fc6d SHA512 ae0f871dac2f7096e265f6931fe275ecc22eae091a6855fb5d1b78c9a5de9a16cff05742ddf05277068d6b4e4908b2350bb8784855be4c136c9b37835c19efa2 -DIST feedparser-6.0.8.tar.gz 252496 BLAKE2B 1a17ef6aa41e0782743d5d331ba26e2d1518475534adcd62457bc6fab00b93e24a3a3b03f4acf8358d321464b985c9d09383dc0373680577c10b742c5e1366fd SHA512 9de702dbebe28b379fd164afed8c408f46301f3ebf91d9f862f12de98a1bcee9f6d38a27c0b8a64e87bc0a20d0ad992ed78b190406649f775e2e8c9ca62b4d8c +DIST feedparser-6.0.11.gh.tar.gz 253205 BLAKE2B 390a7e2cc5d8c1d0f5fa0d696990fe319ce61d0e65dc3f4eb6b3d21c3e11e06d1eb9aa48e72f55dd293364be555120e4e71d1673a04dbbade81be0f5c6853d92 SHA512 258e06d6077d92a75a899f0832c28587e52aff62b40b03af42effbeb9d5dc1d282f423fad762cf4ddeb854cf709346cf531e05b73aa753dbed97793981d20a97 diff --git a/dev-python/feedparser/feedparser-5.2.1-r1.ebuild b/dev-python/feedparser/feedparser-5.2.1-r1.ebuild deleted file mode 100644 index c32c70f42190..000000000000 --- a/dev-python/feedparser/feedparser-5.2.1-r1.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Parse RSS and Atom feeds in Python" -HOMEPAGE="https://github.com/kurtmckee/feedparser https://pypi.org/project/feedparser/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -# sgmllib is licensed under PSF-2. -LICENSE="BSD-2 PSF-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" -IUSE="" - -# Tests have issues with chardet installed, and are just kind of buggy. -RESTRICT="test" - -PATCHES=( - "${FILESDIR}/${P}-sgmllib.patch" -) - -python_prepare_all() { - mv feedparser/sgmllib3.py feedparser/_feedparser_sgmllib.py || die - distutils-r1_python_prepare_all -} - -python_test() { - cp feedparser/feedparsertest.py "${BUILD_DIR}" || die - ln -s "${S}/feedparser/tests" "${BUILD_DIR}/tests" || die - cd "${BUILD_DIR}" || die - if [[ ${EPYTHON} == python3* ]]; then - 2to3 --no-diffs -w -n feedparsertest.py || die - fi - "${PYTHON}" feedparsertest.py || die "Testing failed with ${EPYTHON}" -} diff --git a/dev-python/feedparser/feedparser-6.0.11.ebuild b/dev-python/feedparser/feedparser-6.0.11.ebuild new file mode 100644 index 000000000000..518ad7a42317 --- /dev/null +++ b/dev-python/feedparser/feedparser-6.0.11.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +inherit distutils-r1 + +MY_PV=${PV/_beta/b} +MY_P=${PN}-${MY_PV} +DESCRIPTION="Parse RSS and Atom feeds in Python" +HOMEPAGE=" + https://github.com/kurtmckee/feedparser/ + https://pypi.org/project/feedparser/ +" +SRC_URI=" + https://github.com/kurtmckee/feedparser/archive/${MY_PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + dev-python/sgmllib3k[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/feedparser-6.0.8-fix-py3.10.patch" +) + +src_prepare() { + # broken + rm \ + tests/illformed/chardet/{big5,euckr,gb2312,windows1255}.xml \ + tests/illformed/undeclared_namespace.xml || die + distutils-r1_src_prepare +} + +python_test() { + "${EPYTHON}" tests/runtests.py -v || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/feedparser/feedparser-6.0.2.ebuild b/dev-python/feedparser/feedparser-6.0.2.ebuild deleted file mode 100644 index 3eede0f31b71..000000000000 --- a/dev-python/feedparser/feedparser-6.0.2.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} pypy3 ) - -inherit distutils-r1 - -MY_PV=${PV/_beta/b} -MY_P=${PN}-${MY_PV} -DESCRIPTION="Parse RSS and Atom feeds in Python" -HOMEPAGE="https://github.com/kurtmckee/feedparser - https://pypi.org/project/feedparser/" -SRC_URI=" - https://github.com/kurtmckee/feedparser/archive/${MY_PV}.tar.gz - -> ${MY_P}.tar.gz" -S=${WORKDIR}/${MY_P} - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" - -RDEPEND="dev-python/sgmllib3k[${PYTHON_USEDEP}]" - -distutils_enable_tests unittest - -src_prepare() { - # broken - rm \ - tests/illformed/chardet/big5.xml \ - tests/illformed/undeclared_namespace.xml || die - distutils-r1_src_prepare -} - -python_test() { - "${EPYTHON}" tests/runtests.py || die -} diff --git a/dev-python/feedparser/feedparser-6.0.3.ebuild b/dev-python/feedparser/feedparser-6.0.3.ebuild deleted file mode 100644 index 2eb6ae0aca1b..000000000000 --- a/dev-python/feedparser/feedparser-6.0.3.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} pypy3 ) - -inherit distutils-r1 - -MY_PV=${PV/_beta/b} -MY_P=${PN}-${MY_PV} -DESCRIPTION="Parse RSS and Atom feeds in Python" -HOMEPAGE="https://github.com/kurtmckee/feedparser - https://pypi.org/project/feedparser/" -SRC_URI=" - https://github.com/kurtmckee/feedparser/archive/${MY_PV}.tar.gz - -> ${MY_P}.tar.gz" -S=${WORKDIR}/${MY_P} - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" - -RDEPEND="dev-python/sgmllib3k[${PYTHON_USEDEP}]" - -distutils_enable_tests unittest - -src_prepare() { - # broken - rm \ - tests/illformed/chardet/big5.xml \ - tests/illformed/undeclared_namespace.xml || die - distutils-r1_src_prepare -} - -python_test() { - "${EPYTHON}" tests/runtests.py || die -} diff --git a/dev-python/feedparser/feedparser-6.0.4.ebuild b/dev-python/feedparser/feedparser-6.0.4.ebuild deleted file mode 100644 index 2eb6ae0aca1b..000000000000 --- a/dev-python/feedparser/feedparser-6.0.4.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} pypy3 ) - -inherit distutils-r1 - -MY_PV=${PV/_beta/b} -MY_P=${PN}-${MY_PV} -DESCRIPTION="Parse RSS and Atom feeds in Python" -HOMEPAGE="https://github.com/kurtmckee/feedparser - https://pypi.org/project/feedparser/" -SRC_URI=" - https://github.com/kurtmckee/feedparser/archive/${MY_PV}.tar.gz - -> ${MY_P}.tar.gz" -S=${WORKDIR}/${MY_P} - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" - -RDEPEND="dev-python/sgmllib3k[${PYTHON_USEDEP}]" - -distutils_enable_tests unittest - -src_prepare() { - # broken - rm \ - tests/illformed/chardet/big5.xml \ - tests/illformed/undeclared_namespace.xml || die - distutils-r1_src_prepare -} - -python_test() { - "${EPYTHON}" tests/runtests.py || die -} diff --git a/dev-python/feedparser/feedparser-6.0.5.ebuild b/dev-python/feedparser/feedparser-6.0.5.ebuild deleted file mode 100644 index 2eb6ae0aca1b..000000000000 --- a/dev-python/feedparser/feedparser-6.0.5.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} pypy3 ) - -inherit distutils-r1 - -MY_PV=${PV/_beta/b} -MY_P=${PN}-${MY_PV} -DESCRIPTION="Parse RSS and Atom feeds in Python" -HOMEPAGE="https://github.com/kurtmckee/feedparser - https://pypi.org/project/feedparser/" -SRC_URI=" - https://github.com/kurtmckee/feedparser/archive/${MY_PV}.tar.gz - -> ${MY_P}.tar.gz" -S=${WORKDIR}/${MY_P} - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" - -RDEPEND="dev-python/sgmllib3k[${PYTHON_USEDEP}]" - -distutils_enable_tests unittest - -src_prepare() { - # broken - rm \ - tests/illformed/chardet/big5.xml \ - tests/illformed/undeclared_namespace.xml || die - distutils-r1_src_prepare -} - -python_test() { - "${EPYTHON}" tests/runtests.py || die -} diff --git a/dev-python/feedparser/feedparser-6.0.6.ebuild b/dev-python/feedparser/feedparser-6.0.6.ebuild deleted file mode 100644 index 20498a98346b..000000000000 --- a/dev-python/feedparser/feedparser-6.0.6.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{8..9} pypy3 ) - -inherit distutils-r1 - -MY_PV=${PV/_beta/b} -MY_P=${PN}-${MY_PV} -DESCRIPTION="Parse RSS and Atom feeds in Python" -HOMEPAGE="https://github.com/kurtmckee/feedparser - https://pypi.org/project/feedparser/" -SRC_URI=" - https://github.com/kurtmckee/feedparser/archive/${MY_PV}.tar.gz - -> ${MY_P}.tar.gz" -S=${WORKDIR}/${MY_P} - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" - -RDEPEND="dev-python/sgmllib3k[${PYTHON_USEDEP}]" - -distutils_enable_tests unittest - -src_prepare() { - # broken - rm \ - tests/illformed/chardet/big5.xml \ - tests/illformed/undeclared_namespace.xml || die - distutils-r1_src_prepare -} - -python_test() { - "${EPYTHON}" tests/runtests.py || die -} diff --git a/dev-python/feedparser/feedparser-6.0.7.ebuild b/dev-python/feedparser/feedparser-6.0.7.ebuild deleted file mode 100644 index 20498a98346b..000000000000 --- a/dev-python/feedparser/feedparser-6.0.7.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{8..9} pypy3 ) - -inherit distutils-r1 - -MY_PV=${PV/_beta/b} -MY_P=${PN}-${MY_PV} -DESCRIPTION="Parse RSS and Atom feeds in Python" -HOMEPAGE="https://github.com/kurtmckee/feedparser - https://pypi.org/project/feedparser/" -SRC_URI=" - https://github.com/kurtmckee/feedparser/archive/${MY_PV}.tar.gz - -> ${MY_P}.tar.gz" -S=${WORKDIR}/${MY_P} - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" - -RDEPEND="dev-python/sgmllib3k[${PYTHON_USEDEP}]" - -distutils_enable_tests unittest - -src_prepare() { - # broken - rm \ - tests/illformed/chardet/big5.xml \ - tests/illformed/undeclared_namespace.xml || die - distutils-r1_src_prepare -} - -python_test() { - "${EPYTHON}" tests/runtests.py || die -} diff --git a/dev-python/feedparser/feedparser-6.0.8.ebuild b/dev-python/feedparser/feedparser-6.0.8.ebuild deleted file mode 100644 index 20498a98346b..000000000000 --- a/dev-python/feedparser/feedparser-6.0.8.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{8..9} pypy3 ) - -inherit distutils-r1 - -MY_PV=${PV/_beta/b} -MY_P=${PN}-${MY_PV} -DESCRIPTION="Parse RSS and Atom feeds in Python" -HOMEPAGE="https://github.com/kurtmckee/feedparser - https://pypi.org/project/feedparser/" -SRC_URI=" - https://github.com/kurtmckee/feedparser/archive/${MY_PV}.tar.gz - -> ${MY_P}.tar.gz" -S=${WORKDIR}/${MY_P} - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" - -RDEPEND="dev-python/sgmllib3k[${PYTHON_USEDEP}]" - -distutils_enable_tests unittest - -src_prepare() { - # broken - rm \ - tests/illformed/chardet/big5.xml \ - tests/illformed/undeclared_namespace.xml || die - distutils-r1_src_prepare -} - -python_test() { - "${EPYTHON}" tests/runtests.py || die -} diff --git a/dev-python/feedparser/files/feedparser-5.2.1-sgmllib.patch b/dev-python/feedparser/files/feedparser-5.2.1-sgmllib.patch deleted file mode 100644 index 714480560e52..000000000000 --- a/dev-python/feedparser/files/feedparser-5.2.1-sgmllib.patch +++ /dev/null @@ -1,78 +0,0 @@ -From 812793c07d3202d3f5bc39091aec2e7071d000c8 Mon Sep 17 00:00:00 2001 -From: Sebastian Pipping <sebastian@pipping.org> -Date: Sun, 1 Jan 2012 19:30:57 +0100 -Subject: [PATCH] Use shipped sgmllib for Python 3.x - ---- - feedparser/feedparser.py | 19 +++---------------- - setup.py | 2 +- - 2 files changed, 4 insertions(+), 17 deletions(-) - -diff --git a/feedparser/feedparser.py b/feedparser/feedparser.py -index 8275c29..9a8a053 100644 ---- a/feedparser/feedparser.py -+++ b/feedparser/feedparser.py -@@ -204,17 +204,9 @@ else: - try: - import sgmllib - except ImportError: -- # This is probably Python 3, which doesn't include sgmllib anymore -- _SGML_AVAILABLE = 0 -+ import _feedparser_sgmllib as sgmllib - -- # Mock sgmllib enough to allow subclassing later on -- class sgmllib(object): -- class SGMLParser(object): -- def goahead(self, i): -- pass -- def parse_starttag(self, i): -- pass --else: -+if True: - _SGML_AVAILABLE = 1 - - # sgmllib defines a number of module-level regular expressions that are -@@ -2520,9 +2512,6 @@ class _RelativeURIResolver(_BaseHTMLProcessor): - _BaseHTMLProcessor.unknown_starttag(self, tag, attrs) - - def _resolveRelativeURIs(htmlSource, baseURI, encoding, _type): -- if not _SGML_AVAILABLE: -- return htmlSource -- - p = _RelativeURIResolver(baseURI, encoding, _type) - p.feed(htmlSource) - return p.output() -@@ -2803,8 +2792,6 @@ class _HTMLSanitizer(_BaseHTMLProcessor): - - - def _sanitizeHTML(htmlSource, encoding, _type): -- if not _SGML_AVAILABLE: -- return htmlSource - p = _HTMLSanitizer(encoding, _type) - htmlSource = htmlSource.replace('<![CDATA[', '<![CDATA[') - p.feed(htmlSource) -@@ -3890,7 +3877,7 @@ def parse(url_file_stream_or_string, etag=None, modified=None, agent=None, refer - result['bozo'] = 1 - result['bozo_exception'] = feedparser.exc or e - use_strict_parser = 0 -- if not use_strict_parser and _SGML_AVAILABLE: -+ if not use_strict_parser: - feedparser = _LooseFeedParser(baseuri, baselang, 'utf-8', entities) - feedparser.feed(data.decode('utf-8', 'replace')) - result['feed'] = feedparser.feeddata -diff --git a/setup.py b/setup.py -index a4a60fe..8c15451 100644 ---- a/setup.py -+++ b/setup.py -@@ -16,7 +16,7 @@ setup( - download_url = 'https://pypi.python.org/pypi/feedparser', - platforms = ['POSIX', 'Windows'], - package_dir = {'': 'feedparser'}, -- py_modules = ['feedparser'], -+ py_modules = ['feedparser', '_feedparser_sgmllib'], - keywords = ['atom', 'cdf', 'feed', 'parser', 'rdf', 'rss'], - classifiers = [ - 'Development Status :: 5 - Production/Stable', --- -1.7.8.1 - diff --git a/dev-python/feedparser/files/feedparser-6.0.8-fix-py3.10.patch b/dev-python/feedparser/files/feedparser-6.0.8-fix-py3.10.patch new file mode 100644 index 000000000000..8f835f37207e --- /dev/null +++ b/dev-python/feedparser/files/feedparser-6.0.8-fix-py3.10.patch @@ -0,0 +1,15 @@ +From: Kurt McKee <contactme@kurtmckee.org> +Date: Sat, 12 Jun 2021 15:32:05 -0500 +Subject: [PATCH] Fix a crash that occurs with Python 3.10.0b2 + +--- a/feedparser/html.py ++++ b/feedparser/html.py +@@ -337,7 +337,7 @@ def parse_declaration(self, i): + + try: + return sgmllib.SGMLParser.parse_declaration(self, i) +- except sgmllib.SGMLParseError: ++ except (AssertionError, sgmllib.SGMLParseError): + # Escape the doctype declaration and continue parsing. + self.handle_data('<') + return i+1 diff --git a/dev-python/feedparser/metadata.xml b/dev-python/feedparser/metadata.xml index dfe7003bfe13..7c91fdd55a55 100644 --- a/dev-python/feedparser/metadata.xml +++ b/dev-python/feedparser/metadata.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="project"> <email>python@gentoo.org</email> |