Hello community,

here is the log from the commit of package python-nose-exclude for 
openSUSE:Factory checked in at 2017-03-24 02:22:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nose-exclude (Old)
 and      /work/SRC/openSUSE:Factory/.python-nose-exclude.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nose-exclude"

Fri Mar 24 02:22:33 2017 rev:9 rq:481824 version:0.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nose-exclude/python-nose-exclude.changes  
2015-10-01 09:29:22.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-nose-exclude.new/python-nose-exclude.changes 
    2017-03-24 02:22:34.424261160 +0100
@@ -1,0 +2,8 @@
+Tue Mar 21 15:35:21 UTC 2017 - [email protected]
+
+- update for singlespec
+- update to 0.5.0
+  * minor fixes
+  * support for NOSE_EXCLUDE_TESTS env var
+
+-------------------------------------------------------------------

Old:
----
  nose-exclude-0.4.1.tar.gz

New:
----
  nose-exclude-0.5.0.tar.gz

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

Other differences:
------------------
++++++ python-nose-exclude.spec ++++++
--- /var/tmp/diff_new_pack.v3ig8R/_old  2017-03-24 02:22:34.980182500 +0100
+++ /var/tmp/diff_new_pack.v3ig8R/_new  2017-03-24 02:22:34.980182500 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nose-exclude
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2012 Weberhofer GmbH, Austria
 #
 # All modifications and additions to the file contributed by third parties
@@ -17,24 +17,24 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-nose-exclude
-Version:        0.4.1
+Version:        0.5.0
 Release:        0
 Summary:        Exclude specific directories from nosetests runs
 License:        LGPL-2.1+
 Group:          Development/Languages/Python
 Url:            https://bitbucket.org/kgrandis/nose-exclude/overview
-Source0:        
https://pypi.python.org/packages/source/n/nose-exclude/nose-exclude-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-nose
-BuildRequires:  python-setuptools
+Source0:        
https://files.pythonhosted.org/packages/source/n/nose-exclude/nose-exclude-%{version}.tar.gz
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module nose}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
 Requires:       python-nose
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:      noarch
-%endif
+
+%python_subpackages
 
 %description
 nose-exclude is a Nose plugin that allows you to easily specify
@@ -44,15 +44,15 @@
 %setup -q -n nose-exclude-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %check
