Hello community,
here is the log from the commit of package python-pytest-flake8 for
openSUSE:Factory checked in at 2020-05-28 09:06:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-flake8 (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-flake8.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-flake8"
Thu May 28 09:06:46 2020 rev:7 rq:805993 version:1.0.6
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-flake8/python-pytest-flake8.changes
2020-05-01 11:06:19.870931184 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-flake8.new.3606/python-pytest-flake8.changes
2020-05-28 09:06:52.655619555 +0200
@@ -1,0 +2,7 @@
+Fri May 15 20:47:09 UTC 2020 - Benjamin Greiner <[email protected]>
+
+- Update to 1.0.6
+ * Fix compatibility with flake8 >= 3.8, from @marc
+ gh#tholo/pytest-flake8#68
+
+-------------------------------------------------------------------
Old:
----
pytest-flake8-1.0.5.tar.gz
New:
----
pytest-flake8-1.0.6.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-flake8.spec ++++++
--- /var/tmp/diff_new_pack.QbfQRt/_old 2020-05-28 09:06:53.907623310 +0200
+++ /var/tmp/diff_new_pack.QbfQRt/_new 2020-05-28 09:06:53.907623310 +0200
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-flake8
-Version: 1.0.5
+Version: 1.0.6
Release: 0
Summary: Plugin for pytest to check FLAKE8 requirements
License: BSD-2-Clause
++++++ pytest-flake8-1.0.5.tar.gz -> pytest-flake8-1.0.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flake8-1.0.5/CHANGELOG
new/pytest-flake8-1.0.6/CHANGELOG
--- old/pytest-flake8-1.0.5/CHANGELOG 2020-04-23 20:56:22.000000000 +0200
+++ new/pytest-flake8-1.0.6/CHANGELOG 2020-05-13 00:27:51.000000000 +0200
@@ -1,3 +1,8 @@
+1.0.6
+-----
+
+- Fix compatibility with flake8 >= 3.8, from @marc
+
1.0.5
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flake8-1.0.5/PKG-INFO
new/pytest-flake8-1.0.6/PKG-INFO
--- old/pytest-flake8-1.0.5/PKG-INFO 2020-04-23 20:56:22.000000000 +0200
+++ new/pytest-flake8-1.0.6/PKG-INFO 2020-05-13 00:27:52.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pytest-flake8
-Version: 1.0.5
+Version: 1.0.6
Summary: pytest plugin to check FLAKE8 requirements
Home-page: https://github.com/tholo/pytest-flake8
Author: Thorsten Lockert
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flake8-1.0.5/pytest_flake8.egg-info/PKG-INFO
new/pytest-flake8-1.0.6/pytest_flake8.egg-info/PKG-INFO
--- old/pytest-flake8-1.0.5/pytest_flake8.egg-info/PKG-INFO 2020-04-23
20:56:22.000000000 +0200
+++ new/pytest-flake8-1.0.6/pytest_flake8.egg-info/PKG-INFO 2020-05-13
00:27:51.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pytest-flake8
-Version: 1.0.5
+Version: 1.0.6
Summary: pytest plugin to check FLAKE8 requirements
Home-page: https://github.com/tholo/pytest-flake8
Author: Thorsten Lockert
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flake8-1.0.5/pytest_flake8.py
new/pytest-flake8-1.0.6/pytest_flake8.py
--- old/pytest-flake8-1.0.5/pytest_flake8.py 2020-04-23 20:56:22.000000000
+0200
+++ new/pytest-flake8-1.0.6/pytest_flake8.py 2020-05-13 00:27:51.000000000
+0200
@@ -4,6 +4,7 @@
import re
from flake8.main import application
+from flake8.options import config
import py
@@ -188,11 +189,23 @@
if statistics:
args += ['--statistics']
app = application.Application()
- app.parse_preliminary_options_and_args(args)
- app.make_config_finder()
- app.find_plugins()
- app.register_plugin_options()
- app.parse_configuration_and_cli(args)
+ if not hasattr(app, 'parse_preliminary_options_and_args'): # flake8 >= 3.8
+ prelim_opts, remaining_args = app.parse_preliminary_options(args)
+ config_finder = config.ConfigFileFinder(
+ app.program,
+ prelim_opts.append_config,
+ config_file=prelim_opts.config,
+ ignore_config_files=prelim_opts.isolated,
+ )
+ app.find_plugins(config_finder)
+ app.register_plugin_options()
+ app.parse_configuration_and_cli(config_finder, remaining_args)
+ else:
+ app.parse_preliminary_options_and_args(args)
+ app.make_config_finder()
+ app.find_plugins()
+ app.register_plugin_options()
+ app.parse_configuration_and_cli(args)
if flake8ignore:
app.options.ignore = flake8ignore
app.make_formatter() # fix this
@@ -204,7 +217,5 @@
app.run_checks([str(path)])
app.formatter.start()
app.report_errors()
- # app.report_statistics()
- # app.report_benchmarks()
app.formatter.stop()
return app.result_count
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flake8-1.0.5/setup.py
new/pytest-flake8-1.0.6/setup.py
--- old/pytest-flake8-1.0.5/setup.py 2020-04-23 20:56:22.000000000 +0200
+++ new/pytest-flake8-1.0.6/setup.py 2020-05-13 00:27:51.000000000 +0200
@@ -6,7 +6,7 @@
setup(
name='pytest-flake8',
- version='1.0.5',
+ version='1.0.6',
description='pytest plugin to check FLAKE8 requirements',
long_description=open("README.rst").read(),
classifiers=[