commit python-unittest2 for openSUSE:Factory

2019-11-04 Thread root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2019-11-04 17:09:47

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new.2990 (New)


Package is "python-unittest2"

Mon Nov  4 17:09:47 2019 rev:21 rq:743973 version:1.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-unittest2/python-unittest2.changes
2019-01-28 20:48:50.129880423 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-unittest2.new.2990/python-unittest2.changes  
2019-11-04 17:09:48.880479597 +0100
@@ -1,0 +2,5 @@
+Thu Oct 17 11:53:11 UTC 2019 - Tomáš Chvátal 
+
+- Remove pyparsing buildignore as the cycle was solved
+
+---



Other differences:
--
++ python-unittest2.spec ++
--- /var/tmp/diff_new_pack.k22o6f/_old  2019-11-04 17:09:49.344480092 +0100
+++ /var/tmp/diff_new_pack.k22o6f/_new  2019-11-04 17:09:49.348480097 +0100
@@ -22,8 +22,7 @@
 Release:0
 Summary:The new features in unittest for Python 2.7 backported to 
Python 2.3+
 License:BSD-3-Clause
-Group:  Development/Languages/Python
-URL:http://pypi.python.org/pypi/unittest2
+URL:https://pypi.python.org/pypi/unittest2
 Source: 
https://files.pythonhosted.org/packages/source/u/unittest2/unittest2-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE relax-argparse.patch
 Patch1: relax-argparse.patch
@@ -32,8 +31,6 @@
 BuildRequires:  %{python_module six}
 BuildRequires:  %{python_module traceback2}
 BuildRequires:  python-rpm-macros
-#!BuildIgnore:  python2-pyparsing
-#!BuildIgnore:  python3-pyparsing
 Requires:   python-six
 Requires:   python-traceback2
 Requires(post): update-alternatives




commit python-unittest2 for openSUSE:Factory

2019-01-28 Thread root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2019-01-28 20:46:39

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new.28833 (New)


Package is "python-unittest2"

Mon Jan 28 20:46:39 2019 rev:20 rq:666821 version:1.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-unittest2/python-unittest2.changes
2018-08-17 23:59:41.402285486 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-unittest2.new.28833/python-unittest2.changes 
2019-01-28 20:48:50.129880423 +0100
@@ -1,0 +2,8 @@
+Thu Jan 17 15:57:46 UTC 2019 - Dominique Leuenberger 
+
+- BuildIgnore python[23]-pyparsing: python-packaging requires it
+  for some actions it could perform, but we don't make use of these
+  here. Ignoring this dependency allows us to break open a
+  BuildCycle.
+
+---



Other differences:
--
++ python-unittest2.spec ++
--- /var/tmp/diff_new_pack.UlWp59/_old  2019-01-28 20:48:50.601879925 +0100
+++ /var/tmp/diff_new_pack.UlWp59/_new  2019-01-28 20:48:50.601879925 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-unittest2
 #
-# 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,7 +12,7 @@
 # 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/
 #
 
 
@@ -23,7 +23,7 @@
 Summary:The new features in unittest for Python 2.7 backported to 
Python 2.3+
 License:BSD-3-Clause
 Group:  Development/Languages/Python
-Url:http://pypi.python.org/pypi/unittest2
+URL:http://pypi.python.org/pypi/unittest2
 Source: 
https://files.pythonhosted.org/packages/source/u/unittest2/unittest2-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE relax-argparse.patch
 Patch1: relax-argparse.patch
@@ -32,6 +32,8 @@
 BuildRequires:  %{python_module six}
 BuildRequires:  %{python_module traceback2}
 BuildRequires:  python-rpm-macros
+#!BuildIgnore:  python2-pyparsing
+#!BuildIgnore:  python3-pyparsing
 Requires:   python-six
 Requires:   python-traceback2
 Requires(post): update-alternatives




commit python-unittest2 for openSUSE:Factory

2018-08-17 Thread root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2018-08-17 23:59:17

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new (New)


Package is "python-unittest2"

Fri Aug 17 23:59:17 2018 rev:19 rq:628572 version:1.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-unittest2/python-unittest2.changes
2017-11-12 17:59:12.131690377 +0100
+++ /work/SRC/openSUSE:Factory/.python-unittest2.new/python-unittest2.changes   
2018-08-17 23:59:41.402285486 +0200
@@ -1,0 +2,5 @@
+Fri Aug 10 10:42:01 UTC 2018 - tchva...@suse.com
+
+- Drop the devel dependency
+
+---



