15
0
forked from pool/python-nox

Accepting request 808044 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/808044
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nox?expand=0&rev=4
This commit is contained in:
2020-05-28 07:11:40 +00:00
committed by Git OBS Bridge
2 changed files with 19 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 21 10:56:38 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Mon Mar 30 10:05:56 UTC 2020 - pgajdos@suse.com

View File

@@ -35,6 +35,8 @@ Requires: python-colorlog >= 2.6.1
Requires: python-py >= 1.4.0
Requires: python-setuptools
Requires: python-virtualenv >= 14.0.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
Suggests: python-Jinja2
Suggests: python-tox
BuildArch: noarch
@@ -64,16 +66,26 @@ sed -Ei 's/,? ?<=?[0-9][0-9.]*//' setup.py
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/tox-to-nox
%python_clone -a %{buildroot}%{_bindir}/nox
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative tox-to-nox
%python_install_alternative nox
%postun
%python_uninstall_alternative tox-to-nox
%python_uninstall_alternative nox
%files %{python_files}
%doc README.rst
%license LICENSE
%python3_only %{_bindir}/nox
%python3_only %{_bindir}/tox-to-nox
%python_alternative %{_bindir}/nox
%python_alternative %{_bindir}/tox-to-nox
%{python_sitelib}/*
%changelog