From f5bd7652c31e367e3b4cfea25e2f73ac240f2db4b8682cdb7f8a0b7f50e12943 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 16 Nov 2017 13:03:00 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + pytest-relaxed-1.0.0.tar.gz | 3 ++ python-pytest-relaxed.changes | 5 +++ python-pytest-relaxed.spec | 59 +++++++++++++++++++++++++++++++++++ python3_fix.patch | 17 ++++++++++ 6 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-relaxed-1.0.0.tar.gz create mode 100644 python-pytest-relaxed.changes create mode 100644 python-pytest-relaxed.spec create mode 100644 python3_fix.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pytest-relaxed-1.0.0.tar.gz b/pytest-relaxed-1.0.0.tar.gz new file mode 100644 index 0000000..8e48aab --- /dev/null +++ b/pytest-relaxed-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a26bc92a35fb51263f4c59f8e29e235576dee7dbe4b05c7a70f66676301a4a8 +size 23786 diff --git a/python-pytest-relaxed.changes b/python-pytest-relaxed.changes new file mode 100644 index 0000000..9275f03 --- /dev/null +++ b/python-pytest-relaxed.changes @@ -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 diff --git a/python-pytest-relaxed.spec b/python-pytest-relaxed.spec new file mode 100644 index 0000000..f779f88 --- /dev/null +++ b/python-pytest-relaxed.spec @@ -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 diff --git a/python3_fix.patch b/python3_fix.patch new file mode 100644 index 0000000..daba15a --- /dev/null +++ b/python3_fix.patch @@ -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:: +