Other differences:
--
++ python-unittest2.spec ++
--- /var/tmp/diff_new_pack.DyOuRQ/_old  2018-08-17 23:59:41.790286641 +0200
+++ /var/tmp/diff_new_pack.DyOuRQ/_new  2018-08-17 23:59:41.790286641 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-unittest2
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -27,7 +27,6 @@
 Source: 
https://files.pythonhosted.org/packages/source/u/unittest2/unittest2-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE relax-argparse.patch
 Patch1: relax-argparse.patch
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module linecache2}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}




commit python-unittest2 for openSUSE:Factory

2017-11-12 Thread root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2017-11-12 17:59:09

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new (New)


Package is "python-unittest2"

Sun Nov 12 17:59:09 2017 rev:18 rq:540246 version:1.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-unittest2/python-unittest2.changes
2017-07-04 11:58:01.632468866 +0200
+++ /work/SRC/openSUSE:Factory/.python-unittest2.new/python-unittest2.changes   
2017-11-12 17:59:12.131690377 +0100
@@ -1,0 +2,5 @@
+Wed Nov  8 16:33:32 UTC 2017 - mplus...@suse.com
+
+- Do not require arparse at all - it is already part of python
+
+---



Other differences:
--
++ python-unittest2.spec ++
--- /var/tmp/diff_new_pack.DpGOup/_old  2017-11-12 17:59:14.019621611 +0100
+++ /var/tmp/diff_new_pack.DpGOup/_new  2017-11-12 17:59:14.023621466 +0100
@@ -20,30 +20,24 @@
 Name:   python-unittest2
 Version:1.1.0
 Release:0
-Url:http://pypi.python.org/pypi/unittest2
 Summary:The new features in unittest for Python 2.7 backported to 
Python 2.3+
 License:BSD-3-Clause
 Group:  Development/Languages/Python
+Url:http://pypi.python.org/pypi/unittest2
 Source: 
https://files.pythonhosted.org/packages/source/u/unittest2/unittest2-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE relax-argparse.patch
 Patch1: relax-argparse.patch
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module linecache2}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
 BuildRequires:  %{python_module traceback2}
-BuildRequires:  python-argparse
 BuildRequires:  python-rpm-macros
-%ifpython2
-Requires:   python-argparse
-%endif
 Requires:   python-six
 Requires:   python-traceback2
 Requires(post): update-alternatives
 Requires(preun): update-alternatives
 BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -68,7 +62,6 @@
 %python_uninstall_alternative unit2
 
 %files %{python_files}
-%defattr(-,root,root,-)
 %doc README.txt
 %python_alternative %{_bindir}/unit2
 %{python_sitelib}/unittest2




commit python-unittest2 for openSUSE:Factory

2017-07-04 Thread root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2017-07-04 11:58:00

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new (New)


Package is "python-unittest2"

Tue Jul  4 11:58:00 2017 rev:17 rq:507902 version:1.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-unittest2/python-unittest2.changes
2017-06-05 18:48:15.742806533 +0200
+++ /work/SRC/openSUSE:Factory/.python-unittest2.new/python-unittest2.changes   
2017-07-04 11:58:01.632468866 +0200
@@ -1,0 +2,5 @@
+Mon Jul  3 15:59:39 UTC 2017 - tbecht...@suse.com
+
+- Fix Source url
+
+---



Other differences:
--
++ python-unittest2.spec ++
--- /var/tmp/diff_new_pack.4HLTRL/_old  2017-07-04 11:58:02.324371496 +0200
+++ /var/tmp/diff_new_pack.4HLTRL/_new  2017-07-04 11:58:02.328370933 +0200
@@ -24,7 +24,7 @@
 Summary:The new features in unittest for Python 2.7 backported to 
Python 2.3+
 License:BSD-3-Clause
 Group:  Development/Languages/Python
-Source: 
http://pypi.python.org/packages/source/u/unittest2/unittest2-%{version}.tar.gz
+Source: 
https://files.pythonhosted.org/packages/source/u/unittest2/unittest2-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE relax-argparse.patch
 Patch1: relax-argparse.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build




commit python-unittest2 for openSUSE:Factory

2017-06-05 Thread root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2017-06-05 18:48:12

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new (New)


Package is "python-unittest2"

