Package: src:python-scrapy
Version: 2.18.0-2
User: [email protected]
Usertags: python3.15
Tags: ftbfs, forky, sid
Severity: important

Hi!

While rebuilding the python related packages against the Python 3.15rc2 version we found that python-scrapy fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4855316/

From the log, the error seems to be:

=================================== FAILURES =================================== ______________________ test_closespider_pagecount_no_item ______________________

mockserver = <tests.mockserver.http.MockServer object at 0x7fb1c3c0d940>

    @inline_callbacks_test
    def test_closespider_pagecount_no_item(mockserver: MockServer):
        close_on = 5
        max_items = 5
        max_requests = close_on + max_items
        crawler = get_crawler(
            MaxItemsAndRequestsSpider,
            {
                "CLOSESPIDER_PAGECOUNT_NO_ITEM": close_on,
            },
        )
        yield crawler.crawl(
max_items=max_items, max_requests=max_requests, mockserver=mockserver
        )
        assert isinstance(crawler.spider, MaxItemsAndRequestsSpider)
        reason = crawler.spider.meta["close_reason"]
      assert reason == "closespider_pagecount_no_item"
E AssertionError: assert 'finished' == 'closespider_...count_no_item'
E
E         - closespider_pagecount_no_item
E         + finished

tests/test_closespider.py:53: AssertionError

Please note that while we ran into this error during the rebuild against Python 3.15, that doesn't mean that the root cause for the failure is necessarily the new Python version, but in this case it seems quite likely, as the same test succeeds on Python 3.14 and fails on Python 3.15.

In order to build against the test archive, which includes not only python3.15 but also all the relevant build-dependencies rebuilt against it, you can add the test repository:

deb http://deb.debusine.debian.net/debian/r-python-python3.15 sid-python3.15 main

The corresponding signing key can be seen in the first section of https://deb.debusine.debian.net/debian/r-python-python3.15/

To build from a git repository, you can use something like:
gbp buildpackage --no-clean-source --git-builder='sbuild --no-run-lintian --extra-repository="deb http://deb.debusine.debian.net/debian/r-python-python3.15 sid-python3.15 main" --extra-repository-key="/path/to/signing-keys.asc"'

Setting the severity to important for now. Once Python 3.15 is released and later added to python3-defaults, this bug will become release critical.

--
Regards,
Marga

Reply via email to