Hello community,
here is the log from the commit of package python-flake8-quotes for
openSUSE:Factory checked in at 2020-04-16 23:04:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flake8-quotes (Old)
and /work/SRC/openSUSE:Factory/.python-flake8-quotes.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flake8-quotes"
Thu Apr 16 23:04:53 2020 rev:5 rq:794557 version:3.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-flake8-quotes/python-flake8-quotes.changes
2019-08-05 10:42:23.731291838 +0200
+++
/work/SRC/openSUSE:Factory/.python-flake8-quotes.new.2738/python-flake8-quotes.changes
2020-04-16 23:04:59.747767844 +0200
@@ -1,0 +2,6 @@
+Thu Apr 16 10:36:56 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Update to 3.0.0:
+ * no upstream changelog
+
+-------------------------------------------------------------------
Old:
----
flake8-quotes-2.1.0.tar.gz
New:
----
flake8-quotes-3.0.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-flake8-quotes.spec ++++++
--- /var/tmp/diff_new_pack.RFViCZ/_old 2020-04-16 23:05:01.035768991 +0200
+++ /var/tmp/diff_new_pack.RFViCZ/_new 2020-04-16 23:05:01.039768995 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-flake8-quotes
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,24 +17,21 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without test
Name: python-flake8-quotes
-Version: 2.1.0
+Version: 3.0.0
Release: 0
Summary: Flake8 lint for quotes
License: MIT
Group: Development/Languages/Python
URL: https://github.com/zheller/flake8-quotes/
Source:
https://files.pythonhosted.org/packages/source/f/flake8-quotes/flake8-quotes-%{version}.tar.gz
+BuildRequires: %{python_module flake8 >= 3.3.0}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-flake8 >= 3.3.0
BuildArch: noarch
-%if %{with test}
-BuildRequires: %{python_module flake8 >= 3.3.0}
-BuildRequires: %{python_module pytest}
-%endif
%python_subpackages
%description
@@ -50,11 +47,9 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%if %{with test}
%check
# Tests require access to stdin
%pytest -s -k "not test_stdin" test
-%endif
%files %{python_files}
%doc README.rst
++++++ flake8-quotes-2.1.0.tar.gz -> flake8-quotes-3.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-quotes-2.1.0/PKG-INFO
new/flake8-quotes-3.0.0/PKG-INFO
--- old/flake8-quotes-2.1.0/PKG-INFO 2019-08-01 22:37:29.000000000 +0200
+++ new/flake8-quotes-3.0.0/PKG-INFO 2020-03-25 21:43:48.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: flake8-quotes
-Version: 2.1.0
+Version: 3.0.0
Summary: Flake8 lint for quotes.
Home-page: http://github.com/zheller/flake8-quotes/
Author: Zachary Wright Heller
@@ -82,6 +82,7 @@
.. code:: ini
+ [flake8]
inline-quotes = "
# We also support "double" and "single"
# inline-quotes = double
@@ -123,5 +124,7 @@
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-quotes-2.1.0/README.rst
new/flake8-quotes-3.0.0/README.rst
--- old/flake8-quotes-2.1.0/README.rst 2019-08-01 22:36:57.000000000 +0200
+++ new/flake8-quotes-3.0.0/README.rst 2019-11-04 05:56:06.000000000 +0100
@@ -74,6 +74,7 @@
.. code:: ini
+ [flake8]
inline-quotes = "
# We also support "double" and "single"
# inline-quotes = double
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-quotes-2.1.0/flake8_quotes/__about__.py
new/flake8-quotes-3.0.0/flake8_quotes/__about__.py
--- old/flake8-quotes-2.1.0/flake8_quotes/__about__.py 2019-08-01
22:37:19.000000000 +0200
+++ new/flake8-quotes-3.0.0/flake8_quotes/__about__.py 2020-03-25
21:43:39.000000000 +0100
@@ -1 +1 @@
-__version__ = '2.1.0'
+__version__ = '3.0.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-quotes-2.1.0/flake8_quotes/__init__.py
new/flake8-quotes-3.0.0/flake8_quotes/__init__.py
--- old/flake8-quotes-2.1.0/flake8_quotes/__init__.py 2019-04-24
09:48:43.000000000 +0200
+++ new/flake8-quotes-3.0.0/flake8_quotes/__init__.py 2020-03-25
21:43:28.000000000 +0100
@@ -71,8 +71,9 @@
DOCSTRING_QUOTES['\'\'\''] = DOCSTRING_QUOTES['\'']
DOCSTRING_QUOTES['"""'] = DOCSTRING_QUOTES['"']
- def __init__(self, tree, filename='(none)'):
+ def __init__(self, tree, lines=None, filename='(none)'):
self.filename = filename
+ self.lines = lines
@staticmethod
def _register_opt(parser, *args, **kwargs):
@@ -161,7 +162,10 @@
if self.filename in ('stdin', '-', None):
return stdin_get_value().splitlines(True)
else:
- return readlines(self.filename)
+ if self.lines:
+ return self.lines
+ else:
+ return readlines(self.filename)
def run(self):
file_contents = self.get_file_contents()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-quotes-2.1.0/flake8_quotes.egg-info/PKG-INFO
new/flake8-quotes-3.0.0/flake8_quotes.egg-info/PKG-INFO
--- old/flake8-quotes-2.1.0/flake8_quotes.egg-info/PKG-INFO 2019-08-01
22:37:29.000000000 +0200
+++ new/flake8-quotes-3.0.0/flake8_quotes.egg-info/PKG-INFO 2020-03-25
21:43:47.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: flake8-quotes
-Version: 2.1.0
+Version: 3.0.0
Summary: Flake8 lint for quotes.
Home-page: http://github.com/zheller/flake8-quotes/
Author: Zachary Wright Heller
@@ -82,6 +82,7 @@
.. code:: ini
+ [flake8]
inline-quotes = "
# We also support "double" and "single"
# inline-quotes = double
@@ -123,5 +124,7 @@
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-quotes-2.1.0/setup.py
new/flake8-quotes-3.0.0/setup.py
--- old/flake8-quotes-2.1.0/setup.py 2019-04-04 03:29:37.000000000 +0200
+++ new/flake8-quotes-3.0.0/setup.py 2020-03-25 20:59:00.000000000 +0100
@@ -58,6 +58,8 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance',
]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-quotes-2.1.0/test/test_checks.py
new/flake8-quotes-3.0.0/test/test_checks.py
--- old/flake8-quotes-2.1.0/test/test_checks.py 2019-04-17 01:41:34.000000000
+0200
+++ new/flake8-quotes-3.0.0/test/test_checks.py 2020-03-25 21:43:28.000000000
+0100
@@ -40,6 +40,14 @@
{'col': 4, 'line': 1, 'message': 'Q001 Remove bad quotes from
multiline string'},
])
+ def test_multiline_string_using_lines(self):
+ with open(get_absolute_path('data/doubles_multiline_string.py')) as f:
+ lines = f.readlines()
+ doubles_checker = QuoteChecker(None, lines=lines)
+
self.assertEqual(list(doubles_checker.get_quotes_errors(doubles_checker.get_file_contents())),
[
+ {'col': 4, 'line': 1, 'message': 'Q001 Remove bad quotes from
multiline string'},
+ ])
+
def test_wrapped(self):
doubles_checker = QuoteChecker(None,
filename=get_absolute_path('data/doubles_wrapped.py'))
self.assertEqual(list(doubles_checker.get_quotes_errors(doubles_checker.get_file_contents())),
[])