Hello community,

here is the log from the commit of package python-pytest-openfiles for 
openSUSE:Leap:15.2 checked in at 2020-02-23 16:47:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pytest-openfiles (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-pytest-openfiles.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-openfiles"

Sun Feb 23 16:47:45 2020 rev:4 rq:777024 version:0.4.0

Changes:
--------
--- 
/work/SRC/openSUSE:Leap:15.2/python-pytest-openfiles/python-pytest-openfiles.changes
        2020-01-15 15:52:18.359558789 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-pytest-openfiles.new.26092/python-pytest-openfiles.changes
     2020-02-23 16:47:46.598355861 +0100
@@ -1,0 +2,7 @@
+Mon Jul 22 08:54:04 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.4.0:
+  * Added the ability to use * and ? wildcards in open_files_ignore. [#22]
+  * Fixed compatibility with pytest 4.2. [#20]
+
+-------------------------------------------------------------------

Old:
----
  pytest-openfiles-0.3.2.tar.gz

New:
----
  pytest-openfiles-0.4.0.tar.gz

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

Other differences:
------------------
++++++ python-pytest-openfiles.spec ++++++
--- /var/tmp/diff_new_pack.OvEDEB/_old  2020-02-23 16:47:46.962356562 +0100
+++ /var/tmp/diff_new_pack.OvEDEB/_new  2020-02-23 16:47:46.966356570 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pytest-openfiles
-Version:        0.3.2
+Version:        0.4.0
 Release:        0
 Summary:        Pytest plugin for detecting inadvertent open file handles
 License:        BSD-3-Clause

++++++ pytest-openfiles-0.3.2.tar.gz -> pytest-openfiles-0.4.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-openfiles-0.3.2/.gitignore 
new/pytest-openfiles-0.4.0/.gitignore
--- old/pytest-openfiles-0.3.2/.gitignore       1970-01-01 01:00:00.000000000 
+0100
+++ new/pytest-openfiles-0.4.0/.gitignore       2019-07-20 15:06:03.000000000 
+0200
@@ -0,0 +1,57 @@
+# Compiled files
+*.py[cod]
+*.a
+*.o
+*.so
+*.pyd
+__pycache__
+
+# Ignore .c files by default to avoid including generated code. If you want to
+# add a non-generated .c extension, use `git add -f filename.c`.
+*.c
+
+# Other generated files
+MANIFEST
+
+# Sphinx
+_build
+_generated
+docs/api
+docs/generated
+
+# Packages/installer info
+*.egg
+*.egg-info
+dist
+build
+eggs
+.eggs
+parts
+bin
+var
+sdist
+develop-eggs
+.installed.cfg
+distribute-*.tar.gz
+
+# Other
+.cache
+.tox
+.*.swp
+.*.swo
+*~
+.project
+.pydevproject
+.settings
+.coverage
+cover
+htmlcov
+# Generated by Pytest
+v
+.pytest_cache
+
+# Mac OSX
+.DS_Store
+
+# PyCharm
+.idea
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-openfiles-0.3.2/.travis.yml 
new/pytest-openfiles-0.4.0/.travis.yml
--- old/pytest-openfiles-0.3.2/.travis.yml      1970-01-01 01:00:00.000000000 
+0100
+++ new/pytest-openfiles-0.4.0/.travis.yml      2019-07-20 15:06:03.000000000 
+0200
@@ -0,0 +1,45 @@
+# We set the language to c because python isn't supported on the MacOS X nodes
+# on Travis. However, the language ends up being irrelevant anyway, since we
+# install Python ourselves using conda.
+language: c
+
+os:
+    - linux
+
+# Use Travis' container-based architecture
+sudo: false
+
+env:
+    global:
+        # The following versions are the 'default' for tests, unless
+        # overidden underneath. They are defined here in order to save having
+        # to repeat them for all configurations.
+        - PYTHON_VERSION=3.6
+        - PYTEST_VERSION=3.6
+        - PYTEST_COMMAND='pytest'
+        - NUMPY_VERSION=stable
+        - CONDA_DEPENDENCIES='six'
+
+    matrix:
+        - PYTHON_VERSION=2.7 PYTEST_VERSION=2.8 PYTEST_COMMAND='py.test'
+        - PYTHON_VERSION=2.7
+        - PYTHON_VERSION=3.5
+        - PYTHON_VERSION=3.6 PYTEST_VERSION=3.4
+        - PYTHON_VERSION=3.6 PYTEST_VERSION=3.5
+        - PYTHON_VERSION=3.6
+        - PYTHON_VERSION=3.7
+
+matrix:
+    include:
+        # Try a run on OSX with latest versions of python and pytest
+        - os: osx
+          env: PYTHON_VERSION=3.7 PYTEST_VERSION=3.7
+
+install:
+    - git clone git://github.com/astropy/ci-helpers.git
+    - source ci-helpers/travis/setup_conda.sh
+    - python ./setup.py install
+
+script:
+   - $PYTEST_COMMAND
+   - $PYTEST_COMMAND --open-files
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-openfiles-0.3.2/CHANGES.rst 
new/pytest-openfiles-0.4.0/CHANGES.rst
--- old/pytest-openfiles-0.3.2/CHANGES.rst      2019-01-07 16:15:40.000000000 
+0100
+++ new/pytest-openfiles-0.4.0/CHANGES.rst      2019-07-20 15:06:37.000000000 
+0200
@@ -1,3 +1,11 @@
+0.4 (2019-07-20)
+================
+
+- Added the ability to use ``*`` and ``?`` wildcards in
+  ``open_files_ignore``. [#22]
+
+- Fixed compatibility with pytest 4.2. [#20]
+
 0.3.2 (2019-01-07)
 ==================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-openfiles-0.3.2/PKG-INFO 
new/pytest-openfiles-0.4.0/PKG-INFO
--- old/pytest-openfiles-0.3.2/PKG-INFO 2019-01-07 16:20:00.000000000 +0100
+++ new/pytest-openfiles-0.4.0/PKG-INFO 2019-07-20 15:07:37.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: pytest-openfiles
-Version: 0.3.2
+Version: 0.4.0
 Summary: Pytest plugin for detecting inadvertent open file handles
 Home-page: https://astropy.org
 Author: The Astropy Developers
@@ -71,7 +71,11 @@
             open_files_ignore = "output.log"
         
         In this example, all files named ``output.log`` will be ignored if 
they are
-        found to remain open after a test completes.
+        found to remain open after a test completes. Paths and filenames can 
include
+        ``*`` and ``?`` as wildcards::
+        
+            [tool:pytest]
+            open_files_ignore = "*.ttf"
         
         It is also possible to ignore open files for particular test cases by
         decorating them with the ``openfiles_ignore`` decorator:
@@ -96,7 +100,7 @@
             :target: https://travis-ci.org/astropy/pytest-openfiles
             :alt: Travis CI Status
         
-        .. image:: 
https://ci.appveyor.com/api/projects/status/944gtt7n0o1d6826/branch/master?svg=true
 
+        .. image:: 
https://ci.appveyor.com/api/projects/status/944gtt7n0o1d6826/branch/master?svg=true
             :target: 
https://ci.appveyor.com/project/Astropy/pytest-openfiles/branch/master
             :alt: Appveyor Status
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-openfiles-0.3.2/README.rst 
new/pytest-openfiles-0.4.0/README.rst
--- old/pytest-openfiles-0.3.2/README.rst       2018-04-20 18:30:14.000000000 
+0200
+++ new/pytest-openfiles-0.4.0/README.rst       2019-07-20 15:06:03.000000000 
+0200
@@ -63,7 +63,11 @@
     open_files_ignore = "output.log"
 
 In this example, all files named ``output.log`` will be ignored if they are
-found to remain open after a test completes.
+found to remain open after a test completes. Paths and filenames can include
+``*`` and ``?`` as wildcards::
+
+    [tool:pytest]
+    open_files_ignore = "*.ttf"
 
 It is also possible to ignore open files for particular test cases by
 decorating them with the ``openfiles_ignore`` decorator:
@@ -88,7 +92,7 @@
     :target: https://travis-ci.org/astropy/pytest-openfiles
     :alt: Travis CI Status
 
-.. image:: 
https://ci.appveyor.com/api/projects/status/944gtt7n0o1d6826/branch/master?svg=true
 
+.. image:: 
https://ci.appveyor.com/api/projects/status/944gtt7n0o1d6826/branch/master?svg=true
     :target: 
https://ci.appveyor.com/project/Astropy/pytest-openfiles/branch/master
     :alt: Appveyor Status
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-openfiles-0.3.2/appveyor.yml 
new/pytest-openfiles-0.4.0/appveyor.yml
--- old/pytest-openfiles-0.3.2/appveyor.yml     1970-01-01 01:00:00.000000000 
+0100
+++ new/pytest-openfiles-0.4.0/appveyor.yml     2019-07-20 15:06:03.000000000 
+0200
@@ -0,0 +1,55 @@
+# AppVeyor.com is a Continuous Integration service to build and run tests under
+# Windows
+
+environment:
+
+  global:
+      PYTHON: "C:\\conda"
+      MINICONDA_VERSION: "latest"
+      CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci-helpers\\appveyor\\windows_sdk.cmd"
+      PYTEST_VERSION: "3.6"
+      PYTEST_COMMAND: "pytest"
+      NUMPY_VERSION: "stable"
+      CONDA_DEPENDENCIES: "six"
+      PYTHON_ARCH: "64"
+
+  matrix:
+      - PYTHON_VERSION: "2.7"
+        PYTEST_VESION: "2.8"
+        PYTEST_COMMAND: "py.test"
+        platform: x64
+
+      - PYTHON_VERSION: "2.7"
+        platform: x64
+
+      - PYTHON_VERSION: "3.5"
+        NUMPY_VERSION: "1.15"
+        platform: x64
+
+      - PYTHON_VERSION: "3.6"
+        PYTEST_VERSION: "3.4"
+        platform: x64
+
+      - PYTHON_VERSION: "3.6"
+        PYTEST_VERSION: "3.5"
+        platform: x64
+
+      - PYTHON_VERSION: "3.6"
+        platform: x86
+
+      - PYTHON_VERSION: "3.7"
+        platform: x64
+
+install:
+    - "git clone git://github.com/astropy/ci-helpers.git"
+    - "powershell ci-helpers/appveyor/install-miniconda.ps1"
+    - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
+    - "activate test"
+    - "%CMD_IN_ENV% python setup.py install"
+
+# Not a .NET project
+build: false
+
+test_script:
+  - "%CMD_IN_ENV% %PYTEST_COMMAND%"
+  - "%CMD_IN_ENV% %PYTEST_COMMAND% --open-files"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-openfiles-0.3.2/pytest_openfiles/plugin.py 
new/pytest-openfiles-0.4.0/pytest_openfiles/plugin.py
--- old/pytest-openfiles-0.3.2/pytest_openfiles/plugin.py       2019-01-07 
16:13:08.000000000 +0100
+++ new/pytest-openfiles-0.4.0/pytest_openfiles/plugin.py       2019-07-20 
15:06:03.000000000 +0200
@@ -3,18 +3,21 @@
 This plugin provides support for testing whether file-like objects are properly
 closed.
 """
-import imp
 import os
+import fnmatch
 
-from distutils.version import StrictVersion
+from distutils.version import LooseVersion
 
 import pytest
 
 try:
     import importlib.machinery as importlib_machinery
 except ImportError:
+    import imp
     importlib_machinery = None
 
+_pytest_36 = LooseVersion(pytest.__version__) >= LooseVersion("3.6")
+
 
 def pytest_addoption(parser):
 
@@ -28,6 +31,7 @@
                   "may be specified by their base name (ignoring their full "
                   "path) or by absolute path", type="args", default=())
 
+
 def pytest_configure(config):
 
     config.getini('markers').append(
@@ -61,16 +65,17 @@
 
 def pytest_runtest_setup(item):
 
-    # Retain backwards compatibility with earlier versions of pytest
-    if StrictVersion(pytest.__version__) < StrictVersion("3.6"):
-        ignore = item.get_marker('openfiles_ignore')
-    else:
-        ignore = item.get_closest_marker('openfiles_ignore')
-
     # Store a list of the currently opened files so we can compare
     # against them when the test is done.
-    if item.config.getvalue('open_files') and not ignore:
-        item.open_files = _get_open_file_list()
+    if item.config.getvalue('open_files'):
+
+        # Retain backwards compatibility with earlier versions of pytest
+        if _pytest_36:
+            ignore = item.get_closest_marker('openfiles_ignore')
+        else:
+            ignore = item.get_marker('openfiles_ignore')
+        if not ignore:
+            item.open_files = _get_open_file_list()
 
 
 def pytest_runtest_teardown(item, nextitem):
@@ -97,14 +102,19 @@
         ignore = False
 
         for ignored in open_files_ignore:
+
+            # Note that we use fnmatch rather than re for simplicity since
+            # we are dealing with file paths - fnmatch works with the standard
+            # * and ? wildcards in paths.
+
             if not os.path.isabs(ignored):
-                if os.path.basename(filename) == ignored:
-                    ignore = True
-                    break
-            else:
-                if filename == ignored:
-                    ignore = True
-                    break
+                # Since the path is not absolute, we convert it to
+                # */<original_path> to make sure it matches absolute paths.
+                ignored = os.path.join('*', ignored)
+
+            if fnmatch.fnmatch(filename, ignored):
+                ignore = True
+                break
 
         if ignore:
             continue
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-openfiles-0.3.2/pytest_openfiles.egg-info/PKG-INFO 
new/pytest-openfiles-0.4.0/pytest_openfiles.egg-info/PKG-INFO
--- old/pytest-openfiles-0.3.2/pytest_openfiles.egg-info/PKG-INFO       
2019-01-07 16:20:00.000000000 +0100
+++ new/pytest-openfiles-0.4.0/pytest_openfiles.egg-info/PKG-INFO       
2019-07-20 15:07:37.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: pytest-openfiles
-Version: 0.3.2
+Version: 0.4.0
 Summary: Pytest plugin for detecting inadvertent open file handles
 Home-page: https://astropy.org
 Author: The Astropy Developers
@@ -71,7 +71,11 @@
             open_files_ignore = "output.log"
         
         In this example, all files named ``output.log`` will be ignored if 
they are
-        found to remain open after a test completes.
+        found to remain open after a test completes. Paths and filenames can 
include
+        ``*`` and ``?`` as wildcards::
+        
+            [tool:pytest]
+            open_files_ignore = "*.ttf"
         
         It is also possible to ignore open files for particular test cases by
         decorating them with the ``openfiles_ignore`` decorator:
@@ -96,7 +100,7 @@
             :target: https://travis-ci.org/astropy/pytest-openfiles
             :alt: Travis CI Status
         
-        .. image:: 
https://ci.appveyor.com/api/projects/status/944gtt7n0o1d6826/branch/master?svg=true
 
+        .. image:: 
https://ci.appveyor.com/api/projects/status/944gtt7n0o1d6826/branch/master?svg=true
             :target: 
https://ci.appveyor.com/project/Astropy/pytest-openfiles/branch/master
             :alt: Appveyor Status
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-openfiles-0.3.2/pytest_openfiles.egg-info/SOURCES.txt 
new/pytest-openfiles-0.4.0/pytest_openfiles.egg-info/SOURCES.txt
--- old/pytest-openfiles-0.3.2/pytest_openfiles.egg-info/SOURCES.txt    
2019-01-07 16:20:00.000000000 +0100
+++ new/pytest-openfiles-0.4.0/pytest_openfiles.egg-info/SOURCES.txt    
2019-07-20 15:07:37.000000000 +0200
@@ -1,7 +1,10 @@
+.gitignore
+.travis.yml
 CHANGES.rst
 LICENSE.rst
 MANIFEST.in
 README.rst
+appveyor.yml
 setup.cfg
 setup.py
 pytest_openfiles/__init__.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-openfiles-0.3.2/setup.cfg 
new/pytest-openfiles-0.4.0/setup.cfg
--- old/pytest-openfiles-0.3.2/setup.cfg        2019-01-07 16:20:00.000000000 
+0100
+++ new/pytest-openfiles-0.4.0/setup.cfg        2019-07-20 15:07:37.000000000 
+0200
@@ -1,4 +1,47 @@
-[pytest]
+[metadata]
+name = pytest-openfiles
+version = 0.4.0
+url = https://astropy.org
+author = The Astropy Developers
+author_email = [email protected]
+classifiers = 
+       Development Status :: 3 - Alpha
+       Framework :: Pytest
+       Intended Audience :: Developers
+       License :: OSI Approved :: BSD License
+       Operating System :: OS Independent
+       Programming Language :: Python
+       Programming Language :: Python :: 2.7
+       Programming Language :: Python :: 3
+       Programming Language :: Python :: 3.3
+       Programming Language :: Python :: 3.4
+       Programming Language :: Python :: 3.5
+       Programming Language :: Python :: 3.6
+       Programming Language :: Python :: Implementation :: CPython
+       Topic :: Software Development :: Testing
+       Topic :: Utilities
+license = BSD
+description = Pytest plugin for detecting inadvertent open file handles
+long_description = file: README.rst
+keywords = detect, open, file, handle, psutil, pytest, py.test
+
+[options]
+zip_safe = False
+packages = find:
+python_requires = >=2.7
+install_requires = 
+       pytest>=2.8.0
+       psutil
+
+[options.entry_points]
+pytest11 = 
+       pytest_openfiles = pytest_openfiles.plugin
+
+[options.packages.find]
+exclude = 
+       tests
+
+[tool:pytest]
 minversion = 2.8
 testpaths = tests
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-openfiles-0.3.2/setup.py 
new/pytest-openfiles-0.4.0/setup.py
--- old/pytest-openfiles-0.3.2/setup.py 2019-01-07 16:17:04.000000000 +0100
+++ new/pytest-openfiles-0.4.0/setup.py 2019-07-16 03:37:45.000000000 +0200
@@ -1,58 +1,14 @@
 #!/usr/bin/env python
-# Licensed under a 3-clause BSD style license - see LICENSE.rst
-# -*- encoding: utf-8 -*-
 
-import io
-import re
-from glob import glob
-from os.path import basename
-from os.path import dirname
-from os.path import join
-from os.path import splitext
-from setuptools import setup, find_packages
+import sys
+import setuptools
+from distutils.version import LooseVersion
+from setuptools import setup
 
+# Setuptools 30.3.0 or later is needed for setup.cfg options to be used
+if LooseVersion(setuptools.__version__) < LooseVersion('30.3.0'):
+    sys.stderr.write("ERROR: sphinx-automodapi requires setuptools 30.3.0 or "
+                     "later (found {0})".format(setuptools.__version__))
+    sys.exit(1)
 
-def readme():
-    with open('README.rst') as ff:
-        return ff.read()
-
-
-setup(
-    name='pytest-openfiles',
-    version='0.3.2',
-    license='BSD',
-    description='Pytest plugin for detecting inadvertent open file handles',
-    long_description=readme(),
-    author='The Astropy Developers',
-    author_email='[email protected]',
-    url='https://astropy.org',
-    packages=find_packages(exclude=['tests']),
-    include_package_data=True,
-    zip_safe=False,
-    classifiers=[
-        # complete classifier list: 
http://pypi.python.org/pypi?%3Aaction=list_classifiers
-        'Development Status :: 3 - Alpha',
-        'Framework :: Pytest',
-        'Intended Audience :: Developers',
-        'License :: OSI Approved :: BSD License',
-        'Operating System :: OS Independent',
-        'Programming Language :: Python',
-        'Programming Language :: Python :: 2.7',
-        'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.3',
-        'Programming Language :: Python :: 3.4',
-        'Programming Language :: Python :: 3.5',
-        'Programming Language :: Python :: 3.6',
-        'Programming Language :: Python :: Implementation :: CPython',
-        'Topic :: Software Development :: Testing',
-        'Topic :: Utilities',
-    ],
-    keywords=[ 'detect', 'open', 'file', 'handle', 'psutil', 'pytest', 
'py.test' ],
-    install_requires=[ 'pytest>=2.8.0', 'psutil' ],
-    python_requires='>=2.7',
-    entry_points={
-        'pytest11': [
-            'pytest_openfiles = pytest_openfiles.plugin',
-        ],
-    },
-)
+setup()


Reply via email to