python-pycountry fails to build with Python 3.9.0a2. + /usr/bin/python3 -m pytest --pyargs pycountry ============================= test session starts ============================== platform linux -- Python 3.9.0a2, pytest-4.6.9, py-1.8.0, pluggy-0.13.0 rootdir: /builddir/build/BUILD/pycountry-19.8.18 collected 19 items tests/test_general.py ...F............... [100%] =================================== FAILURES =================================== ____________________ test_subdivisions_directly_accessible _____________________ def test_subdivisions_directly_accessible(): > assert len(pycountry.subdivisions) == 4844 E assert 4884 == 4844 E + where 4884 = len(<pycountry.Subdivisions object at 0x7eff41906940>) E + where <pycountry.Subdivisions object at 0x7eff41906940> = pycountry.subdivisions ../../BUILDROOT/python-pycountry-19.8.18-2.fc32.x86_64/usr/lib/python3.9/site-packages/pycountry/tests/test_general.py:63: AssertionError ===================== 1 failed, 18 passed in 0.43 seconds ====================== For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01161902-python-pycountry/ For all our attempts to build python-pycountry with Python 3.9, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-pycountry/ 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.9: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/ Let us know here if you have any questions. Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9. 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.
Please try with python-pycountry-19.8.18-4.fc32.
Copr has some trouble right now, but the build succeeds in mock. Thanks.
This happened again with Python 3.9.0b1: ____________________ test_subdivisions_directly_accessible _____________________ def test_subdivisions_directly_accessible(): > assert len(pycountry.subdivisions) == 4884 E assert 4883 == 4884 E + where 4883 = len(<pycountry.Subdivisions object at 0x7f6e140c9df0>) E + where <pycountry.Subdivisions object at 0x7f6e140c9df0> = pycountry.subdivisions ../../BUILDROOT/python-pycountry-19.8.18-4.fc33.x86_64/usr/lib/python3.9/site-packages/pycountry/tests/test_general.py:63: AssertionError For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01397583-python-pycountry/ For all our attempts to build python-pycountry with Python 3.9, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-pycountry/
This comment is mass posted to all bugs blocking the Python 3.9 tracker, sorry if it is not 100 % relevant. When in doubt, please ask. The Python 3.9 rebuild is in progress in a Koji side tag. If you fix this bug, please don't rebuild the package in regular rawhide, but do it in the side tag with: $ fedpkg build --target=f33-python The rebuild is progressing slowly and it is possible this package won't have all the required build dependencies yet. If that's the case, please just leave the fix committed and pushed and we will eventually rebuild it for you. You are not asked to go and try rebuild all the missing dependencies yourself. If you know there is a bootstrap loop in the dependencies, let me know and we can untangle it together. If you want to test your fix or reproduce the failure, you can still use the Copr repo mentioned in the initial comment of this bug: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/
Fixed. https://koji.fedoraproject.org/koji/taskinfo?taskID=45082925