Accepting request 854221 from home:bnavigator:branches:devel:languages:python
- Support TW with multiple python3 flavors * gh#openSUSE/python-rpm-macros#66 * fix BuildRequires * fix %python_expand $python executable replacement OBS-URL: https://build.opensuse.org/request/show/854221 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=41
This commit is contained in:
parent
8e347acd47
commit
1247936292
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 9 10:26:01 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Support TW with multiple python3 flavors
|
||||||
|
* gh#openSUSE/python-rpm-macros#66
|
||||||
|
* fix BuildRequires
|
||||||
|
* fix %python_expand $python executable replacement
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jun 14 09:11:15 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
Sun Jun 14 09:11:15 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -32,17 +32,21 @@ BuildRequires: %{python_module purl}
|
|||||||
BuildRequires: %{python_module purl}
|
BuildRequires: %{python_module purl}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module requests >= 2.3}
|
BuildRequires: %{python_module requests >= 2.3}
|
||||||
BuildRequires: %{python_module rpm-macros}
|
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: %{python_module testrepository >= 0.0.18}
|
BuildRequires: %{python_module testrepository >= 0.0.18}
|
||||||
BuildRequires: %{python_module testtools}
|
BuildRequires: %{python_module testtools}
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
%if 0%{suse_version} >= 1550
|
||||||
|
BuildRequires: %{python_module dbm}
|
||||||
|
%else
|
||||||
|
BuildRequires: python3-dbm
|
||||||
|
%endif
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
Requires: python-requests >= 2.3
|
Requires: python-requests >= 2.3
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%ifpython3
|
%if "%python_flavor" != "python2"
|
||||||
BuildRequires: python3-dbm
|
Requires: python-dbm
|
||||||
Requires: python3-dbm
|
|
||||||
%endif
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -66,7 +70,7 @@ You should checkout the docs for more information.
|
|||||||
mv .testr.conf .testr.conf.orig
|
mv .testr.conf .testr.conf.orig
|
||||||
%{python_expand # first line can't be empty
|
%{python_expand # first line can't be empty
|
||||||
rm -rf .testrepository
|
rm -rf .testrepository
|
||||||
sed 's/python/$python/' .testr.conf.orig >| .testr.conf
|
sed 's/python /$python /' .testr.conf.orig >| .testr.conf
|
||||||
testr init
|
testr init
|
||||||
testr run --parallel
|
testr run --parallel
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user