#1 Switch from tox to %tox and current-env plugin
Merged a year ago by ankursinha. Opened 2 years ago by lbalhar.
rpms/ lbalhar/python-pyunicorn rawhide  into  rawhide

file modified
+3 -1
@@ -43,6 +43,8 @@ 

  

  BuildRequires:  python3-devel

  BuildRequires:  python3dist(setuptools)

+ # Fox %%tox macro

+ BuildRequires:  python3-tox-current-env

  

  %if %{with doc_pdf}

  BuildRequires:  make
@@ -113,7 +115,7 @@ 

  

  %check

  %if %{with tests}

- tox -e units

+ %tox -e units

  %endif

  

  %files -n python3-%{pypi_name}

%tox macro is designed to use tox configuration to run tests and we have a special plugin providing --current-env cli option which runs tests in the build environment instead creating anything new just for tests. This change fixed the build with tox 4 I'm working on now. I had to add a new dependency because this package doesn't use pyproject macros so the tox plugin is not installed automatically.

thanks @lbalhar , looks good. Merging.

Is there any problem?

Sorry, either I forgot to hit the button, or the button didn't do its thing. Trying again.

Pull-Request has been merged by ankursinha

a year ago
Metadata