Bug 2368589 - python-ipfshttpclient fails to build with Python 3.14: AssertionError: assert ['(?![.])(?s:literal)\\z'] == ['(?![.])(?s:literal)\\Z']
Summary: python-ipfshttpclient fails to build with Python 3.14: AssertionError: assert...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ipfshttpclient
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Lemenkov
QA Contact:
URL:
Whiteboard:
: 2371950 (view as bug list)
Depends On:
Blocks: PYTHON3.14 F43FTBFS, RAWHIDEFTBFS F43FailsToInstall, RAWHIDEFailsToInstall
TreeView+ depends on / blocked
 
Reported: 2025-05-26 13:50 UTC by Karolina Surma
Modified: 2025-06-11 16:08 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-05-26 13:50:19 UTC
python-ipfshttpclient fails to build with Python 3.14.0b1.

10 tests failed with the same regex output issue:

_________________ test_glob_compile[literal-expected0-kwargs0] _________________

pattern = 'literal', expected = ['(?![.])(?s:literal)\\Z'], kwargs = {}

    @pytest.mark.parametrize("pattern,expected,kwargs", [
    	("literal",                  [r"(?![.])(?s:literal)\Z"], {}),
    	(b"literal",                 [br"(?![.])(?s:literal)\Z"], {}),
    	("*.a",                      [r"(?![.])(?s:.*\.a)\Z"], {}),
    	(b"*.a",                     [br"(?![.])(?s:.*\.a)\Z"], {}),
    	("*/**/*.dir/**/**/.hidden", [r"(?![.])(?s:.*)\Z", None, r"(?![.])(?s:.*\.dir)\Z", None, None, r"(?s:\.hidden)\Z"], {}),
    	("*/**/*.dir/**/**/.hidden", [r"(?s:.*)\Z", None, r"(?s:.*\.dir)\Z", None, None, r"(?s:\.hidden)\Z"], {"period_special": False}),
    	("././/////////./*.a",       [r"(?![.])(?s:.*\.a)\Z"], {}),
    	(b"././/////////./*.a",      [br"(?![.])(?s:.*\.a)\Z"], {}),
    	("*/*.a",                    [r"(?![.])(?s:.*)\Z", r"(?![.])(?s:.*\.a)\Z"], {}),
    	("*/*.a",                    [r"(?s:.*)\Z", r"(?s:.*\.a)\Z"], {"period_special": False}),
    ])
    def test_glob_compile(pattern: ty.AnyStr, expected: ty.List[ty.AnyStr], kwargs: ty.Dict[str, bool]):
    	matcher = filescanner.GlobMatcher(pattern, **kwargs)
>   	assert list(map(lambda r: r.pattern if r is not None else None, matcher._pat)) == expected
E    AssertionError: assert ['(?![.])(?s:literal)\\z'] == ['(?![.])(?s:literal)\\Z']
E      
E      At index 0 diff: '(?![.])(?s:literal)\\z' != '(?![.])(?s:literal)\\Z'
E      
E      Full diff:
E        [
E      -     '(?![.])(?s:literal)\\Z',
E      ?                           ^...
E      
E      ...Full output truncated (3 lines hidden), use '-vv' to show

test/unit/test_filescanner.py:50: AssertionError

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09080935-python-ipfshttpclient/

For all our attempts to build python-ipfshttpclient with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/package/python-ipfshttpclient/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Karolina Surma 2025-06-11 16:00:07 UTC
*** Bug 2371950 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.