-python setup.py -q test
+%python_exec setup.py -q test
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc README.rst
 %{python_sitelib}/*

++++++ nose-exclude-0.4.1.tar.gz -> nose-exclude-0.5.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nose-exclude-0.4.1/PKG-INFO 
new/nose-exclude-0.5.0/PKG-INFO
--- old/nose-exclude-0.4.1/PKG-INFO     2015-08-24 03:23:35.000000000 +0200
+++ new/nose-exclude-0.5.0/PKG-INFO     2016-09-06 20:23:09.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: nose-exclude
-Version: 0.4.1
+Version: 0.5.0
 Summary: Exclude specific directories from nosetests runs.
 Home-page: https://github.com/kgrandis/nose-exclude
 Author: Kurt Grandis
@@ -76,17 +76,18 @@
         
         To exclude test functions:
         
-        ``--exclude-test-module1.module2.test_function``
+        ``--exclude-test=module1.module2.test_function``
         
         
         Using Environment Variables
         ---------------------------
         
-        ``--exclude-dir=`` can be set by the environment variables 
``NOSE_EXCLUDE_DIRS``.
-        Multiple exclude paths may be entered by separating them using a ``;``.
-        The environment variable ``NOSE_EXCLUDE_DIRS_FILE`` when set to the 
path of a
-        file-based exclusion list functions as though it were passed in with 
``--exclude-dir-file=``.
-        
+        ``--exclude-dir=`` and ``--exclude-test=`` can be set by the 
environment
+        variables ``NOSE_EXCLUDE_DIRS`` and ``NOSE_EXCLUDE_TESTS`` 
respectively.
+        Multiple exclude paths may be entered by separating them using a 
``;``. The
+        environment variable ``NOSE_EXCLUDE_DIRS_FILE`` when set to the path 
of a
+        file-based exclusion list functions as though it were passed in with
+        ``--exclude-dir-file=``.
         
         Nose Configuration Files
         ========================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nose-exclude-0.4.1/README.rst 
new/nose-exclude-0.5.0/README.rst
--- old/nose-exclude-0.4.1/README.rst   2015-06-24 07:11:42.000000000 +0200
+++ new/nose-exclude-0.5.0/README.rst   2016-09-06 20:14:44.000000000 +0200
@@ -68,17 +68,18 @@
 
 To exclude test functions:
 
-``--exclude-test-module1.module2.test_function``
+``--exclude-test=module1.module2.test_function``
 
 
 Using Environment Variables
 ---------------------------
 
-``--exclude-dir=`` can be set by the environment variables 
``NOSE_EXCLUDE_DIRS``.
-Multiple exclude paths may be entered by separating them using a ``;``.
-The environment variable ``NOSE_EXCLUDE_DIRS_FILE`` when set to the path of a
-file-based exclusion list functions as though it were passed in with 
``--exclude-dir-file=``.
-
+``--exclude-dir=`` and ``--exclude-test=`` can be set by the environment
+variables ``NOSE_EXCLUDE_DIRS`` and ``NOSE_EXCLUDE_TESTS`` respectively.
+Multiple exclude paths may be entered by separating them using a ``;``. The
+environment variable ``NOSE_EXCLUDE_DIRS_FILE`` when set to the path of a
+file-based exclusion list functions as though it were passed in with
+``--exclude-dir-file=``.
 
 Nose Configuration Files
 ========================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nose-exclude-0.4.1/nose_exclude.egg-info/PKG-INFO 
new/nose-exclude-0.5.0/nose_exclude.egg-info/PKG-INFO
--- old/nose-exclude-0.4.1/nose_exclude.egg-info/PKG-INFO       2015-08-24 
03:23:34.000000000 +0200
+++ new/nose-exclude-0.5.0/nose_exclude.egg-info/PKG-INFO       2016-09-06 
20:23:08.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: nose-exclude
-Version: 0.4.1
+Version: 0.5.0
 Summary: Exclude specific directories from nosetests runs.
 Home-page: https://github.com/kgrandis/nose-exclude
 Author: Kurt Grandis
@@ -76,17 +76,18 @@
         
         To exclude test functions:
         
-        ``--exclude-test-module1.module2.test_function``
+        ``--exclude-test=module1.module2.test_function``
         
         
         Using Environment Variables
         ---------------------------
         
-        ``--exclude-dir=`` can be set by the environment variables 
``NOSE_EXCLUDE_DIRS``.
-        Multiple exclude paths may be entered by separating them using a ``;``.
-        The environment variable ``NOSE_EXCLUDE_DIRS_FILE`` when set to the 
path of a
-        file-based exclusion list functions as though it were passed in with 
``--exclude-dir-file=``.
-        
+        ``--exclude-dir=`` and ``--exclude-test=`` can be set by the 
environment
+        variables ``NOSE_EXCLUDE_DIRS`` and ``NOSE_EXCLUDE_TESTS`` 
respectively.
+        Multiple exclude paths may be entered by separating them using a 
``;``. The
+        environment variable ``NOSE_EXCLUDE_DIRS_FILE`` when set to the path 
of a
+        file-based exclusion list functions as though it were passed in with
+        ``--exclude-dir-file=``.
         
         Nose Configuration Files
         ========================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/nose-exclude-0.4.1/nose_exclude.egg-info/requires.txt 
new/nose-exclude-0.5.0/nose_exclude.egg-info/requires.txt
--- old/nose-exclude-0.4.1/nose_exclude.egg-info/requires.txt   2015-08-24 
03:23:34.000000000 +0200
+++ new/nose-exclude-0.5.0/nose_exclude.egg-info/requires.txt   2016-09-06 
20:23:08.000000000 +0200
@@ -1 +1 @@
-nose
\ No newline at end of file
+nose
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nose-exclude-0.4.1/nose_exclude.py 
new/nose-exclude-0.5.0/nose_exclude.py
--- old/nose-exclude-0.4.1/nose_exclude.py      2015-08-24 03:21:12.000000000 
+0200
+++ new/nose-exclude-0.5.0/nose_exclude.py      2016-09-06 20:14:44.000000000 
+0200
@@ -25,6 +25,10 @@
             exclude_dirs = env.get('NOSE_EXCLUDE_DIRS', '')
             env_dirs.extend(exclude_dirs.split(';'))
 
+        if 'NOSE_EXCLUDE_TESTS' in env:
+            exclude_tests = env.get('NOSE_EXCLUDE_TESTS', '')
+            env_tests.extend(exclude_tests.split(';'))
+
         parser.add_option(
             str("--exclude-dir"), action="append",
             dest="exclude_dirs",
@@ -150,7 +154,7 @@
         try:
             cls = get_method_class(meth)
         except AttributeError:
-            return False
+            return None
 
         fqn = '%s.%s.%s' % (cls.__module__, cls.__name__, meth.__name__)
         if fqn in self.exclude_tests:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nose-exclude-0.4.1/setup.py 
new/nose-exclude-0.5.0/setup.py
--- old/nose-exclude-0.4.1/setup.py     2015-08-24 03:21:12.000000000 +0200
+++ new/nose-exclude-0.5.0/setup.py     2016-09-06 20:14:44.000000000 +0200
@@ -10,7 +10,7 @@
 def read(fname):
     return open(os.path.join(os.path.dirname(__file__), fname)).read().strip()
 
-VERSION = '0.4.1'
+VERSION = '0.5.0'
 
 setup(
     name="nose-exclude",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nose-exclude-0.4.1/tests.py 
new/nose-exclude-0.5.0/tests.py
--- old/nose-exclude-0.4.1/tests.py     2015-08-20 18:23:08.000000000 +0200
+++ new/nose-exclude-0.5.0/tests.py     2016-09-06 20:14:44.000000000 +0200
@@ -144,6 +144,21 @@
         assert 'Ran 3 tests' in self.output
 
 
+class TestNoseExcludeTestsEnvVariables(PluginTester, unittest.TestCase):
+    """Test nose-exclude's use of environment variables"""
+
+    activate = "-v"
+    plugins = [NoseExclude()]
+    suitepath = os.path.join(os.getcwd(), 'test_dirs/unittest')
+    env = {'NOSE_EXCLUDE_TESTS':
+        'test_dirs.unittest.tests.UnitTests.test_a;'
+        'test_dirs.unittest.tests.test_c'
+    }
+
+    def test_test_excluded(self):
+        assert 'Ran 1 test' in self.output
+
+
 class TestNoseExcludeMultipleTest(PluginTester, unittest.TestCase):
     """Test nose-exclude multiple tests"""
 
@@ -224,5 +239,28 @@
     def test_tests_excluded(self):
         assert 'Ran 3 tests' in self.output
 
+
+class TestNoseDoesNotExcludeTestClass(PluginTester, unittest.TestCase):
+    """Test nose-exclude tests by class"""
+
+    activate = "--exclude-test=test_dirs.unittest.test"
+    plugins = [NoseExclude()]
+    suitepath = os.path.join(os.getcwd(), 'test_dirs/unittest')
+
+    def setUp(self):
+        def mock_get_method_class(meth):
+            raise AttributeError('foobar')
+        import nose_exclude
+        self.old_get_method_class = nose_exclude.get_method_class
+        nose_exclude.get_method_class = mock_get_method_class
+        super(TestNoseDoesNotExcludeTestClass, self).setUp()
+
+    def tearDown(self):
+        import nose_exclude
+        nose_exclude.get_method_class = self.old_get_method_class
+
+    def test_tests_not_excluded(self):
+        assert 'Ran 3 tests' in self.output
+
 if __name__ == '__main__':
     unittest.main()


Reply via email to