Bug 32881

Summary: upgrade python-pytest-shutil and switch to pyproject
Product: Mageia Reporter: Aurelian R <arusanu>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: geiger.david68210, lewyssmith
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: python-pytest-shutil-1.7.0-5.mga9.src.rpm, python-pytest-virtualenv-1.7.0-4.mga9.src.rpm CVE:
Status comment:
Attachments: patch for pytest-shutil spec
patch for pytest-virtualenv spec file

Description Aurelian R 2024-02-22 00:37:44 CET
Created attachment 14410 [details]
patch for pytest-shutil spec

It needs rebuilding and switching to pyproject. Also a patch to replace the deprecated imp module is available.

I will attache to this bug a patch for the python-pytest-virtualenv spec file as it is the only package that depends directly of pytest-shutil module which also needs a rebuild and switch to pyproject. However, this one IMO can be dropped/obsoleted even though it builds and completes some of its own tests.
Comment 1 Aurelian R 2024-02-22 00:38:33 CET
Created attachment 14411 [details]
patch for pytest-virtualenv spec file
Comment 2 Lewis Smith 2024-02-24 18:43:40 CET
(In reply to Aurelian R from comment #0)
> I will attache to this bug a patch for the python-pytest-virtualenv spec
> file as it is the only package that depends directly of pytest-shutil module
> which also needs a rebuild and switch to pyproject. However, this one IMO
> can be dropped/obsoleted even though it builds and completes some of its own
> tests.
I am unsure exactly which package you suggest should be obsoleted:
 python3-pytest-virtualenv (SRPM python-pytest-virtualenv)
or
 python3-pytest-shutil (SRPM python-pytest-shutil)

Certainly on M9:
 $ urpmq --requires python3-pytest-virtualenv | grep shutil
 python3.10dist(pytest-shutil)
i.e. python3-pytest-virtualenv requires pytest-shutil
and
 $ urpmq --whatrequires python3-pytest-shutil
 python3-pytest-virtualenv
i.e. as you say, python3-pytest-virtualenv is the only pkg which requires python3.10dist(pytest-shutil).

If the requirement by 'python3-pytest-virtualenv' for 'python3-pytest-shutil' is meaningless, so that the latter (shutil) can be obsoleted; where does that leave the former (virtualenv) ? Nothing visibly requires it:
 $ urpmq --whatrequires-recursive python3-pytest-virtualenv
 $
but it itself requires several things:
 $ urpmq --requires python3-pytest-virtualenv
python(abi)[== 3.10]
python3-path
python3-setuptools
python3.10dist(pytest)
python3.10dist(pytest-fixture-config)
python3.10dist(pytest-shutil)
python3.10dist(virtualenv)

Confusing...

CC: (none) => lewyssmith

Comment 3 Aurelian R 2024-02-24 23:41:46 CET
(In reply to Lewis Smith from comment #2)
> Confusing...

To be on point, the "python-pytest-shutil" is the package to be rebuild as the report suggests and "python-pytest-virtualenv" is the one I suggested to be obsoleted.
   
I'm sorry for my report generating such confusion, even though I'm a non-native speaker I try to express myself logically clear.
While the report is about "python-pytest-shutil", its last paragraph is entirely about "python-pytest-virtualenv" package and together with the fact that I specified that this package, i.e. "python-pytest-virtualenv", has some issues with its own tests shouldn't be unclear.
Furthermore, your own tests show that the dangling package here is "python-pytest-virtualenv". So, I'm sorry if all of this didn't convey the proper message.
Regards.
Comment 4 David GEIGER 2024-02-25 12:35:28 CET
Fixed, thanks!

Resolution: (none) => FIXED
Status: NEW => RESOLVED
CC: (none) => geiger.david68210