Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-pycodestyle for 
openSUSE:Factory checked in at 2022-11-30 15:00:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-pycodestyle (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-pycodestyle.new.1597 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-pycodestyle"

Wed Nov 30 15:00:21 2022 rev:5 rq:1039089 version:2.3.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-pycodestyle/python-pytest-pycodestyle.changes
      2022-08-19 17:59:12.300443224 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-pycodestyle.new.1597/python-pytest-pycodestyle.changes
    2022-11-30 15:01:16.817814354 +0100
@@ -1,0 +2,11 @@
+Wed Nov 30 11:33:22 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Remove python_module macro definition 
+- Add python-py dependency
+- More specific python_sitelib in %files
+- Update to 2.3.1:
+  * Replace --strict command-line option with --strict-markers (#95)
+  * Test with Python 3.11 (#101)
+  * Update MANIFEST.in to add tests and Makefile to sdist (#100)
+
+-------------------------------------------------------------------

Old:
----
  pytest-pycodestyle-2.3.0.tar.gz

New:
----
  pytest-pycodestyle-2.3.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-pycodestyle.spec ++++++
--- /var/tmp/diff_new_pack.xamXLv/_old  2022-11-30 15:01:17.217816701 +0100
+++ /var/tmp/diff_new_pack.xamXLv/_new  2022-11-30 15:01:17.221816725 +0100
@@ -16,10 +16,9 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-pytest-pycodestyle
-Version:        2.3.0
+Version:        2.3.1
 Release:        0
 Summary:        Pytest plugin to run pycodestyle
 License:        MIT
@@ -29,9 +28,11 @@
 BuildRequires:  %{python_module pycodestyle}
 BuildRequires:  %{python_module pytest >= 5.4}
 BuildRequires:  %{python_module pytest-isort}
+BuildRequires:  %{python_module py}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       python-py
 Requires:       python-pycodestyle
 Requires:       python-pytest
 Requires:       python-setuptools
@@ -60,6 +61,8 @@
 %files %{python_files}
 %doc README.md
 %license LICENSE
-%{python_sitelib}/*
+%pycache_only %{python_sitelib}/__pycache__/*.pyc
+%{python_sitelib}/pytest_pycodestyle.py
+%{python_sitelib}/pytest_pycodestyle-%{version}*-info
 
 %changelog

++++++ pytest-pycodestyle-2.3.0.tar.gz -> pytest-pycodestyle-2.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-pycodestyle-2.3.0/MANIFEST.in 
new/pytest-pycodestyle-2.3.1/MANIFEST.in
--- old/pytest-pycodestyle-2.3.0/MANIFEST.in    2018-03-31 10:51:13.000000000 
+0200
+++ new/pytest-pycodestyle-2.3.1/MANIFEST.in    2022-10-28 08:58:21.000000000 
+0200
@@ -1,3 +1,5 @@
 include LICENSE
+include Makefile
 include README.md
 include VERSION
+recursive-include tests *.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-pycodestyle-2.3.0/Makefile 
new/pytest-pycodestyle-2.3.1/Makefile
--- old/pytest-pycodestyle-2.3.0/Makefile       1970-01-01 01:00:00.000000000 
+0100
+++ new/pytest-pycodestyle-2.3.1/Makefile       2022-10-28 07:50:19.000000000 
+0200
@@ -0,0 +1,30 @@
+SHELL := /bin/bash
+PACKAGE := $(shell \grep "name=" setup.py | \sed -e "s/ *name='\(.*\)',/\1/")
+VERSION := $(shell \cat VERSION)
+
+install:
+       pip install .
+.PHONY: install
+
+uninstall:
+       pip uninstall -y $(PACKAGE)
+.PHONY: uninstall
+
+update: clean uninstall install
+.PHONY: update
+
+clean:
+       ${RM} -fr {.,src,tests}/*.egg-info {.,src,tests}/.cache 
{.,src,tests}/.pytest_cache {.,src,tests}/__pycache__
+.PHONY: clean
+
+setup:
+       pip install -e .[tests]
+.PHONY: setup
+
+test:
+       pytest src tests
+.PHONY: test
+
+sdist: clean
+       python setup.py sdist
+.PHONY: sdist
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-pycodestyle-2.3.0/PKG-INFO 
new/pytest-pycodestyle-2.3.1/PKG-INFO
--- old/pytest-pycodestyle-2.3.0/PKG-INFO       2022-03-13 05:41:33.326901200 
+0100
+++ new/pytest-pycodestyle-2.3.1/PKG-INFO       2022-10-28 09:15:27.127289000 
+0200
@@ -1,12 +1,11 @@
 Metadata-Version: 2.1
 Name: pytest-pycodestyle
-Version: 2.3.0
+Version: 2.3.1
 Summary: pytest plugin to run pycodestyle
 Home-page: https://github.com/henry0312/pytest-pycodestyle
 Author: OMOTO Tsukasa
 Author-email: tsuk...@oomo.to
 License: MIT
-Platform: UNKNOWN
 Classifier: Development Status :: 3 - Alpha
 Classifier: Intended Audience :: Developers
 Classifier: Topic :: Software Development :: Testing
@@ -17,6 +16,7 @@
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
 Requires-Python: ~=3.7
 Description-Content-Type: text/markdown
 Provides-Extra: tests
@@ -65,5 +65,3 @@
 ## Acknowledgments
 
 - [pytest-dev / pytest-pep8 — 
Bitbucket](https://bitbucket.org/pytest-dev/pytest-pep8)
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-pycodestyle-2.3.0/VERSION 
new/pytest-pycodestyle-2.3.1/VERSION
--- old/pytest-pycodestyle-2.3.0/VERSION        2022-03-13 05:41:31.000000000 
+0100
+++ new/pytest-pycodestyle-2.3.1/VERSION        2022-10-28 09:13:02.000000000 
+0200
@@ -1 +1 @@
-2.3.0
+2.3.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-pycodestyle-2.3.0/setup.py 
new/pytest-pycodestyle-2.3.1/setup.py
--- old/pytest-pycodestyle-2.3.0/setup.py       2022-03-13 05:41:31.000000000 
+0100
+++ new/pytest-pycodestyle-2.3.1/setup.py       2022-10-28 08:58:21.000000000 
+0200
@@ -21,6 +21,7 @@
     install_requires=[
         'pytest>=7.0',
         'pycodestyle',
+        'py',
     ],
     extras_require={
         'tests': [
@@ -44,5 +45,6 @@
         'Programming Language :: Python :: 3.8',
         'Programming Language :: Python :: 3.9',
         'Programming Language :: Python :: 3.10',
+        'Programming Language :: Python :: 3.11',
     ],
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-pycodestyle-2.3.0/src/pytest_pycodestyle.egg-info/PKG-INFO 
new/pytest-pycodestyle-2.3.1/src/pytest_pycodestyle.egg-info/PKG-INFO
--- old/pytest-pycodestyle-2.3.0/src/pytest_pycodestyle.egg-info/PKG-INFO       
2022-03-13 05:41:33.000000000 +0100
+++ new/pytest-pycodestyle-2.3.1/src/pytest_pycodestyle.egg-info/PKG-INFO       
2022-10-28 09:15:27.000000000 +0200
@@ -1,12 +1,11 @@
 Metadata-Version: 2.1
 Name: pytest-pycodestyle
-Version: 2.3.0
+Version: 2.3.1
 Summary: pytest plugin to run pycodestyle
 Home-page: https://github.com/henry0312/pytest-pycodestyle
 Author: OMOTO Tsukasa
 Author-email: tsuk...@oomo.to
 License: MIT
-Platform: UNKNOWN
 Classifier: Development Status :: 3 - Alpha
 Classifier: Intended Audience :: Developers
 Classifier: Topic :: Software Development :: Testing
@@ -17,6 +16,7 @@
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
 Requires-Python: ~=3.7
 Description-Content-Type: text/markdown
 Provides-Extra: tests
@@ -65,5 +65,3 @@
 ## Acknowledgments
 
 - [pytest-dev / pytest-pep8 — 
Bitbucket](https://bitbucket.org/pytest-dev/pytest-pep8)
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-pycodestyle-2.3.0/src/pytest_pycodestyle.egg-info/SOURCES.txt 
new/pytest-pycodestyle-2.3.1/src/pytest_pycodestyle.egg-info/SOURCES.txt
--- old/pytest-pycodestyle-2.3.0/src/pytest_pycodestyle.egg-info/SOURCES.txt    
2022-03-13 05:41:33.000000000 +0100
+++ new/pytest-pycodestyle-2.3.1/src/pytest_pycodestyle.egg-info/SOURCES.txt    
2022-10-28 09:15:27.000000000 +0200
@@ -1,5 +1,6 @@
 LICENSE
 MANIFEST.in
+Makefile
 README
 README.md
 VERSION
@@ -11,4 +12,5 @@
 src/pytest_pycodestyle.egg-info/dependency_links.txt
 src/pytest_pycodestyle.egg-info/entry_points.txt
 src/pytest_pycodestyle.egg-info/requires.txt
-src/pytest_pycodestyle.egg-info/top_level.txt
\ No newline at end of file
+src/pytest_pycodestyle.egg-info/top_level.txt
+tests/test_pytest_pycodestyle.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-pycodestyle-2.3.0/src/pytest_pycodestyle.egg-info/entry_points.txt 
new/pytest-pycodestyle-2.3.1/src/pytest_pycodestyle.egg-info/entry_points.txt
--- 
old/pytest-pycodestyle-2.3.0/src/pytest_pycodestyle.egg-info/entry_points.txt   
    2022-03-13 05:41:33.000000000 +0100
+++ 
new/pytest-pycodestyle-2.3.1/src/pytest_pycodestyle.egg-info/entry_points.txt   
    2022-10-28 09:15:27.000000000 +0200
@@ -1,3 +1,2 @@
 [pytest11]
 pycodestyle = pytest_pycodestyle
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-pycodestyle-2.3.0/src/pytest_pycodestyle.egg-info/requires.txt 
new/pytest-pycodestyle-2.3.1/src/pytest_pycodestyle.egg-info/requires.txt
--- old/pytest-pycodestyle-2.3.0/src/pytest_pycodestyle.egg-info/requires.txt   
2022-03-13 05:41:33.000000000 +0100
+++ new/pytest-pycodestyle-2.3.1/src/pytest_pycodestyle.egg-info/requires.txt   
2022-10-28 09:15:27.000000000 +0200
@@ -1,5 +1,6 @@
 pytest>=7.0
 pycodestyle
+py
 
 [tests]
 pytest-isort
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-pycodestyle-2.3.0/tests/test_pytest_pycodestyle.py 
new/pytest-pycodestyle-2.3.1/tests/test_pytest_pycodestyle.py
--- old/pytest-pycodestyle-2.3.0/tests/test_pytest_pycodestyle.py       
1970-01-01 01:00:00.000000000 +0100
+++ new/pytest-pycodestyle-2.3.1/tests/test_pytest_pycodestyle.py       
2022-10-28 07:50:19.000000000 +0200
@@ -0,0 +1,125 @@
+import os
+
+import pytest_pycodestyle
+
+# https://docs.pytest.org/en/5.2.2/writing_plugins.html#testing-plugins
+pytest_plugins = ["pytester"]
+
+
+def test_option_false(testdir):
+    p = testdir.makepyfile("""
+        def test_option(request):
+            flag = request.config.getoption('pycodestyle')
+            assert flag is False
+    """)
+    p = p.write(p.read() + "\n")
+    result = testdir.runpytest()
+    result.assert_outcomes(passed=1)
+
+
+def test_option_true(testdir):
+    p = testdir.makepyfile("""
+        def test_option(request):
+            flag = request.config.getoption('pycodestyle')
+            assert flag is True
+    """)
+    p = p.write(p.read() + "\n")
+    result = testdir.runpytest('--pycodestyle')
+    result.assert_outcomes(passed=2)
+
+
+def test_ini(testdir):
+    testdir.makeini("""
+        [pycodestyle]
+        max-line-length = 80
+        exclude = b.py
+    """)
+    testdir.tmpdir.ensure('a.py')
+    testdir.tmpdir.ensure('b.py')  # to be skipped
+    result = testdir.runpytest('--pycodestyle')
+    result.assert_outcomes(passed=1)
+
+
+def test_pytest_collect_file(testdir):
+    testdir.tmpdir.ensure('a.py')
+    testdir.tmpdir.ensure('b.py')
+    testdir.tmpdir.ensure('c.txt')
+    result = testdir.runpytest('--pycodestyle')
+    result.assert_outcomes(passed=2)
+
+
+def test_cache(testdir):
+    testdir.tmpdir.ensure('a.py')
+    # W292 no newline at end of file
+    p = testdir.makepyfile("""
+        def hello():
+            print('hello')
+    """)
+    # first run
+    result = testdir.runpytest('--pycodestyle')
+    result.assert_outcomes(passed=1, failed=1)
+    # second run
+    result = testdir.runpytest('--pycodestyle')
+    result.assert_outcomes(skipped=1, failed=1)
+
+
+def test_no_cacheprovider(testdir):
+    testdir.tmpdir.ensure('a.py')
+    testdir.makepyfile("""
+        def hello():
+            print('hello')
+    """)
+    # first run
+    result = testdir.runpytest('--pycodestyle', '-p', 'no:cacheprovider')
+    result.assert_outcomes(passed=1, failed=1)
+    # second run
+    result = testdir.runpytest('--pycodestyle', '-p', 'no:cacheprovider')
+    result.assert_outcomes(passed=1, failed=1)
+
+
+def test_strict(testdir):
+    p = testdir.makepyfile("""
+        def test_blah():
+            pass
+    """)
+    p = p.write(p.read() + "\n")
+    result = testdir.runpytest('--strict-markers', '--pycodestyle')
+    result.assert_outcomes(passed=2)
+
+
+def test_nodeid(testdir):
+    p = testdir.makepyfile("""
+        def test_nodeid():
+            pass
+    """)
+    p = p.write(p.read() + "\n")
+    result = testdir.runpytest('-m', 'pycodestyle', '--pycodestyle', '-v')
+    result.assert_outcomes(passed=1)
+    result.stdout.fnmatch_lines(['test_nodeid.py::PYCODESTYLE PASSED *'])
+
+
+class TestItem(object):
+
+    def test_cache_key(self):
+        assert pytest_pycodestyle.Item.CACHE_KEY == 'pycodestyle/mtimes'
+
+    def test_init(self):
+        pass
+
+    def test_setup(self):
+        pass
+
+    def test_runtest(self):
+        pass
+
+    def test_repr_failure(self):
+        pass
+
+    def test_reportinfo(self):
+        pass
+
+
+class TestCodeStyleError(object):
+
+    def test_subclass(self):
+        assert issubclass(pytest_pycodestyle.PyCodeStyleError, Exception)

Reply via email to