Accepting request 606251 from home:TheBlackCat:branches:devel:languages:python

- Make sure ssl is available
- Avoid problem with bytecode being overwritten in tests

OBS-URL: https://build.opensuse.org/request/show/606251
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Werkzeug?expand=0&rev=34
This commit is contained in:
Todd R 2018-05-10 15:51:28 +00:00 committed by Git OBS Bridge
parent 2d4d4d84d4
commit 8086eb5337
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 10 15:44:58 UTC 2018 - toddrme2178@gmail.com
- Make sure ssl is available
- Avoid problem with bytecode being overwritten in tests
-------------------------------------------------------------------
Thu Mar 8 10:15:27 UTC 2018 - aplanas@suse.com

View File

@ -33,12 +33,14 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRequires: python2
BuildArch: noarch
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
Recommends: python-termcolor
Recommends: python-watchdog
%endif
%ifpython2
Requires: python2
Provides: %{oldpython}-werkzeug = %{version}
Obsoletes: %{oldpython}-werkzeug < %{version}
%endif
@ -72,9 +74,11 @@ sed -i "1d" examples/manage-{i18nurls,simplewiki,shorty,couchy,cupoftee,webpylik
%python_install
%check
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}}
export LANG=en_US.UTF-8
%python_exec -m pytest
%{python_expand export LANG=en_US.UTF-8
export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=%{buildroot}%{$python_sitelib}
$python -m pytest
}
%files %{python_files}
%license LICENSE