Hello community,
here is the log from the commit of package python-nose-exclude for
openSUSE:Factory checked in at 2013-08-15 12:28:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nose-exclude (Old)
and /work/SRC/openSUSE:Factory/.python-nose-exclude.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nose-exclude"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nose-exclude/python-nose-exclude.changes
2013-05-02 11:42:01.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python-nose-exclude.new/python-nose-exclude.changes
2013-08-15 12:28:59.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Aug 13 10:07:11 UTC 2013 - [email protected]
+
+- update to 0.1.10:
+ * add unit tests
+
+-------------------------------------------------------------------
Old:
----
nose-exclude-0.1.9.tar.gz
New:
----
nose-exclude-0.1.10.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-nose-exclude.spec ++++++
--- /var/tmp/diff_new_pack.BNtdLT/_old 2013-08-15 12:29:00.000000000 +0200
+++ /var/tmp/diff_new_pack.BNtdLT/_new 2013-08-15 12:29:00.000000000 +0200
@@ -18,7 +18,7 @@
Name: python-nose-exclude
-Version: 0.1.9
+Version: 0.1.10
Release: 0
Summary: Exclude specific directories from nosetests runs
License: LGPL-2.1+
@@ -26,7 +26,8 @@
Url: https://bitbucket.org/kgrandis/nose-exclude/overview
Source0: nose-exclude-%{version}.tar.gz
BuildRequires: python-devel
-BuildRequires: python-distribute
+BuildRequires: python-nose
+BuildRequires: python-setuptools
Requires: python-nose
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
@@ -45,6 +46,9 @@
%build
python setup.py build
+%check
+python setup.py test
+
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
++++++ nose-exclude-0.1.9.tar.gz -> nose-exclude-0.1.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/MANIFEST.in
new/nose-exclude-0.1.10/MANIFEST.in
--- old/nose-exclude-0.1.9/MANIFEST.in 2011-10-17 02:15:36.000000000 +0200
+++ new/nose-exclude-0.1.10/MANIFEST.in 2013-08-04 03:24:58.000000000 +0200
@@ -1 +1,4 @@
include README.rst
+include tests.py
+include tox.ini
+recursive-include test_dirs *txt *py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/PKG-INFO
new/nose-exclude-0.1.10/PKG-INFO
--- old/nose-exclude-0.1.9/PKG-INFO 2012-09-21 05:22:00.000000000 +0200
+++ new/nose-exclude-0.1.10/PKG-INFO 2013-08-04 20:03:36.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: nose-exclude
-Version: 0.1.9
+Version: 0.1.10
Summary: Exclude specific directories from nosetests runs.
Home-page: http://bitbucket.org/kgrandis/nose-exclude
Author: Kurt Grandis
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/nose_exclude.egg-info/PKG-INFO
new/nose-exclude-0.1.10/nose_exclude.egg-info/PKG-INFO
--- old/nose-exclude-0.1.9/nose_exclude.egg-info/PKG-INFO 2012-09-21
05:21:57.000000000 +0200
+++ new/nose-exclude-0.1.10/nose_exclude.egg-info/PKG-INFO 2013-08-04
20:03:36.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: nose-exclude
-Version: 0.1.9
+Version: 0.1.10
Summary: Exclude specific directories from nosetests runs.
Home-page: http://bitbucket.org/kgrandis/nose-exclude
Author: Kurt Grandis
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/nose_exclude.egg-info/SOURCES.txt
new/nose-exclude-0.1.10/nose_exclude.egg-info/SOURCES.txt
--- old/nose-exclude-0.1.9/nose_exclude.egg-info/SOURCES.txt 2012-09-21
05:21:58.000000000 +0200
+++ new/nose-exclude-0.1.10/nose_exclude.egg-info/SOURCES.txt 2013-08-04
20:03:36.000000000 +0200
@@ -2,10 +2,20 @@
README.rst
nose_exclude.py
setup.py
+tests.py
+tox.ini
nose_exclude.egg-info/PKG-INFO
nose_exclude.egg-info/SOURCES.txt
nose_exclude.egg-info/dependency_links.txt
nose_exclude.egg-info/entry_points.txt
nose_exclude.egg-info/not-zip-safe
nose_exclude.egg-info/requires.txt
-nose_exclude.egg-info/top_level.txt
\ No newline at end of file
+nose_exclude.egg-info/top_level.txt
+test_dirs/exclude_dirs.txt
+test_dirs/exclude_dirs2.txt
+test_dirs/build/test.py
+test_dirs/build2/tests.py
+test_dirs/fish/tests.py
+test_dirs/test_not_me/test.py
+test_dirs/test_yes/tests.py
+test_dirs/test_yes2/tests.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/setup.py
new/nose-exclude-0.1.10/setup.py
--- old/nose-exclude-0.1.9/setup.py 2012-09-21 05:18:52.000000000 +0200
+++ new/nose-exclude-0.1.10/setup.py 2013-08-04 19:57:33.000000000 +0200
@@ -1,10 +1,15 @@
+# Multiprocessing handling to avoid atexit test runner failure
+try:
+ import multiprocessing
+except ImportError:
+ pass
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read().strip()
-VERSION = '0.1.9'
+VERSION = '0.1.10'
setup(
name = "nose-exclude",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/test_dirs/build/test.py
new/nose-exclude-0.1.10/test_dirs/build/test.py
--- old/nose-exclude-0.1.9/test_dirs/build/test.py 1970-01-01
01:00:00.000000000 +0100
+++ new/nose-exclude-0.1.10/test_dirs/build/test.py 2013-08-04
03:01:54.000000000 +0200
@@ -0,0 +1,3 @@
+
+def test_i_should_never_run():
+ assert False
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/test_dirs/build2/tests.py
new/nose-exclude-0.1.10/test_dirs/build2/tests.py
--- old/nose-exclude-0.1.9/test_dirs/build2/tests.py 1970-01-01
01:00:00.000000000 +0100
+++ new/nose-exclude-0.1.10/test_dirs/build2/tests.py 2013-08-04
03:01:54.000000000 +0200
@@ -0,0 +1,3 @@
+
+def test_nothing():
+ assert True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/test_dirs/exclude_dirs.txt
new/nose-exclude-0.1.10/test_dirs/exclude_dirs.txt
--- old/nose-exclude-0.1.9/test_dirs/exclude_dirs.txt 1970-01-01
01:00:00.000000000 +0100
+++ new/nose-exclude-0.1.10/test_dirs/exclude_dirs.txt 2013-08-04
03:01:54.000000000 +0200
@@ -0,0 +1,3 @@
+test_dirs/build
+test_dirs/test_not_me
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/test_dirs/exclude_dirs2.txt
new/nose-exclude-0.1.10/test_dirs/exclude_dirs2.txt
--- old/nose-exclude-0.1.9/test_dirs/exclude_dirs2.txt 1970-01-01
01:00:00.000000000 +0100
+++ new/nose-exclude-0.1.10/test_dirs/exclude_dirs2.txt 2013-08-04
03:01:54.000000000 +0200
@@ -0,0 +1 @@
+test_dirs/build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/test_dirs/fish/tests.py
new/nose-exclude-0.1.10/test_dirs/fish/tests.py
--- old/nose-exclude-0.1.9/test_dirs/fish/tests.py 1970-01-01
01:00:00.000000000 +0100
+++ new/nose-exclude-0.1.10/test_dirs/fish/tests.py 2013-08-04
03:01:54.000000000 +0200
@@ -0,0 +1,3 @@
+
+def test_nothing():
+ return False
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/test_dirs/test_not_me/test.py
new/nose-exclude-0.1.10/test_dirs/test_not_me/test.py
--- old/nose-exclude-0.1.9/test_dirs/test_not_me/test.py 1970-01-01
01:00:00.000000000 +0100
+++ new/nose-exclude-0.1.10/test_dirs/test_not_me/test.py 2013-08-04
03:01:54.000000000 +0200
@@ -0,0 +1,3 @@
+
+def test_i_should_never_run():
+ assert False
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/test_dirs/test_yes/tests.py
new/nose-exclude-0.1.10/test_dirs/test_yes/tests.py
--- old/nose-exclude-0.1.9/test_dirs/test_yes/tests.py 1970-01-01
01:00:00.000000000 +0100
+++ new/nose-exclude-0.1.10/test_dirs/test_yes/tests.py 2013-08-04
03:01:54.000000000 +0200
@@ -0,0 +1,3 @@
+
+def test_please():
+ return True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/test_dirs/test_yes2/tests.py
new/nose-exclude-0.1.10/test_dirs/test_yes2/tests.py
--- old/nose-exclude-0.1.9/test_dirs/test_yes2/tests.py 1970-01-01
01:00:00.000000000 +0100
+++ new/nose-exclude-0.1.10/test_dirs/test_yes2/tests.py 2013-08-04
03:01:54.000000000 +0200
@@ -0,0 +1,3 @@
+
+def test_fish_dont_run():
+ return False
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/tests.py
new/nose-exclude-0.1.10/tests.py
--- old/nose-exclude-0.1.9/tests.py 1970-01-01 01:00:00.000000000 +0100
+++ new/nose-exclude-0.1.10/tests.py 2013-08-04 03:01:54.000000000 +0200
@@ -0,0 +1,101 @@
+import os
+import unittest
+from nose.plugins import PluginTester
+from nose_exclude import NoseExclude
+
+class TestNoseExcludeDirs_Relative_Args(PluginTester, unittest.TestCase):
+ """Test nose-exclude directories using relative paths passed
+ on the commandline via --exclude-dir
+ """
+
+ activate = "--exclude-dir=test_dirs/build"
+ args = ['--exclude-dir=test_dirs/test_not_me']
+ plugins = [NoseExclude()]
+ suitepath = os.path.join(os.getcwd(), 'test_dirs')
+
+ def test_proper_dirs_omitted(self):
+ assert "FAILED" not in self.output
+
+class TestNoseExcludeDirs_Absolute_Args(PluginTester, unittest.TestCase):
+ """Test nose-exclude directories using absolute paths passed
+ on the commandline via --exclude-dir
+ """
+
+ plugins = [NoseExclude()]
+ suitepath = os.path.join(os.getcwd(), 'test_dirs')
+
+ def __init__(self, *args, **kwargs):
+ self.activate = "--exclude-dir=%s" % \
+ os.path.join(self.suitepath, 'build')
+ arg_path = os.path.join(self.suitepath, 'test_not_me')
+ self.args = ['--exclude-dir=%s' % arg_path]
+ super(TestNoseExcludeDirs_Absolute_Args, self).__init__(*args,
**kwargs)
+
+ def test_proper_dirs_omitted(self):
+ assert "FAILED" not in self.output
+
+class TestNoseExcludeDirs_Relative_Args_File(PluginTester, unittest.TestCase):
+ """Test nose-exclude directories using relative paths passed
+ by file using --exclude-dir-file
+ """
+
+ activate = "--exclude-dir-file=test_dirs/exclude_dirs.txt"
+ plugins = [NoseExclude()]
+ suitepath = os.path.join(os.getcwd(), 'test_dirs')
+
+ def test_proper_dirs_omitted(self):
+ assert "FAILED" not in self.output
+
+class TestNoseExcludeDirs_Relative_Args_Mixed(PluginTester, unittest.TestCase):
+ """Test nose-exclude directories using paths passed
+ by file and commandline
+ """
+
+ activate = "--exclude-dir-file=test_dirs/exclude_dirs2.txt"
+ args = ["--exclude-dir=test_dirs/test_not_me"]
+ plugins = [NoseExclude()]
+ suitepath = os.path.join(os.getcwd(), 'test_dirs')
+
+ def test_proper_dirs_omitted(self):
+ assert "FAILED" not in self.output
+
+class TestNoseExcludeEnvVariables(PluginTester, unittest.TestCase):
+ """Test nose-exclude's use of environment variables"""
+
+ #args = ['--exclude-dir=test_dirs/test_not_me']
+ activate = "-v"
+ plugins = [NoseExclude()]
+ suitepath = os.path.join(os.getcwd(), 'test_dirs')
+
+ env = {'NOSE_EXCLUDE_DIRS':'test_dirs/build;test_dirs/test_not_me'}
+
+ def test_proper_dirs_omitted(self):
+ assert "FAILED" not in self.output
+
+class TestNoseExcludeDirsEnvFile(PluginTester, unittest.TestCase):
+ """Test nose-exclude directories using relative paths passed
+ by file specified by environment variable
+ """
+
+ activate = "-v"
+ plugins = [NoseExclude()]
+ env = {'NOSE_EXCLUDE_DIRS_FILE':'test_dirs/exclude_dirs.txt'}
+ suitepath = os.path.join(os.getcwd(), 'test_dirs')
+
+ def test_proper_dirs_omitted(self):
+ assert "FAILED" not in self.output
+
+class TestNoseExcludeDirs_Arg_Does_Not_Exist(PluginTester, unittest.TestCase):
+ """Test nose-exclude directories for a directory that doesn't exist.
+ """
+
+ activate = "--exclude-dir=test_dirs/build"
+ args = ["--exclude-dir=test_dirs/test_not_me \n
--exclude-dir=test_dirs/test_i_dont_exist"]
+ plugins = [NoseExclude()]
+ suitepath = os.path.join(os.getcwd(), 'test_dirs')
+
+ def test_proper_dirs_omitted(self):
+ assert "FAILED" not in self.output
+
+if __name__ == '__main__':
+ unittest.main()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nose-exclude-0.1.9/tox.ini
new/nose-exclude-0.1.10/tox.ini
--- old/nose-exclude-0.1.9/tox.ini 1970-01-01 01:00:00.000000000 +0100
+++ new/nose-exclude-0.1.10/tox.ini 2013-08-04 03:01:54.000000000 +0200
@@ -0,0 +1,7 @@
+[tox]
+envlist = py25,py26,py27
+
+[testenv]
+deps=nose
+commands=
+ python setup.py test
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]