Bug 1914225

Summary: python-http-client fails to build: Copyright (C) 2021 not found in Copyright (C) 2020
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-http-clientAssignee: Lumír Balhar <lbalhar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dkrejci, lbalhar, mhroncok, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-12 05:56:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1868278, 1890881    

Description Tomáš Hrnčiar 2021-01-08 11:49:07 UTC
python-http-client fails to build with Python 3.10.0a4.

=================================== FAILURES ===================================
________________________ DateRangeTest.test__daterange _________________________

self = <tests.test_daterange.DateRangeTest testMethod=test__daterange>

    def test__daterange(self):
>       self.assertIn(self.pattern, self.license_file)
E       AssertionError: 'Copyright (C) 2021, Twilio SendGrid, Inc.' not found in 'MIT License\n\nCopyright (C) 2020, Twilio SendGrid, Inc. <help>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the "Software"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n'

tests/test_daterange.py:19: AssertionError
=========================== short test summary info ============================
FAILED tests/test_daterange.py::DateRangeTest::test__daterange - AssertionErr...
========================= 1 failed, 11 passed in 0.13s =========================

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01865137-python-http-client/

For all our attempts to build python-http-client with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-http-client/

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.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
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 Miro Hrončok 2021-01-08 12:17:30 UTC
This is a 2021 problem. I bet it also happens on rawhide.

Comment 2 Miro Hrončok 2021-01-08 12:20:38 UTC
(In reply to Miro Hrončok from comment #1)
> I bet it also happens on rawhide.

Indeed: https://koschei.fedoraproject.org/package/python-http-client?collection=f34

Comment 3 Lumír Balhar 2021-01-12 05:56:17 UTC
Fixed in python-http-client-3.3.1-2.fc34