[Bug 2001678] Review Request: python-annexremote - Git annex special remotes made easy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Miro Hrončok <mhroncok@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mhroncok@xxxxxxxxxx



--- Comment #1 from Miro Hrončok <mhroncok@xxxxxxxxxx> ---
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 -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux