https://bugzilla.redhat.com/show_bug.cgi?id=2001678

Miro Hrončok <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]



--- Comment #1 from Miro Hrončok <[email protected]> ---
Suggestions:

%if %{with tests}
%pyproject_buildrequires -x test -r
%else
%pyproject_buildrequires -r
%endif

This can be shortened as:

%pyproject_buildrequires -r %{?with_tests:-x test}

------------------------------------------

This makes the tests actually work with pytest, but I got 2 failures (I get the
same with nose):

# Replace nose with pytest
sed -i "s/'nose'/'pytest'/" setup.py
sed -i 's/    def Test/    def test_/' tests/test_*.py

------------------------------------------




%if %{with tests}
export
PYTHONPATH="%{buildroot}/%{python3_sitearch}:%{buildroot}/%{python3_sitelib}:%{pypi_name}"
%{pytest}
%endif


The PYTHONPATH export should not be needed, %pytest already does that.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to