Mon Jun  5 18:48:12 2017 rev:16 rq:497146 version:1.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-unittest2/python-unittest2.changes
2017-03-17 15:05:22.575756164 +0100
+++ /work/SRC/openSUSE:Factory/.python-unittest2.new/python-unittest2.changes   
2017-06-05 18:48:15.742806533 +0200
@@ -1,0 +2,6 @@
+Mon May 22 07:19:24 UTC 2017 - tbecht...@suse.com
+
+- Convert to singlespec
+- Add relax-argparse.patch
+
+---

New:

  relax-argparse.patch



Other differences:
--
++ python-unittest2.spec ++
--- /var/tmp/diff_new_pack.SlOk9n/_old  2017-06-05 18:48:17.454565264 +0200
+++ /var/tmp/diff_new_pack.SlOk9n/_new  2017-06-05 18:48:17.454565264 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-unittest2
 Version:1.1.0
 Release:0
@@ -24,25 +25,26 @@
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 Source: 
http://pypi.python.org/packages/source/u/unittest2/unittest2-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE relax-argparse.patch
+Patch1: relax-argparse.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module linecache2}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module six}
+BuildRequires:  %{python_module traceback2}
 BuildRequires:  python-argparse
-BuildRequires:  python-devel
-BuildRequires:  python-linecache2
-BuildRequires:  python-setuptools
-BuildRequires:  python-six
-BuildRequires:  python-traceback2
+BuildRequires:  python-rpm-macros
+%ifpython2
 Requires:   python-argparse
-Requires:   python-linecache2
+%endif
 Requires:   python-six
 Requires:   python-traceback2
 Requires(post): update-alternatives
 Requires(preun): update-alternatives
-Provides:   python2-unittest2
-%if 0%{?suse_version} &&  0%{?suse_version} > 1110
 BuildArch:  noarch
-%else
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%endif
+
+%python_subpackages
 
 %description
 unittest2 is a backport of the new features added to the unittest testing
@@ -50,33 +52,25 @@
 
 %prep
 %setup -q -n unittest2-%{version}
+%patch1 -p1
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-
-# Prepare for update-alternatives usage
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv %{buildroot}%{_bindir}/unit2 %{buildroot}%{_bindir}/unit2-%{py_ver}
-ln -s -f %{_sysconfdir}/alternatives/unit2 %{buildroot}%{_bindir}/unit2
+%python_install
+%python_clone -a %{buildroot}%{_bindir}/unit2
 
 %post
-%_sbindir/update-alternatives \
-   --install %{_bindir}/unit2 unit2 %{_bindir}/unit2-%{py_ver} 30
+%python_install_alternative unit2
 
 %preun
-if [ $1 -eq 0 ] ; then
-%_sbindir/update-alternatives --remove unit2 %{_bindir}/unit2-%{py_ver}
-fi
+%python_uninstall_alternative unit2
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc README.txt
-%{_bindir}/unit2
-%{_bindir}/unit2-%{py_ver}
-%ghost %{_sysconfdir}/alternatives/unit2
+%python_alternative %{_bindir}/unit2
 %{python_sitelib}/unittest2
 %{python_sitelib}/unittest2-%{version}-py*.egg-info
 

++ relax-argparse.patch ++
Index: python-unittest2/unittest2-1.1.0/setup.py
===
--- unittest2-1.1.0/setup.py
+++ unittest2-1.1.0/setup.py
@@ -57,7 +57,7 @@ KEYWORDS = "unittest testing tests".spli
 # Both install and setup requires - because we read VERSION from within the
 # package, and the package also exports all the APIs.
 # six for compat helpers
