Hello community,
here is the log from the commit of package python-pytest-codestyle for
openSUSE:Factory checked in at 2019-02-14 14:34:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-codestyle (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-codestyle.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-codestyle"
Thu Feb 14 14:34:41 2019 rev:2 rq:674596 version:1.4.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-codestyle/python-pytest-codestyle.changes
2018-10-18 15:32:44.922546550 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-codestyle.new.28833/python-pytest-codestyle.changes
2019-02-14 14:34:48.807612963 +0100
@@ -1,0 +2,8 @@
+Wed Feb 13 14:39:16 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.4.0:
+ * Add globbing to codestyle_exclude (#43)
+ * Add marker for codestyle (#47)
+ * Update install_requires and extras_require (#45)
+
+-------------------------------------------------------------------
Old:
----
pytest-codestyle-1.3.0.tar.gz
New:
----
pytest-codestyle-1.4.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-codestyle.spec ++++++
--- /var/tmp/diff_new_pack.zWKn1R/_old 2019-02-14 14:34:49.299612739 +0100
+++ /var/tmp/diff_new_pack.zWKn1R/_new 2019-02-14 14:34:49.303612738 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-codestyle
#
-# 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,32 +12,28 @@
# 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-%{**}}
Name: python-pytest-codestyle
-Version: 1.3.0
+Version: 1.4.0
Release: 0
-License: MIT
Summary: Pytest plugin to run pycodestyle
-Url: https://github.com/henry0312/pytest-codestyle
+License: MIT
Group: Development/Languages/Python
+Url: https://github.com/henry0312/pytest-codestyle
Source:
https://files.pythonhosted.org/packages/source/p/pytest-codestyle/pytest-codestyle-%{version}.tar.gz
Patch0: fix-super.patch
-BuildRequires: python-rpm-macros
+BuildRequires: %{python_module pycodestyle}
+BuildRequires: %{python_module pytest-isort}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
-# Test requirements
-BuildRequires: %{python_module py >= 1.5}
-BuildRequires: %{python_module pycodestyle >= 2.3}
-BuildRequires: %{python_module pytest >= 3.0}
-BuildRequires: %{python_module pytest-isort >= 0.1}
-# End of test requirements
BuildRequires: fdupes
-Requires: python-py >= 1.5
-Requires: python-pycodestyle >= 2.3
-Requires: python-pytest >= 3.0
-Suggests: python-pytest-isort >= 0.1
+BuildRequires: python-rpm-macros
+Requires: python-pycodestyle
+Requires: python-pytest
BuildArch: noarch
%python_subpackages
++++++ pytest-codestyle-1.3.0.tar.gz -> pytest-codestyle-1.4.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-codestyle-1.3.0/PKG-INFO
new/pytest-codestyle-1.4.0/PKG-INFO
--- old/pytest-codestyle-1.3.0/PKG-INFO 2018-09-01 08:02:25.000000000 +0200
+++ new/pytest-codestyle-1.4.0/PKG-INFO 2018-12-14 09:23:53.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pytest-codestyle
-Version: 1.3.0
+Version: 1.4.0
Summary: pytest plugin to run pycodestyle
Home-page: https://github.com/henry0312/pytest-codestyle
Author: Tsukasa OMOTO
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-codestyle-1.3.0/VERSION
new/pytest-codestyle-1.4.0/VERSION
--- old/pytest-codestyle-1.3.0/VERSION 2018-09-01 07:59:35.000000000 +0200
+++ new/pytest-codestyle-1.4.0/VERSION 2018-12-14 09:11:53.000000000 +0100
@@ -1 +1 @@
-1.3.0
+1.4.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-codestyle-1.3.0/pytest_codestyle.egg-info/PKG-INFO
new/pytest-codestyle-1.4.0/pytest_codestyle.egg-info/PKG-INFO
--- old/pytest-codestyle-1.3.0/pytest_codestyle.egg-info/PKG-INFO
2018-09-01 08:02:25.000000000 +0200
+++ new/pytest-codestyle-1.4.0/pytest_codestyle.egg-info/PKG-INFO
2018-12-14 09:23:53.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pytest-codestyle
-Version: 1.3.0
+Version: 1.4.0
Summary: pytest plugin to run pycodestyle
Home-page: https://github.com/henry0312/pytest-codestyle
Author: Tsukasa OMOTO
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-codestyle-1.3.0/pytest_codestyle.egg-info/requires.txt
new/pytest-codestyle-1.4.0/pytest_codestyle.egg-info/requires.txt
--- old/pytest-codestyle-1.3.0/pytest_codestyle.egg-info/requires.txt
2018-09-01 08:02:25.000000000 +0200
+++ new/pytest-codestyle-1.4.0/pytest_codestyle.egg-info/requires.txt
2018-12-14 09:23:53.000000000 +0100
@@ -1,6 +1,5 @@
-pytest~=3.0
-py~=1.5
-pycodestyle~=2.3
+pytest
+pycodestyle
[tests]
-pytest-isort~=0.1
+pytest-isort
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-codestyle-1.3.0/pytest_codestyle.py
new/pytest-codestyle-1.4.0/pytest_codestyle.py
--- old/pytest-codestyle-1.3.0/pytest_codestyle.py 2018-09-01
07:59:35.000000000 +0200
+++ new/pytest-codestyle-1.4.0/pytest_codestyle.py 2018-12-14
09:11:53.000000000 +0100
@@ -20,14 +20,19 @@
ignored=pycodestyle.DEFAULT_IGNORE.replace(',', ' ')))
parser.addini('codestyle_show_source', type="bool", default=True,
help='show source code for each error (default: True)')
- parser.addini('codestyle_exclude', type="pathlist",
+ parser.addini('codestyle_exclude', type="args",
help='source files to be excluded from codestyle')
+def pytest_configure(config):
+ config.addinivalue_line('markers', 'codestyle: mark tests to be checked by
pycodestyle.')
+
+
def pytest_collect_file(parent, path):
config = parent.config
- if config.getoption('codestyle') and path.ext == '.py' and path not in
config.getini('codestyle_exclude'):
- return Item(path, parent)
+ if config.getoption('codestyle') and path.ext == '.py':
+ if not any(path.fnmatch(pattern) for pattern in
config.getini('codestyle_exclude')):
+ return Item(path, parent)
class Item(pytest.Item, pytest.File):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-codestyle-1.3.0/setup.py
new/pytest-codestyle-1.4.0/setup.py
--- old/pytest-codestyle-1.3.0/setup.py 2018-09-01 07:59:47.000000000 +0200
+++ new/pytest-codestyle-1.4.0/setup.py 2018-12-14 09:21:51.000000000 +0100
@@ -18,13 +18,12 @@
py_modules=['pytest_codestyle'],
python_requires='~=3.5',
install_requires=[
- 'pytest~=3.0',
- 'py~=1.5',
- 'pycodestyle~=2.3',
+ 'pytest',
+ 'pycodestyle',
],
extras_require={
'tests': [
- 'pytest-isort~=0.1',
+ 'pytest-isort',
],
},
#
https://docs.pytest.org/en/latest/writing_plugins.html#making-your-plugin-installable-by-others