Accepting request 542123 from devel:languages:python
Pytest-relaxed for test discovery/organization OBS-URL: https://build.opensuse.org/request/show/542123 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-relaxed?expand=0&rev=1
This commit is contained in:
commit
f5bd7652c3
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
pytest-relaxed-1.0.0.tar.gz
Normal file
3
pytest-relaxed-1.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1a26bc92a35fb51263f4c59f8e29e235576dee7dbe4b05c7a70f66676301a4a8
|
||||||
|
size 23786
|
5
python-pytest-relaxed.changes
Normal file
5
python-pytest-relaxed.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 15 19:16:52 UTC 2017 - mimi.vx@gmail.com
|
||||||
|
|
||||||
|
- initial commit
|
||||||
|
* added python3_fix.patch - nonascii characters in README
|
59
python-pytest-relaxed.spec
Normal file
59
python-pytest-relaxed.spec
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-pytest-pythonpath
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017 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
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
Name: python-pytest-relaxed
|
||||||
|
Version: 1.0.0
|
||||||
|
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 setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-decorator
|
||||||
|
Requires: python-six
|
||||||
|
Requires: python-pytest
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
Relaxed test discovery/organization plugin for pytest from python-paramiko author
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n pytest-relaxed-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.rst
|
||||||
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
%changelog
|
17
python3_fix.patch
Normal file
17
python3_fix.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
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