Bug 2059948

Summary: python-brian2 fails to build with pytest 7 due to leftover pytest cache in a different location
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-brian2Assignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: neuro-sig, sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-brian2-2.5.0.3-2.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-04 11:39:06 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: 2050629    

Description Miro Hrončok 2022-03-02 11:48:40 UTC
In this copr repo, I have updated pytest to 7.0.1:

https://copr.fedorainfracloud.org/coprs/churchyard/pytest-7/

Based on this PR:

https://src.fedoraproject.org/rpms/pytest/pull-request/25

I'd like to update pytest to 7 in Fedora 37, but python-brian2 2.5.0.3-1 fails to build.

https://copr.fedorainfracloud.org/coprs/churchyard/pytest-7/package/python-brian2/


error: Installed (but unpackaged) file(s) found:
   /usr/lib64/python3.10/site-packages/brian2/tests/.pytest_cache/.gitignore
   /usr/lib64/python3.10/site-packages/brian2/tests/.pytest_cache/CACHEDIR.TAG
   /usr/lib64/python3.10/site-packages/brian2/tests/.pytest_cache/README.md
   /usr/lib64/python3.10/site-packages/brian2/tests/.pytest_cache/v/cache/nodeids
   /usr/lib64/python3.10/site-packages/brian2/tests/.pytest_cache/v/cache/stepwise
    Installed (but unpackaged) file(s) found:
   /usr/lib64/python3.10/site-packages/brian2/tests/.pytest_cache/.gitignore
   /usr/lib64/python3.10/site-packages/brian2/tests/.pytest_cache/CACHEDIR.TAG
   /usr/lib64/python3.10/site-packages/brian2/tests/.pytest_cache/README.md
   /usr/lib64/python3.10/site-packages/brian2/tests/.pytest_cache/v/cache/nodeids
   /usr/lib64/python3.10/site-packages/brian2/tests/.pytest_cache/v/cache/stepwise

This is a packaging problem, there is:


    # remove pytest_cache
    rm -rf $RPM_BUILD_ROOT/%{python3_sitearch}/brian2/.pytest_cache/


But now the directory is located elsewhere.

Could you please update the rm to also remove the new one?

Thanks!

Comment 1 Ankur Sinha (FranciscoD) 2022-03-04 11:39:06 UTC
Done. Should be fixed in python-brian2-2.5.0.3-2.fc37

Comment 2 Miro Hrončok 2022-03-04 11:54:46 UTC
Indeed it is fixed, thanks.