From 8086eb5337ca4b9d181e6c32e467cb0519074d5e9b06f75096c8bad60a3ca483 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 10 May 2018 15:51:28 +0000 Subject: [PATCH] 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 --- python-Werkzeug.changes | 6 ++++++ python-Werkzeug.spec | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/python-Werkzeug.changes b/python-Werkzeug.changes index bb738d3..4006bcf 100644 --- a/python-Werkzeug.changes +++ b/python-Werkzeug.changes @@ -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 diff --git a/python-Werkzeug.spec b/python-Werkzeug.spec index 013642e..273da9c 100644 --- a/python-Werkzeug.spec +++ b/python-Werkzeug.spec @@ -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