-REQUIRES = ['argparse', 'six>=1.4', 'traceback2'],
+REQUIRES = ['six>=1.4', 'traceback2'],
 
 params = dict(
 name=NAME,



commit python-unittest2 for openSUSE:Factory

2017-03-17 Thread root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2017-03-17 15:05:21

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new (New)


Package is "python-unittest2"

Fri Mar 17 15:05:21 2017 rev:15 rq:479764 version:1.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-unittest2/python-unittest2.changes
2016-08-22 13:58:49.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-unittest2.new/python-unittest2.changes   
2017-03-17 15:05:22.575756164 +0100
@@ -1,0 +2,6 @@
+Wed Mar 15 14:31:01 UTC 2017 - tbecht...@suse.com
+
+- Add Provides for python2-unittest2 . Needed for the singlespec
+  approach
+
+---



Other differences:
--
++ python-unittest2.spec ++
--- /var/tmp/diff_new_pack.GKgP9x/_old  2017-03-17 15:05:23.227664164 +0100
+++ /var/tmp/diff_new_pack.GKgP9x/_new  2017-03-17 15:05:23.227664164 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-unittest2
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -25,8 +25,8 @@
 Group:  Development/Languages/Python
 Source: 
http://pypi.python.org/packages/source/u/unittest2/unittest2-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
 BuildRequires:  python-argparse
+BuildRequires:  python-devel
 BuildRequires:  python-linecache2
 BuildRequires:  python-setuptools
 BuildRequires:  python-six
@@ -37,6 +37,7 @@
 Requires:   python-traceback2
 Requires(post): update-alternatives
 Requires(preun): update-alternatives
+Provides:   python2-unittest2
 %if 0%{?suse_version} &&  0%{?suse_version} > 1110
 BuildArch:  noarch
 %else




commit python-unittest2 for openSUSE:Factory

2016-08-22 Thread h_root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2016-08-22 13:58:48

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new (New)


Package is "python-unittest2"

Changes:

--- /work/SRC/openSUSE:Factory/python-unittest2/python-unittest2.changes
2015-10-24 10:23:07.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-unittest2.new/python-unittest2.changes   
2016-08-22 13:58:49.0 +0200
@@ -1,0 +2,5 @@
+Mon Aug 15 14:51:56 UTC 2016 - toddrme2...@gmail.com
+
+- Fix update-alternatives implementation.
+
+---



Other differences:
--
++ python-unittest2.spec ++
--- /var/tmp/diff_new_pack.bPX1bG/_old  2016-08-22 13:58:50.0 +0200
+++ /var/tmp/diff_new_pack.bPX1bG/_new  2016-08-22 13:58:50.0 +0200
@@ -36,7 +36,7 @@
 Requires:   python-six
 Requires:   python-traceback2
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(preun): update-alternatives
 %if 0%{?suse_version} &&  0%{?suse_version} > 1110
 BuildArch:  noarch
 %else
@@ -60,16 +60,14 @@
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
 mv %{buildroot}%{_bindir}/unit2 %{buildroot}%{_bindir}/unit2-%{py_ver}
 ln -s -f %{_sysconfdir}/alternatives/unit2 %{buildroot}%{_bindir}/unit2
-# create a dummy target for /etc/alternatives/unit2
-touch %{buildroot}%{_sysconfdir}/alternatives/unit2
 
 %post
-"%_sbindir/update-alternatives" \
+%_sbindir/update-alternatives \
--install %{_bindir}/unit2 unit2 %{_bindir}/unit2-%{py_ver} 30
 
-%postun
+%preun
 if [ $1 -eq 0 ] ; then
-"%_sbindir/update-alternatives" --remove unit2 %{_bindir}/unit2-%{py_ver}
+%_sbindir/update-alternatives --remove unit2 %{_bindir}/unit2-%{py_ver}
 fi
 
 %files




commit python-unittest2 for openSUSE:Factory

2015-10-24 Thread h_root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2015-10-24 10:22:56

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new (New)


Package is "python-unittest2"

Changes:

--- /work/SRC/openSUSE:Factory/python-unittest2/python-unittest2.changes
2014-12-03 22:48:16.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-unittest2.new/python-unittest2.changes   
2015-10-24 10:23:07.0 +0200
@@ -1,0 +2,27 @@
+Tue Oct 13 08:52:12 UTC 2015 - toddrme2...@gmail.com
+
+- Implement update-alternatives
+
+---
+Mon Oct 12 11:10:43 UTC 2015 - toddrme2...@gmail.com
+
+- update to version 1.1.0:
+  * Issue #15836: assertRaises(), assertRaisesRegex(), assertWarns()
+and assertWarnsRegex() assertments now check the type of the first
+argument to prevent possible user error. Based on patch by Daniel
+Wagner-Hall.
+  * Issue #24134: assertRaises(), assertRaisesRegex(), assertWarns()
+and assertWarnsRegex() checks now emits a deprecation warning when
+callable is None or keyword arguments except msg is passed in the
+context manager mode.
+  * Issue #22903: The fake test case created by unittest.loader when
+it fails importing a test module is now picklable.
+- update to version 1.0.1:
+  * Unittest2 issue #94: Need at least 1.4 of six.
+- update to version 1.0.0:
+  * Issue #22936: Permit showing local variables in tracebacks.
+- specfile:
+  * added traceback2, linecache2 requirement
+  * Implement update-alternatives
+
+---

Old:

  unittest2-0.8.0.tar.gz

New:

  unittest2-1.1.0.tar.gz



Other differences:
--
++ python-unittest2.spec ++
--- /var/tmp/diff_new_pack.UUjW5W/_old  2015-10-24 10:23:08.0 +0200
+++ /var/tmp/diff_new_pack.UUjW5W/_new  2015-10-24 10:23:08.0 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   python-unittest2
-Version:0.8.0
+Version:1.1.0
 Release:0
 Url:http://pypi.python.org/pypi/unittest2
 Summary:The new features in unittest for Python 2.7 backported to 
Python 2.3+
@@ -25,19 +25,23 @@
 Group:  Development/Languages/Python
 Source: 
http://pypi.python.org/packages/source/u/unittest2/unittest2-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-argparse
 BuildRequires:  python-devel
-BuildRequires:  python-distribute
+BuildRequires:  python-argparse
+BuildRequires:  python-linecache2
+BuildRequires:  python-setuptools
 BuildRequires:  python-six
+BuildRequires:  python-traceback2
 Requires:   python-argparse
+Requires:   python-linecache2
 Requires:   python-six
-%if 0%{?suse_version}
-%py_requires
-%if 0%{?suse_version} > 1110
+Requires:   python-traceback2
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%if 0%{?suse_version} &&  0%{?suse_version} > 1110
 BuildArch:  noarch
+%else
+%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
 %endif
-%endif
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 %description
 unittest2 is a backport of the new features added to the unittest testing
@@ -52,11 +56,29 @@
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
+# Prepare for update-alternatives usage
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+mv %{buildroot}%{_bindir}/unit2 %{buildroot}%{_bindir}/unit2-%{py_ver}
+ln -s -f %{_sysconfdir}/alternatives/unit2 %{buildroot}%{_bindir}/unit2
+# create a dummy target for /etc/alternatives/unit2
+touch %{buildroot}%{_sysconfdir}/alternatives/unit2
+
+%post
+"%_sbindir/update-alternatives" \
+   --install %{_bindir}/unit2 unit2 %{_bindir}/unit2-%{py_ver} 30
+
+%postun
+if [ $1 -eq 0 ] ; then
+"%_sbindir/update-alternatives" --remove unit2 %{_bindir}/unit2-%{py_ver}
+fi
+
 %files
 %defattr(-,root,root,-)
 %doc README.txt
-%{_bindir}/unit2*
+%{_bindir}/unit2
+%{_bindir}/unit2-%{py_ver}
+%ghost %{_sysconfdir}/alternatives/unit2
 %{python_sitelib}/unittest2
-%{python_sitelib}/unittest2-%{version}-py%{py_ver}.egg-info
+%{python_sitelib}/unittest2-%{version}-py*.egg-info
 
 %changelog

++ unittest2-0.8.0.tar.gz -> unittest2-1.1.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unittest2-0.8.0/PKG-INFO new/unittest2-1.1.0/PKG-INFO
--- old/unittest2-0.8.0/PKG-INFO2014-11-04 

commit python-unittest2 for openSUSE:Factory

2014-12-03 Thread h_root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2014-12-03 22:47:55

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new (New)


Package is python-unittest2

Changes:

--- /work/SRC/openSUSE:Factory/python-unittest2/python-unittest2.changes
2012-08-14 14:26:59.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-unittest2.new/python-unittest2.changes   
2014-12-03 22:48:16.0 +0100
@@ -1,0 +2,26 @@
+Mon Dec  1 16:52:50 UTC 2014 - rha...@suse.com
+
+- Update to 0.8
+  * Issue #22457: Honour load_tests in the start_dir of discovery.
+  * 0.7.1:
+- Fix for 0.7.0 being broken. Also switches from both manual and entrypoint
+  scripts to just entrypoint scripts to reduce the possibility of similar
+  oversights in future.
+  * 0.7.0
+- This release contains backports from cPython 3.5 of all (I think) commits
+  since 2010, as of today.
+  * 0.6.0
+- Changed supported Python versions to start at 2.6, and include all 
released
+  3.x and pypy. (Robert Collins)
+- Invoking `unit2` without args starts test discovery
+- Added `TestCase.assertWarns` and `TestCase.assertWarnsRegexp` context
+  managers
+- Fix Python issue 9926. TestSuite subclasses that override __call__ are
+  called correctly.
+- Removed unused `maxDiff` parameter from `TestCase.assertSequenceEqual`.
+- DeprecationWarning for unsupported result objects (missing addSkip
+  method) became RuntimeWarning.
+- Addition of `TestCase.assertWarns` as a context manager. 
+- removed py3k tarball, was not used and does not exist for 0.8.0 anymore
+
+---

Old:

  unittest2-0.5.1.tar.gz
  unittest2py3k-0.5.1.tar.gz

New:

  unittest2-0.8.0.tar.gz



Other differences:
--
++ python-unittest2.spec ++
--- /var/tmp/diff_new_pack.yZkPqk/_old  2014-12-03 22:48:17.0 +0100
+++ /var/tmp/diff_new_pack.yZkPqk/_new  2014-12-03 22:48:17.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-unittest2
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:   python-unittest2
-Version:0.5.1
+Version:0.8.0
 Release:0
 Url:http://pypi.python.org/pypi/unittest2
 Summary:The new features in unittest for Python 2.7 backported to 
Python 2.3+
@@ -25,7 +25,12 @@
 Group:  Development/Languages/Python
 Source: 
http://pypi.python.org/packages/source/u/unittest2/unittest2-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  python-argparse
 BuildRequires:  python-devel
+BuildRequires:  python-distribute
+BuildRequires:  python-six
+Requires:   python-argparse
+Requires:   python-six
 %if 0%{?suse_version}
 %py_requires
 %if 0%{?suse_version}  1110

++ unittest2-0.5.1.tar.gz - unittest2-0.8.0.tar.gz ++
 9197 lines of diff (skipped)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-unittest2 for openSUSE:Factory

2013-06-24 Thread h_root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2013-06-24 11:04:23

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new (New)


Package is python-unittest2

Changes:


Old:

  python3-unittest2.changes
  python3-unittest2.spec



Other differences:
--
++ python-unittest2.spec ++
--- /var/tmp/diff_new_pack.wtrzgf/_old  2013-06-24 11:04:24.0 +0200
+++ /var/tmp/diff_new_pack.wtrzgf/_new  2013-06-24 11:04:24.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-unittest2
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,10 +16,9 @@
 #
 
 
-
 Name:   python-unittest2
 Version:0.5.1
-Release:1
+Release:0
 Url:http://pypi.python.org/pypi/unittest2
 Summary:The new features in unittest for Python 2.7 backported to 
Python 2.3+
 License:BSD-3-Clause

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-unittest2 for openSUSE:Factory

2012-11-28 Thread h_root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2012-11-28 14:35:15

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new (New)


Package is python-unittest2, Maintainer is r...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/python-unittest2/python3-unittest2.changes   
2012-08-14 14:26:59.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-unittest2.new/python3-unittest2.changes  
2012-11-28 14:35:18.0 +0100
@@ -1,0 +2,5 @@
+Thu Nov 22 14:18:55 UTC 2012 - toddrme2...@gmail.com
+
+- Removed openSUSE 11.4 spec file workarounds
+
+---



Other differences:
--
++ python3-unittest2.spec ++
--- /var/tmp/diff_new_pack.Tqq0Xi/_old  2012-11-28 14:35:19.0 +0100
+++ /var/tmp/diff_new_pack.Tqq0Xi/_new  2012-11-28 14:35:19.0 +0100
@@ -27,14 +27,7 @@
 Source: 
http://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python3-devel
-%if 0%{?suse_version}  0%{?suse_version} = 1140
-%{!?python3_sitelib: %global python3_sitelib %(python3 -c from 
distutils.sysconfig import get_python_lib; print(get_python_lib()))}
-%{!?py3_ver: %global py3_ver %(python3 -c import sys; 
version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); 
print(version) 2/dev/null || echo PYTHON-NOT-FOUND)}
-%endif
 Requires:   python(abi) = %{py3_ver}
