Bug 1898087 - pyp2rpm fails to build with Python 3.10: Many tests error out
Summary: pyp2rpm fails to build with Python 3.10: Many tests error out
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: pyp2rpm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Gordon Messmer
QA Contact: Fedora Extras Quality Assurance
Depends On: 1898164
Blocks: PYTHON3.10
TreeView+ depends on / blocked
Reported: 2020-11-16 10:54 UTC by Miro Hrončok
Modified: 2021-02-09 16:24 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Type: Bug

Attachments (Terms of Use)

Description Miro Hrončok 2020-11-16 10:54:24 UTC
pyp2rpm fails to build with Python 3.10.0a2.

many tests error out with cryptic errors:

            sys.stderr.write("Failed to extract data from setup.py script.\n")
            sys.stderr.write("Check the log for details: {0}\n".format(
                ', '.join(pyp2rpm.logger.destinations)))
>           raise SystemExit(3)
E           SystemExit: 3

The failure log is (very) long, not pasting it here. I suspect this has to do with the double digit minor version number, but I might be wrong.

For the build logs, see:

For all our attempts to build pyp2rpm with Python 3.10, see:

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:

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 Gordon Messmer 2020-11-16 14:46:29 UTC
setup.py in one of the packages included in pyp2rpm test_data (coverate_pth) does seem to be generating an exception due to the double-digit python minor version.  I can work on this, shortly.

Is there a container image available with the python 3.10 pre-release?

Comment 2 Miro Hrončok 2020-11-16 15:05:40 UTC
> Is there a container image available with the python 3.10 pre-release?

Nope, but there's a mock config: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Comment 3 Ben Cotton 2021-02-09 15:24:53 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

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