Hello community, here is the log from the commit of package python-mccabe for openSUSE:Factory checked in at 2019-07-08 15:02:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mccabe (Old) and /work/SRC/openSUSE:Factory/.python-mccabe.new.4615 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mccabe" Mon Jul 8 15:02:02 2019 rev:8 rq:713189 version:0.6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mccabe/python-mccabe.changes 2017-04-19 17:56:34.458798710 +0200 +++ /work/SRC/openSUSE:Factory/.python-mccabe.new.4615/python-mccabe.changes 2019-07-08 15:02:03.482628273 +0200 @@ -1,0 +2,5 @@ +Wed Jul 3 09:10:58 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Fix the test run with new pytest + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mccabe.spec ++++++ --- /var/tmp/diff_new_pack.SleJH0/_old 2019-07-08 15:02:04.362629604 +0200 +++ /var/tmp/diff_new_pack.SleJH0/_new 2019-07-08 15:02:04.370629616 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-mccabe # -# 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,7 +12,7 @@ # 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/ # @@ -23,12 +23,12 @@ Summary: McCabe checker, plugin for flake8 License: MIT Group: Development/Languages/Python -Url: https://github.com/flintwork/mccabe -Source: https://pypi.io/packages/source/m/mccabe/mccabe-%{version}.tar.gz -BuildRequires: %{python_module pytest-runner} +URL: https://github.com/flintwork/mccabe +Source: https://files.pythonhosted.org/packages/source/m/mccabe/mccabe-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -38,19 +38,22 @@ %prep %setup -q -n mccabe-%{version} +# do not require pytest-runner for setup +sed -i 's:pytest-runner::' setup.py %build %python_build %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec %{_bindir}/py.test +%pytest %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.rst +%license LICENSE +%doc README.rst %{python_sitelib}/* %changelog