-%if 0%{?suse_version}  0%{?suse_version}  1140
-BuildRequires:  python3-base
-%endif
 
 %if %{?suse_version: %{suse_version}  1110} %{!?suse_version:1}
 BuildArchitectures: noarch
@@ -59,9 +52,5 @@
 %{_bindir}/unit2-python%{py3_ver}*
 %{python3_sitelib}/unittest2/
 %{python3_sitelib}/unittest2py3k-%{version}-py%{py3_ver}.egg-info
-%if 0%{?suse_version} = 1140
-%dir %{_prefix}/lib/python%{py3_ver}
-%dir %{python3_sitelib}
-%endif
 
 %changelog

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-unittest2 for openSUSE:Factory

2012-08-14 Thread h_root
Hello community,

here is the log from the commit of package python-unittest2 for 
openSUSE:Factory checked in at 2012-08-14 14:26:55

Comparing /work/SRC/openSUSE:Factory/python-unittest2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-unittest2.new (New)


Package is python-unittest2, Maintainer is r...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/python-unittest2/python-unittest2.changes
2011-09-23 12:43:19.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-unittest2.new/python-unittest2.changes   
2012-08-14 14:26:59.0 +0200
@@ -1,0 +2,6 @@
+Sat Jun  9 03:33:51 UTC 2012 - highwaystar...@gmail.com
+
+- python3 package added 
+- spec file improved (files section)
+
+---
New Changes file:

