Bug 2059948 - python-brian2 fails to build with pytest 7 due to leftover pytest cache in a different location
Summary: python-brian2 fails to build with pytest 7 due to leftover pytest cache in a ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-brian2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTEST7
TreeView+ depends on / blocked
 
Reported: 2022-03-02 11:48 UTC by Miro Hrončok
Modified: 2022-03-04 11:54 UTC (History)
2 users (show)

Fixed In Version: python-brian2-2.5.0.3-2.fc37
Clone Of:
Environment:
Last Closed: 2022-03-04 11:39:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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