From a05190aaf468ca16a008243c2b63b6c162f4a184cd08e6f8b52a5889394cd2f5 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Fri, 15 Feb 2019 09:02:42 +0000 Subject: [PATCH] Accepting request 676054 from devel:languages:python:pytest - Update to 0.2.1: * Drop "pytest-cache" dependency, not required anymore - part of py.test itself OBS-URL: https://build.opensuse.org/request/show/676054 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-isort?expand=0&rev=2 --- 0.2.1.tar.gz | 3 +++ pytest-isort-0.2.0.tar.gz | 3 --- python-pytest-isort.changes | 6 ++++++ python-pytest-isort.spec | 32 +++++++++++--------------------- 4 files changed, 20 insertions(+), 24 deletions(-) create mode 100644 0.2.1.tar.gz delete mode 100644 pytest-isort-0.2.0.tar.gz diff --git a/0.2.1.tar.gz b/0.2.1.tar.gz new file mode 100644 index 0000000..95a7146 --- /dev/null +++ b/0.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4227b647bdd0566897203353c028f16c8603705f5d8014ecd453a3518f140345 +size 5844 diff --git a/pytest-isort-0.2.0.tar.gz b/pytest-isort-0.2.0.tar.gz deleted file mode 100644 index bd02da1..0000000 --- a/pytest-isort-0.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d4d195ecfe33d81e258d251b2679b32216bad84131fb41984da22d9d0328a6fe -size 5535 diff --git a/python-pytest-isort.changes b/python-pytest-isort.changes index d7debb8..831507e 100644 --- a/python-pytest-isort.changes +++ b/python-pytest-isort.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 14 14:11:43 UTC 2019 - Tomáš Chvátal + +- Update to 0.2.1: + * Drop "pytest-cache" dependency, not required anymore - part of py.test itself + ------------------------------------------------------------------- Thu May 10 00:00:16 UTC 2018 - toddrme2178@gmail.com diff --git a/python-pytest-isort.spec b/python-pytest-isort.spec index b6969f7..8e719c9 100644 --- a/python-pytest-isort.spec +++ b/python-pytest-isort.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-isort # -# 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,34 +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-%{**}} -%bcond_with test Name: python-pytest-isort -Version: 0.2.0 +Version: 0.2.1 Release: 0 Summary: Plugin for pytest to perform isort checks License: BSD-3-Clause Group: Development/Languages/Python -Url: http://github.com/moccu/pytest-isort/ -Source: https://files.pythonhosted.org/packages/source/p/pytest-isort/pytest-isort-%{version}.tar.gz -BuildRequires: %{python_module devel} +URL: http://github.com/moccu/pytest-isort/ +Source: https://github.com/moccu/pytest-isort/archive/%{version}.tar.gz +BuildRequires: %{python_module isort >= 4.0} +BuildRequires: %{python_module pytest >= 3.0} BuildRequires: %{python_module setuptools} -BuildRequires: python-rpm-macros -%if %{with test} -BuildRequires: %{python_module isort >= 3.9.6} -BuildRequires: %{python_module pytest >= 2.6.4} -BuildRequires: %{python_module pytest-cache >= 1.0} -%endif BuildRequires: fdupes -Requires: python-isort >= 3.9.6 -Requires: python-pytest >= 2.6.4 -Requires: python-pytest-cache >= 1.0 +BuildRequires: python-rpm-macros +Requires: python-isort >= 4.0 +Requires: python-pytest >= 3.0 BuildArch: noarch - %python_subpackages %description @@ -55,13 +48,10 @@ This is a py.test plugin to check import ordering using isort. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%python_exec setup.py test -%endif +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v %files %{python_files} -%defattr(-,root,root,-) %doc CHANGELOG.rst README.rst %license LICENSE.rst %{python_sitelib}/*