14
0

Accepting request 853549 from home:bnavigator:branches:devel:languages:python

- Skip testing with optional jupyter_ipython. Jupyter is only
  available for Python >= 3.7
  gh#openSUSE/python-rpm-macros#66

OBS-URL: https://build.opensuse.org/request/show/853549
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dotenv?expand=0&rev=20
This commit is contained in:
2020-12-07 12:32:39 +00:00
committed by Git OBS Bridge
parent 45a5583167
commit 61bcb2047e
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Dec 7 00:42:19 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Skip testing with optional jupyter_ipython. Jupyter is only
available for Python >= 3.7
gh#openSUSE/python-rpm-macros#66
-------------------------------------------------------------------
Wed Dec 2 17:16:41 UTC 2020 - Michael Ströder <michael@stroeder.com>

View File

@@ -25,7 +25,6 @@ License: BSD-3-Clause
URL: https://github.com/theskumar/python-dotenv
Source: https://github.com/theskumar/python-dotenv/archive/v%{version}.tar.gz#/python-dotenv-%{version}.tar.gz
BuildRequires: %{python_module click >= 5.0}
BuildRequires: %{python_module jupyter_ipython}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest >= 3.0.5}
BuildRequires: %{python_module setuptools}
@@ -65,7 +64,8 @@ mv %{buildroot}%{_bindir}/dotenv %{buildroot}%{_bindir}/dotenv.orig
export PATH=%{buildroot}%{_bindir}:$PATH
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
cp %{buildroot}%{_bindir}/dotenv-%{$python_bin_suffix} %{buildroot}%{_bindir}/dotenv
$python -m pytest -v
# ipython is optional and only available for python >= 3.7 in Tumbleweed
$python -m pytest -v -k "not ipython"
}
mv %{buildroot}%{_bindir}/dotenv.orig %{buildroot}%{_bindir}/dotenv