diff --git a/pytest-relaxed-1.0.0.tar.gz b/pytest-relaxed-1.0.0.tar.gz deleted file mode 100644 index 8e48aab..0000000 --- a/pytest-relaxed-1.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1a26bc92a35fb51263f4c59f8e29e235576dee7dbe4b05c7a70f66676301a4a8 -size 23786 diff --git a/pytest-relaxed-1.1.4.tar.gz b/pytest-relaxed-1.1.4.tar.gz new file mode 100644 index 0000000..f551907 --- /dev/null +++ b/pytest-relaxed-1.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:511ac473252baa67d5451f7864516e2e8f1acedf0cef71f79d2ed916ee04e146 +size 26854 diff --git a/python-pytest-relaxed.changes b/python-pytest-relaxed.changes index 9275f03..7b80236 100644 --- a/python-pytest-relaxed.changes +++ b/python-pytest-relaxed.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Feb 14 15:30:39 UTC 2019 - Tomáš Chvátal + +- 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 diff --git a/python-pytest-relaxed.spec b/python-pytest-relaxed.spec index f779f88..e7067c0 100644 --- a/python-pytest-relaxed.spec +++ b/python-pytest-relaxed.spec @@ -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 diff --git a/python3_fix.patch b/python3_fix.patch deleted file mode 100644 index daba15a..0000000 --- a/python3_fix.patch +++ /dev/null @@ -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:: -