Accepting request 687591 from devel:languages:python:pytest
- Update to 1.1.4: * Various tiny fixes in formating/metadata/etc. - Drop patch python3_fix.patch OBS-URL: https://build.opensuse.org/request/show/687591 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-relaxed?expand=0&rev=2
This commit is contained in:
parent
f5bd7652c3
commit
91c1c69494
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1a26bc92a35fb51263f4c59f8e29e235576dee7dbe4b05c7a70f66676301a4a8
|
||||
size 23786
|
3
pytest-relaxed-1.1.4.tar.gz
Normal file
3
pytest-relaxed-1.1.4.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:511ac473252baa67d5451f7864516e2e8f1acedf0cef71f79d2ed916ee04e146
|
||||
size 26854
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 14 15:30:39 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 1.1.4:
|
||||
* Various tiny fixes in formating/metadata/etc.
|
||||
- Drop patch python3_fix.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 15 19:16:52 UTC 2017 - mimi.vx@gmail.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-pythonpath
|
||||
# spec file for package python-pytest-relaxed
|
||||
#
|
||||
# Copyright (c) 2017 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,26 +12,27 @@
|
||||
# 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-%{**}}
|
||||
Name: python-pytest-relaxed
|
||||
Version: 1.0.0
|
||||
Version: 1.1.4
|
||||
Release: 0
|
||||
Summary: Relaxed test discovery/organization for pytest
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/bitprophet/pytest-relaxed
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest_relaxed/pytest-relaxed-%{version}.tar.gz
|
||||
Patch0: python3_fix.patch
|
||||
BuildRequires: %{python_module decorator >= 4}
|
||||
BuildRequires: %{python_module pytest >= 3}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-decorator
|
||||
Requires: python-decorator >= 4
|
||||
Requires: python-pytest >= 3
|
||||
Requires: python-six
|
||||
Requires: python-pytest
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@ -40,16 +41,23 @@ Relaxed test discovery/organization plugin for pytest from python-paramiko autho
|
||||
|
||||
%prep
|
||||
%setup -q -n pytest-relaxed-%{version}
|
||||
%patch0 -p1
|
||||
# do not hardcode deps
|
||||
sed -i setup.py \
|
||||
-e 's:pytest>=3,<3.3:pytest>=3:g' \
|
||||
-e 's:decorator>=4,<5:decorator>=4:g'
|
||||
|
||||
%build
|
||||
export LANG=en_US.UTF-8
|
||||
%python_build
|
||||
|
||||
%install
|
||||
export LANG=en_US.UTF-8
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
|
||||
%check
|
||||
# https://github.com/bitprophet/pytest-relaxed/issues/2
|
||||
#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
@ -1,17 +0,0 @@
|
||||
Index: pytest-relaxed-1.0.0/README.rst
|
||||
===================================================================
|
||||
--- pytest-relaxed-1.0.0.orig/README.rst
|
||||
+++ pytest-relaxed-1.0.0/README.rst
|
||||
@@ -30,9 +30,9 @@ Relaxed discovery
|
||||
The "it's a test by default unless underscored" approach works for files::
|
||||
|
||||
tests
|
||||
- ├── _util.py
|
||||
- ├── one_module.py
|
||||
- └── another_module.py
|
||||
+ - _util.py
|
||||
+ - one_module.py
|
||||
+ - another_module.py
|
||||
|
||||
It's applied to module members::
|
||||
|
Loading…
Reference in New Issue
Block a user