Accepting request 674961 from devel:languages:python:pytest

- Cleanup a bit
- Remove test condition, there are no tests even in upstream git
  repository

OBS-URL: https://build.opensuse.org/request/show/674961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-env?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2019-02-15 09:02:18 +00:00 committed by Git OBS Bridge
parent 1f1808b18a
commit 9c3e90b576
2 changed files with 13 additions and 19 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 14 12:37:20 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Cleanup a bit
- Remove test condition, there are no tests even in upstream git
repository
-------------------------------------------------------------------
Wed May 9 23:25:20 UTC 2018 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pytest-env
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,32 +12,25 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-pytest-env
Version: 0.6.2
# For the license file
%define tag afb13a0e908f649b69273f299262ac12f1b71113
Release: 0
License: MIT
Summary: Pytest plugin to add environment variables
Url: https://github.com/MobileDynasty/pytest-env
License: MIT
Group: Development/Languages/Python
URL: https://github.com/MobileDynasty/pytest-env
Source: https://files.pythonhosted.org/packages/source/p/pytest-env/pytest-env-%{version}.tar.gz
Source10: https://raw.githubusercontent.com/MobileDynasty/pytest-env/%{tag}/LICENSE
BuildRequires: %{python_module devel}
Source10: https://raw.githubusercontent.com/MobileDynasty/pytest-env/master/LICENSE
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module pytest >= 2.6.0}
%endif
Requires: python-pytest >= 2.6.0
BuildArch: noarch
%python_subpackages
%description
@ -54,13 +47,7 @@ cp %{SOURCE10} .
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%license LICENSE
%{python_sitelib}/*