Path: csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod From: Scott Talbert Newsgroups: linux.debian.maint.python Subject: Re: python-catalogue: AttributeError: type object 'EntryPoint' has no attribute '_from_text' Date: Thu, 17 Mar 2022 17:40:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Mar 17 16:35:42 2022 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.11 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -4.6 X-X-Sender: talbert@bear.techie.net User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Mailing-List: archive/latest/19823 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/alpine.DEB.2.22.394.2203171234080.273269@bear.techie.net Approved: robomod@news.nic.it Lines: 31 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Python X-Original-Date: Thu, 17 Mar 2022 12:34:57 -0400 (EDT) X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.maint.python:14002 On Thu, 17 Mar 2022, Andreas Tille wrote: > Hi, > > I intend to package python-catalogue[1] but there is a test suite > issue (see salsa-ci for complete log[2]): > > platform linux -- Python 3.10.3, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 > rootdir: /builds/python-team/packages/python-catalogue/debian/output/source_dir > collected 8 items > catalogue/tests/test_catalogue.py ......F. [100%] > =================================== FAILURES =================================== > ______________________________ test_entry_points _______________________________ > def test_entry_points(): > # Create a new EntryPoint object by pretending we have a setup.cfg and > # use one of catalogue's util functions as the advertised function > ep_string = "[options.entry_points]test_foo\n bar = catalogue:check_exists" >> ep = catalogue.importlib_metadata.EntryPoint._from_text(ep_string) > E AttributeError: type object 'EntryPoint' has no attribute '_from_text' > catalogue/tests/test_catalogue.py:108: AttributeError > =========================== short test summary info ============================ > FAILED catalogue/tests/test_catalogue.py::test_entry_points - AttributeError:... > ========================= 1 failed, 7 passed in 0.06s ========================== > > Any hint would be welcome See: https://github.com/explosion/catalogue/issues/27 TLDR: skip that test on Python 3.10 for now. Scott