Date: Tue, 13 Apr 2021 20:40:24 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 250380] textproc/py-feedparser: fails to import with lang/python39 Message-ID: <bug-250380-21822-LO8Hthb5Zt@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-250380-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-250380-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250380 Sofian Brabez <sbz@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress --- Comment #18 from Sofian Brabez <sbz@FreeBSD.org> --- Hi,=20 This bug is now on my radar, somehow it never reached me. Where we at now? Would an new update to the new release 6.0.2 available on GitHub here will solved the issue and unblock? I'm attaching a new up-to-date patch against `main` with all the changes fr= om James, does it looks good for you? So far it looks good with my tests with = py37 and py39 flavor below: - with python3.7 $ sudo make install clean FLAVOR=3Dpy37 $ python3.7 Python 3.7.10 (default, Mar 2 2021, 01:19:31)=20 [Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c= 611a on freebsd12 Type "help", "copyright", "credits" or "license" for more information. >>> import feedparser >>> print(feedparser.__file__) /usr/local/lib/python3.7/site-packages/feedparser/__init__.py >>> dir(feedparser) ['CharacterEncodingOverride', 'CharacterEncodingUnknown', 'FeedParserDict', 'NonXMLContentType', 'RESOLVE_RELATIVE_URIS', 'SANITIZE_HTML', 'ThingsNobodyCaresAboutButMe', 'USER_AGENT', 'UndeclaredNamespace', '__author__', '__builtins__', '__cached__', '__doc__', '__file__', '__license__', '__loader__', '__name__', '__package__', '__path__', '__spec= __', '__version__', 'api', 'datetimes', 'encodings', 'exceptions', 'html', 'http= ', 'mixin', 'namespaces', 'parse', 'parsers', 'registerDateHandler', 'sanitize= r', 'sgml', 'urls', 'util'] >>> feedparser.parse('http://feedparser.org/docs/examples/atom10.xml')['fee= d'] {'html': {'lang': 'en'}, 'meta': {'name': 'viewport', 'content': 'width=3Ddevice-width,initial-scale=3D1'}, 'links': [{'rel': 'shortcut icon= ', 'href': 'data:image/x-icon;,', 'type': 'image/x-icon'}], 'script': {'type': 'application/javascript'}, 'a': {'target': '_blank', 'href': 'https://www.enable-javascript.com/'}, 'summary': '<div id=3D"contentMain"></div>'} - with python3.9 $ sudo make install FLAVOR=3Dpy39 BUILD_ALL_PYTHON_FLAVORS=3D1 $ python3.9 Python 3.9.2 (default, Feb 25 2021, 13:58:29)=20 [Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c= 611a on freebsd12 Type "help", "copyright", "credits" or "license" for more information. >>> print(feedparser.__file__) /usr/local/lib/python3.9/site-packages/feedparser/__init__.py >>> feedparser.parse('http://feedparser.org/docs/examples/atom10.xml')['fee= d'] {'html': {'lang': 'en'}, 'meta': {'name': 'viewport', 'content': 'width=3Ddevice-width,initial-scale=3D1'}, 'links': [{'rel': 'shortcut icon= ', 'href': 'data:image/x-icon;,', 'type': 'image/x-icon'}], 'script': {'type': 'application/javascript'}, 'a': {'target': '_blank', 'href': 'https://www.enable-javascript.com/'}, 'summary': '<div id=3D"contentMain"></div>'} Also I have updated test targets: make test =3D=3D=3D> Testing for py37-feedparser-6.0.2 =3D=3D=3D> py37-feedparser-6.0.2 depends on file: /usr/local/bin/python3.= 7 - found ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ........................................................... ---------------------------------------------------------------------- Ran 4334 tests in 4.560s OK [1] https://github.com/kurtmckee/feedparser/releases/tag/6.0.2 --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250380-21822-LO8Hthb5Zt>