Bug 2246282 - python-virtualenv-clone fails to build with Python 3.13: AssertionError: All versions were skipped.
Summary: python-virtualenv-clone fails to build with Python 3.13: AssertionError: All ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-virtualenv-clone
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Infrastructure SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-26 07:24 UTC by Karolina Surma
Modified: 2023-10-30 17:44 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-10-30 17:44:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources python-virtualenv-clone pull-request 5 0 None None None 2023-10-26 09:48:41 UTC
Github edwardgeorge virtualenv-clone pull 76 0 None open Ensure the current Python version is in tests.versions 2023-10-26 09:48:41 UTC

Description Karolina Surma 2023-10-26 07:24:38 UTC
python-virtualenv-clone fails to build with Python 3.13.0a1.

This report is automated and not very verbose, but we'll try to get back here with details.

__________________ TestVirtualenvSys.test_virtualenv_versions __________________

self = <tests.test_virtualenv_sys.TestVirtualenvSys testMethod=test_virtualenv_versions>

    def test_virtualenv_versions(self):
        """Verify version for created virtualenvs"""
>       for version in start_version_test():

tests/test_virtualenv_sys.py:35: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def start_version_test():
        ran_once = False
        for version in versions:
            # create a virtualenv
            if subprocess.call(['virtualenv', '-p', 'python' + version,
                                venv_path]) != 0:
                continue
    
            ran_once = True
            yield version
    
>       assert ran_once, "All versions were skipped."
E       AssertionError: All versions were skipped.
E       assert False

tests/test_virtualenv_sys.py:20: AssertionError
----------------------------- Captured stdout call -----------------------------
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python2.7'
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.4'
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.5'
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.6'
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.7'
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.8'
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.9'
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.10'
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.11'
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.12'
=========================== short test summary info ============================
FAILED tests/test_virtualenv_sys.py::TestVirtualenvSys::test_clone_syspath - ...
FAILED tests/test_virtualenv_sys.py::TestVirtualenvSys::test_clone_version - ...
FAILED tests/test_virtualenv_sys.py::TestVirtualenvSys::test_virtualenv_syspath
FAILED tests/test_virtualenv_sys.py::TestVirtualenvSys::test_virtualenv_versions
======================== 4 failed, 14 passed in 10.20s =========================

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06557763-python-virtualenv-clone/

For all our attempts to build python-virtualenv-clone with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-virtualenv-clone/

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

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
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 2023-10-26 09:47:51 UTC
Upstream code has a tendency to fail this way with new Pythons. This patch only adds Python 3.11 and 3.12:

https://src.fedoraproject.org/rpms/python-virtualenv-clone/blob/rawhide/f/allow-python3.11-and-3.12.patch

I've opened "Instead of updating the patch, extend the list of Python versions dynamically" PR almost 4 months ago, no response either downstream or upstream: https://src.fedoraproject.org/rpms/python-virtualenv-clone/pull-request/5 and https://github.com/edwardgeorge/virtualenv-clone/pull/76



 	
Fedora Infrastructure SIG, could you please review that PR and get it in?

Comment 2 Miro Hrončok 2023-10-30 17:44:12 UTC
PR merged.


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