forked from pool/python-nox
Accepting request 807987 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807987 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nox?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
fe9bb0eb85
commit
c65a49f092
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user