--- /dev/null   2012-08-03 19:43:57.387656292 +0200
+++ /work/SRC/openSUSE:Factory/.python-unittest2.new/python3-unittest2.changes  
2012-08-14 14:26:59.0 +0200
@@ -0,0 +1,10 @@
+---
+Mon Aug 13 09:15:09 UTC 2012 - toddrme2...@gmail.com
+
+- Fixed source URL
+
+---
+Sat Jun  9 03:34:08 UTC 2012 - highwaystar...@gmail.com
+
+- python3 package added 
+

New:

  python3-unittest2.changes
  python3-unittest2.spec
  unittest2py3k-0.5.1.tar.gz



Other differences:
--
++ python-unittest2.spec ++
--- /var/tmp/diff_new_pack.4tFiba/_old  2012-08-14 14:27:00.0 +0200
+++ /var/tmp/diff_new_pack.4tFiba/_new  2012-08-14 14:27:00.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-unittest2
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -52,6 +52,7 @@
 %defattr(-,root,root,-)
 %doc README.txt
 %{_bindir}/unit2*
-%{python_sitelib}/*
+%{python_sitelib}/unittest2
+%{python_sitelib}/unittest2-%{version}-py%{py_ver}.egg-info
 
 %changelog

++ python3-unittest2.spec ++
#
# spec file for package python3-unittest2
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An Open Source License is a
# 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/
#



Name:   python3-unittest2
Version:0.5.1
Release:1
Url:http://pypi.python.org/pypi/unittest2
Summary:The new features in unittest for Python 2.7 backported to 
Python 2.3+
License:BSD-3-Clause
Group:  Development/Languages/Python
Source: 
http://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-%{version}.tar.gz
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python3-devel
%if 0%{?suse_version}  0%{?suse_version} = 1140
%{!?python3_sitelib: %global python3_sitelib %(python3 -c from 
distutils.sysconfig import get_python_lib; print(get_python_lib()))}
%{!?py3_ver: %global py3_ver %(python3 -c import sys; 
version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); 
print(version) 2/dev/null || echo PYTHON-NOT-FOUND)}
%endif
Requires:   python(abi) = %{py3_ver}
%if 0%{?suse_version}  0%{?suse_version}  1140
BuildRequires:  python3-base
%endif

%if %{?suse_version: %{suse_version}  1110} %{!?suse_version:1}
BuildArchitectures: noarch
%endif
%description
unittest2 is a backport of the new features added to the unittest testing
framework in Python 2.7. It is tested to run on Python 2.4 - 2.7.

%prep
%setup -q -n unittest2py3k-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
mv %{buildroot}%{_bindir}/unit2 %{buildroot}%{_bindir}/unit2-python%{py3_ver}
mv %{buildroot}%{_bindir}/unit2.py 
%{buildroot}%{_bindir}/unit2-python%{py3_ver}.py
%files
%defattr(-,root,root,-)
%doc README.txt
%{_bindir}/unit2-python%{py3_ver}*
%{python3_sitelib}/unittest2/
%{python3_sitelib}/unittest2py3k-%{version}-py%{py3_ver}.egg-info
%if 0%{?suse_version} = 1140
%dir %{_prefix}/lib/python%{py3_ver}
%dir %{python3_sitelib}
%endif

%changelog
-- 
To unsubscribe,