Hello community,
here is the log from the commit of package python-pytest-flakes for
openSUSE:Factory checked in at 2020-08-14 10:04:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-flakes (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-flakes.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-flakes"
Fri Aug 14 10:04:44 2020 rev:4 rq:826313 version:4.0.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-flakes/python-pytest-flakes.changes
2019-12-07 15:08:17.071856203 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-flakes.new.3399/python-pytest-flakes.changes
2020-08-14 10:04:57.301336292 +0200
@@ -1,0 +2,15 @@
+Thu Aug 13 08:50:18 UTC 2020 - Benjamin Greiner <[email protected]>
+
+- Update to Version 4.0.1
+ * Maintenance of pytest-flakes has moved from fschulze to
+ asmeurer. The repo for pytest-flakes is now at
+ https://github.com/asmeurer/pytest-flakes/
+ * Fix test failures. [asmeurer]
+ * Fix deprecation warnings from pytest. [asmeurer]
+ * Fix invalid escape sequences. [akeeman]
+- drop patches for fixed test
+ * remove-bad-test.patch
+ * replace-pytest-pep8-with-pytest-codestyle.patch
+- no pytest-codestyle needed for packaging
+
+-------------------------------------------------------------------
Old:
----
pytest-flakes-4.0.0.tar.gz
remove-bad-test.patch
replace-pytest-pep8-with-pytest-codestyle.patch
New:
----
pytest-flakes-4.0.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-flakes.spec ++++++
--- /var/tmp/diff_new_pack.C9qWIN/_old 2020-08-14 10:04:58.737337020 +0200
+++ /var/tmp/diff_new_pack.C9qWIN/_new 2020-08-14 10:04:58.741337022 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-flakes
#
-# Copyright (c) 2019 SUSE LLC
+# 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
@@ -18,21 +18,18 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-flakes
-Version: 4.0.0
+Version: 4.0.1
Release: 0
Summary: Pytest plugin to check source code with pyflakes
License: MIT
Group: Development/Languages/Python
-URL: https://github.com/fschulze/pytest-flakes
+URL: https://github.com/asmeurer/pytest-flakes
Source:
https://files.pythonhosted.org/packages/source/p/pytest-flakes/pytest-flakes-%{version}.tar.gz
-Patch0: remove-bad-test.patch
-Patch1: replace-pytest-pep8-with-pytest-codestyle.patch
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# Test requirements
BuildRequires: %{python_module pyflakes}
BuildRequires: %{python_module pytest >= 2.8.0}
-BuildRequires: %{python_module pytest-codestyle}
# End of test requirements
BuildRequires: fdupes
Requires: python-pyflakes
@@ -46,9 +43,6 @@
%prep
%setup -q -n pytest-flakes-%{version}
-%patch0 -p1
-%patch1 -p1
-rm tox.ini
%build
%python_build
@@ -58,11 +52,13 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%pytest
+%pytest test_flakes.py
%files %{python_files}
%doc README.rst
%license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/pytest_flakes.py*
+%pycache_only %{python_sitelib}/__pycache__/pytest_flakes.*
+%{python_sitelib}/pytest_flakes-%{version}-py*.egg-info
%changelog
++++++ pytest-flakes-4.0.0.tar.gz -> pytest-flakes-4.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flakes-4.0.0/.coveragerc
new/pytest-flakes-4.0.1/.coveragerc
--- old/pytest-flakes-4.0.0/.coveragerc 2013-10-11 21:21:57.000000000 +0200
+++ new/pytest-flakes-4.0.1/.coveragerc 1970-01-01 01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-[run]
-source = .
-omit =
- .tox/*
- setup.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flakes-4.0.0/.travis.yml
new/pytest-flakes-4.0.1/.travis.yml
--- old/pytest-flakes-4.0.0/.travis.yml 2018-05-16 11:23:27.000000000 +0200
+++ new/pytest-flakes-4.0.1/.travis.yml 1970-01-01 01:00:00.000000000 +0100
@@ -1,16 +0,0 @@
-language: python
-sudo: false
-python:
- - 2.7
- - 3.4
- - 3.5
- - 3.6
- - nightly
- - pypy
- - pypy3
-
-install:
- - travis_retry pip install tox-travis
-
-script:
- - travis_retry tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flakes-4.0.0/PKG-INFO
new/pytest-flakes-4.0.1/PKG-INFO
--- old/pytest-flakes-4.0.0/PKG-INFO 2018-08-01 06:23:06.000000000 +0200
+++ new/pytest-flakes-4.0.1/PKG-INFO 2020-07-28 23:52:00.000000000 +0200
@@ -1,10 +1,10 @@
Metadata-Version: 1.1
Name: pytest-flakes
-Version: 4.0.0
+Version: 4.0.1
Summary: pytest plugin to check source code with pyflakes
-Home-page: https://github.com/fschulze/pytest-flakes
+Home-page: https://github.com/asmeurer/pytest-flakes
Author: Florian Schulze, Holger Krekel and Ronny Pfannschmidt
-Author-email: [email protected]
+Author-email: UNKNOWN
License: MIT license
Description: pytest-flakes
=============
@@ -41,7 +41,7 @@
Running it with pytest-flakes installed shows two issues::
- $ py.test -q --flakes
+ $ py.test -q --flakes
F
================================= FAILURES
=================================
______________________________ pyflakes-check
______________________________
@@ -76,10 +76,10 @@
1 failed in 0.00 seconds
But of course we still would want to delete the ``import os`` line to
- have a clean pass.
+ have a clean pass.
If you have some files where you want to specifically ignore
- some errors or warnings you can start a flakes-ignore line with
+ some errors or warnings you can start a flakes-ignore line with
a glob-pattern and a space-separated list of codes::
# content of setup.cfg
@@ -88,7 +88,7 @@
*.py UnusedImport
doc/conf.py ALL
-
+
Ignoring certain lines in files
-------------------------------
@@ -118,7 +118,7 @@
Notes
-----
- The repository of this plugin is at
https://github.com/fschulze/pytest-flakes
+ The repository of this plugin is at
https://github.com/asmeurer/pytest-flakes
For more info on py.test see http://pytest.org
@@ -129,12 +129,27 @@
Changes
=======
+ 4.0.1 - 2020-07-28
+ ------------------
+
+ - Maintenance of pytest-flakes has moved from fschulze to asmeurer.
The repo
+ for pytest-flakes is now at
https://github.com/asmeurer/pytest-flakes/
+
+ - Fix test failures.
+ [asmeurer]
+
+ - Fix deprecation warnings from pytest.
+ [asmeurer]
+
+ - Fix invalid escape sequences.
+ [akeeman]
+
4.0.0 - 2018-08-01
------------------
- Require pytest >= 2.8.0 and remove pytest-cache requirement.
Cache is included in pytest since that version.
- [smarlowucf]
+ [smarlowucf (Sean Marlow)]
3.0.2 - 2018-05-16
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flakes-4.0.0/README.rst
new/pytest-flakes-4.0.1/README.rst
--- old/pytest-flakes-4.0.0/README.rst 2018-08-01 06:21:54.000000000 +0200
+++ new/pytest-flakes-4.0.1/README.rst 2020-07-28 23:50:26.000000000 +0200
@@ -33,7 +33,7 @@
Running it with pytest-flakes installed shows two issues::
- $ py.test -q --flakes
+ $ py.test -q --flakes
F
================================= FAILURES
=================================
______________________________ pyflakes-check
______________________________
@@ -68,10 +68,10 @@
1 failed in 0.00 seconds
But of course we still would want to delete the ``import os`` line to
-have a clean pass.
+have a clean pass.
If you have some files where you want to specifically ignore
-some errors or warnings you can start a flakes-ignore line with
+some errors or warnings you can start a flakes-ignore line with
a glob-pattern and a space-separated list of codes::
# content of setup.cfg
@@ -80,7 +80,7 @@
*.py UnusedImport
doc/conf.py ALL
-
+
Ignoring certain lines in files
-------------------------------
@@ -110,7 +110,7 @@
Notes
-----
-The repository of this plugin is at https://github.com/fschulze/pytest-flakes
+The repository of this plugin is at https://github.com/asmeurer/pytest-flakes
For more info on py.test see http://pytest.org
@@ -121,12 +121,27 @@
Changes
=======
+4.0.1 - 2020-07-28
+------------------
+
+- Maintenance of pytest-flakes has moved from fschulze to asmeurer. The repo
+ for pytest-flakes is now at https://github.com/asmeurer/pytest-flakes/
+
+- Fix test failures.
+ [asmeurer]
+
+- Fix deprecation warnings from pytest.
+ [asmeurer]
+
+- Fix invalid escape sequences.
+ [akeeman]
+
4.0.0 - 2018-08-01
------------------
- Require pytest >= 2.8.0 and remove pytest-cache requirement.
Cache is included in pytest since that version.
- [smarlowucf]
+ [smarlowucf (Sean Marlow)]
3.0.2 - 2018-05-16
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flakes-4.0.0/pytest_flakes.egg-info/PKG-INFO
new/pytest-flakes-4.0.1/pytest_flakes.egg-info/PKG-INFO
--- old/pytest-flakes-4.0.0/pytest_flakes.egg-info/PKG-INFO 2018-08-01
06:23:06.000000000 +0200
+++ new/pytest-flakes-4.0.1/pytest_flakes.egg-info/PKG-INFO 2020-07-28
23:51:59.000000000 +0200
@@ -1,10 +1,10 @@
Metadata-Version: 1.1
Name: pytest-flakes
-Version: 4.0.0
+Version: 4.0.1
Summary: pytest plugin to check source code with pyflakes
-Home-page: https://github.com/fschulze/pytest-flakes
+Home-page: https://github.com/asmeurer/pytest-flakes
Author: Florian Schulze, Holger Krekel and Ronny Pfannschmidt
-Author-email: [email protected]
+Author-email: UNKNOWN
License: MIT license
Description: pytest-flakes
=============
@@ -41,7 +41,7 @@
Running it with pytest-flakes installed shows two issues::
- $ py.test -q --flakes
+ $ py.test -q --flakes
F
================================= FAILURES
=================================
______________________________ pyflakes-check
______________________________
@@ -76,10 +76,10 @@
1 failed in 0.00 seconds
But of course we still would want to delete the ``import os`` line to
- have a clean pass.
+ have a clean pass.
If you have some files where you want to specifically ignore
- some errors or warnings you can start a flakes-ignore line with
+ some errors or warnings you can start a flakes-ignore line with
a glob-pattern and a space-separated list of codes::
# content of setup.cfg
@@ -88,7 +88,7 @@
*.py UnusedImport
doc/conf.py ALL
-
+
Ignoring certain lines in files
-------------------------------
@@ -118,7 +118,7 @@
Notes
-----
- The repository of this plugin is at
https://github.com/fschulze/pytest-flakes
+ The repository of this plugin is at
https://github.com/asmeurer/pytest-flakes
For more info on py.test see http://pytest.org
@@ -129,12 +129,27 @@
Changes
=======
+ 4.0.1 - 2020-07-28
+ ------------------
+
+ - Maintenance of pytest-flakes has moved from fschulze to asmeurer.
The repo
+ for pytest-flakes is now at
https://github.com/asmeurer/pytest-flakes/
+
+ - Fix test failures.
+ [asmeurer]
+
+ - Fix deprecation warnings from pytest.
+ [asmeurer]
+
+ - Fix invalid escape sequences.
+ [akeeman]
+
4.0.0 - 2018-08-01
------------------
- Require pytest >= 2.8.0 and remove pytest-cache requirement.
Cache is included in pytest since that version.
- [smarlowucf]
+ [smarlowucf (Sean Marlow)]
3.0.2 - 2018-05-16
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-flakes-4.0.0/pytest_flakes.egg-info/SOURCES.txt
new/pytest-flakes-4.0.1/pytest_flakes.egg-info/SOURCES.txt
--- old/pytest-flakes-4.0.0/pytest_flakes.egg-info/SOURCES.txt 2018-08-01
06:23:06.000000000 +0200
+++ new/pytest-flakes-4.0.1/pytest_flakes.egg-info/SOURCES.txt 2020-07-28
23:52:00.000000000 +0200
@@ -1,5 +1,3 @@
-.coveragerc
-.travis.yml
LICENSE
MANIFEST.in
README.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flakes-4.0.0/pytest_flakes.py
new/pytest-flakes-4.0.1/pytest_flakes.py
--- old/pytest-flakes-4.0.0/pytest_flakes.py 2018-05-16 11:15:43.000000000
+0200
+++ new/pytest-flakes-4.0.1/pytest_flakes.py 2020-07-28 23:48:07.000000000
+0200
@@ -46,9 +46,15 @@
def pytest_collect_file(self, path, parent):
config = parent.config
if config.option.flakes and isPythonFile(path.strpath):
- flakes_ignore = self.ignore(path)
- if flakes_ignore is not None:
- return FlakesItem(path, parent, flakes_ignore)
+ flakesignore = self.ignore(path)
+ if flakesignore is not None:
+ if hasattr(FlakesItem, 'from_parent'):
+ item = FlakesItem.from_parent(parent,
+ fspath=path,
+ flakesignore=flakesignore)
+ else:
+ item = FlakesItem(path, parent, flakesignore)
+ return item
def pytest_sessionfinish(self, session):
session.config.cache.set(HISTKEY, self.mtimes)
@@ -60,8 +66,8 @@
class FlakesItem(pytest.Item, pytest.File):
- def __init__(self, path, parent, flakesignore):
- super(FlakesItem, self).__init__(path, parent)
+ def __init__(self, fspath, parent, flakesignore):
+ super(FlakesItem, self).__init__(fspath, parent)
if hasattr(self, 'add_marker'):
self.add_marker("flakes")
else:
@@ -97,7 +103,7 @@
class Ignorer:
- def __init__(self, ignorelines, coderex=re.compile("[EW]\d\d\d")):
+ def __init__(self, ignorelines, coderex=re.compile(r"[EW]\d\d\d")):
self.ignores = ignores = []
for line in ignorelines:
i = line.find("#")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flakes-4.0.0/setup.py
new/pytest-flakes-4.0.1/setup.py
--- old/pytest-flakes-4.0.0/setup.py 2018-08-01 06:20:34.000000000 +0200
+++ new/pytest-flakes-4.0.1/setup.py 2020-07-28 23:50:48.000000000 +0200
@@ -5,10 +5,9 @@
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
- version='4.0.0',
+ version='4.0.1',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
- author_email='[email protected]',
- url='https://github.com/fschulze/pytest-flakes',
+ url='https://github.com/asmeurer/pytest-flakes',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Pytest',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flakes-4.0.0/test_flakes.py
new/pytest-flakes-4.0.1/test_flakes.py
--- old/pytest-flakes-4.0.0/test_flakes.py 2017-08-22 10:11:08.000000000
+0200
+++ new/pytest-flakes-4.0.1/test_flakes.py 2020-07-28 23:48:07.000000000
+0200
@@ -20,7 +20,7 @@
for x in []
pass
""")
- result = testdir.runpytest("--flakes", "--ignore", testdir)
+ result = testdir.runpytest("--flakes", "--ignore", testdir.tmpdir)
assert "1: invalid syntax" in result.stdout.str()
assert 'passed' not in result.stdout.str()
@@ -55,3 +55,17 @@
result = testdir.runpytest('--flakes')
assert "UnusedImport\n'sys' imported but unused" in result.stdout.str()
assert 'passed' not in result.stdout.str()
+
+
+def test_flakesignore(testdir):
+ testdir.makeini("""
+[pytest]
+flakes-ignore = ImportStarUsed
+""")
+ testdir.makepyfile("""
+from os import *
+""")
+ result = testdir.runpytest("--flakes")
+ assert "ignoring ImportStarUsed" in result.stdout.str()
+ assert "1: ImportStarUsed" not in result.stdout.str()
+ assert 'passed' not in result.stdout.str()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-flakes-4.0.0/tox.ini
new/pytest-flakes-4.0.1/tox.ini
--- old/pytest-flakes-4.0.0/tox.ini 2018-05-16 10:53:22.000000000 +0200
+++ new/pytest-flakes-4.0.1/tox.ini 2020-07-28 23:48:07.000000000 +0200
@@ -1,5 +1,5 @@
[tox]
-envlist = py27,py34,py35,py36
+envlist = py27,py34,py35,py36,py37,py38
[testenv]
usedevelop = true
@@ -14,6 +14,7 @@
coverage html -d htmlcov-{envname}
[pytest]
-addopts = --flakes --pep8
+# addopts = --flakes --pep8
+addopts = --flakes
pep8ignore = E501
norecursedirs = bin lib include Scripts .*