commit python-csvkit for openSUSE:Factory

2020-05-28 Thread root
Hello community,

here is the log from the commit of package python-csvkit for openSUSE:Factory 
checked in at 2020-05-28 09:20:02

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


Package is "python-csvkit"

Thu May 28 09:20:02 2020 rev:11 rq:809605 version:1.0.5

Changes:

--- /work/SRC/openSUSE:Factory/python-csvkit/python-csvkit.changes  
2020-04-23 18:38:13.268981173 +0200
+++ /work/SRC/openSUSE:Factory/.python-csvkit.new.3606/python-csvkit.changes
2020-05-28 09:20:04.273291448 +0200
@@ -1,0 +2,5 @@
+Wed May 27 09:36:51 UTC 2020 - Petr Gajdos 
+
+- %python3_only -> %python_alternative
+
+---



Other differences:
--
++ python-csvkit.spec ++
--- /var/tmp/diff_new_pack.9B8pVe/_old  2020-05-28 09:20:05.137293031 +0200
+++ /var/tmp/diff_new_pack.9B8pVe/_new  2020-05-28 09:20:05.141293038 +0200
@@ -17,6 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define binaries csvclean csvcut csvformat csvgrep csvjoin csvjson csvlook 
csvpy csvsort csvsql csvstack csvstat in2csv sql2csv
 %define skip_python2 1
 Name:   python-csvkit
 Version:1.0.5
@@ -43,8 +44,9 @@
 BuildRequires:  %{python_module xlrd >= 0.9.2}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -62,16 +64,42 @@
 
 %install
 %python_install
+for b in %{binaries}; do
+  %python_clone -a %{buildroot}%{_bindir}/$b
+done
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 export LANG=en_US.UTF-8
 %python_exec -m unittest discover -s tests/ -v 
 
-%files %python_files
+%post
+for b in %{binaries}; do
+  %python_install_alternative $b
+done
+
+%postun
+for b in %{binaries}; do
+  %python_uninstall_alternative $b
+done
+
+%files %{python_files}
 %license COPYING
 %doc AUTHORS.rst CHANGELOG.rst README.rst
-%python3_only %{_bindir}/*
+%python_alternative %{_bindir}/csvclean
+%python_alternative %{_bindir}/csvcut
+%python_alternative %{_bindir}/csvformat
+%python_alternative %{_bindir}/csvgrep
+%python_alternative %{_bindir}/csvjoin
+%python_alternative %{_bindir}/csvjson
+%python_alternative %{_bindir}/csvlook
+%python_alternative %{_bindir}/csvpy
+%python_alternative %{_bindir}/csvsort
+%python_alternative %{_bindir}/csvsql
+%python_alternative %{_bindir}/csvstack
+%python_alternative %{_bindir}/csvstat
+%python_alternative %{_bindir}/in2csv
+%python_alternative %{_bindir}/sql2csv
 %{python_sitelib}/csvkit-%{version}-py*.egg-info
 %{python_sitelib}/csvkit/
 




commit python-csvkit for openSUSE:Factory

2020-04-23 Thread root
Hello community,

here is the log from the commit of package python-csvkit for openSUSE:Factory 
checked in at 2020-04-23 18:38:11

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


Package is "python-csvkit"

Thu Apr 23 18:38:11 2020 rev:10 rq:796508 version:1.0.5

Changes:

--- /work/SRC/openSUSE:Factory/python-csvkit/python-csvkit.changes  
2020-03-26 23:35:15.658818084 +0100
+++ /work/SRC/openSUSE:Factory/.python-csvkit.new.2738/python-csvkit.changes
2020-04-23 18:38:13.268981173 +0200
@@ -1,0 +2,5 @@
+Thu Apr 23 11:11:44 UTC 2020 - Tomáš Chvátal 
+
+- Drop py2 deps as it works only on py3 atm
+
+---



Other differences:
--
++ python-csvkit.spec ++
--- /var/tmp/diff_new_pack.y3HZf4/_old  2020-04-23 18:38:14.236983025 +0200
+++ /var/tmp/diff_new_pack.y3HZf4/_new  2020-04-23 18:38:14.240983032 +0200
@@ -43,10 +43,6 @@
 BuildRequires:  %{python_module xlrd >= 0.9.2}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-# SECTION test requirements
-BuildRequires:  %{python_module coverage >= 3.5.1b1}
-BuildRequires:  python-mock >= 1.3.0
-# /SECTION
 BuildArch:  noarch
 
 %python_subpackages




commit python-csvkit for openSUSE:Factory

2020-03-26 Thread root
Hello community,

here is the log from the commit of package python-csvkit for openSUSE:Factory 
checked in at 2020-03-26 23:34:42

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


Package is "python-csvkit"

Thu Mar 26 23:34:42 2020 rev:9 rq:788551 version:1.0.5

Changes:

--- /work/SRC/openSUSE:Factory/python-csvkit/python-csvkit.changes  
2019-12-03 12:42:53.110124395 +0100
+++ /work/SRC/openSUSE:Factory/.python-csvkit.new.3160/python-csvkit.changes
2020-03-26 23:35:15.658818084 +0100
@@ -1,0 +2,10 @@
+Thu Mar 26 12:32:47 UTC 2020 - Paolo Stivanin 
+
+- update to v1.0.5
+  * dropped py 3.4 support
+  * fix tests
+  * minor fixes
+
+- switch from nose to unittest
+
+---

Old:

  csvkit-1.0.4.tar.gz

New:

  csvkit-1.0.5.tar.gz



Other differences:
--
++ python-csvkit.spec ++
--- /var/tmp/diff_new_pack.8leUJf/_old  2020-03-26 23:35:16.130818255 +0100
+++ /var/tmp/diff_new_pack.8leUJf/_new  2020-03-26 23:35:16.130818255 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-csvkit
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,12 +19,12 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:   python-csvkit
-Version:1.0.4
+Version:1.0.5
 Release:0
 Summary:A library of utilities for working with CSV
 License:MIT
 Group:  Development/Languages/Python
-Url:https://github.com/wireservice/csvkit
+URL:https://github.com/wireservice/csvkit
 Source: 
https://files.pythonhosted.org/packages/source/c/csvkit/csvkit-%{version}.tar.gz
 BuildRequires:  %{python_module SQLAlchemy >= 0.9.3}
 BuildRequires:  %{python_module Sphinx >= 1.0.7}
@@ -45,7 +45,6 @@
 BuildRequires:  python-rpm-macros
 # SECTION test requirements
 BuildRequires:  %{python_module coverage >= 3.5.1b1}
-BuildRequires:  %{python_module nose >= 1.1.2} 
 BuildRequires:  python-mock >= 1.3.0
 # /SECTION
 BuildArch:  noarch
@@ -71,8 +70,7 @@
 
 %check
 export LANG=en_US.UTF-8
-# gh#wireservice/csvkit#1027
-%python_expand nosetests-%{$python_bin_suffix} -v -e 
'test_(before_after_insert|linenumbers|no_header_row|unicode)'
+%python_exec -m unittest discover -s tests/ -v 
 
 %files %python_files
 %license COPYING

++ csvkit-1.0.4.tar.gz -> csvkit-1.0.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/csvkit-1.0.4/AUTHORS.rst new/csvkit-1.0.5/AUTHORS.rst
--- old/csvkit-1.0.4/AUTHORS.rst2018-11-21 19:27:32.0 +0100
+++ new/csvkit-1.0.5/AUTHORS.rst2019-11-29 22:51:50.0 +0100
@@ -90,3 +90,6 @@
 * Connor McArthur
 * Matěj Cepl
 * Nicholas Matteo
+* Matt Giguere
+* Felix Bünemann
+* Андрій Орєхов
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/csvkit-1.0.4/CHANGELOG.rst 
new/csvkit-1.0.5/CHANGELOG.rst
--- old/csvkit-1.0.4/CHANGELOG.rst  2019-03-16 17:25:56.0 +0100
+++ new/csvkit-1.0.5/CHANGELOG.rst  2020-03-03 03:59:45.0 +0100
@@ -1,3 +1,19 @@
+1.0.5 - March 2, 2020
+-
+
+Changes:
+
+* Dropped Python 3.4 support (end-of-life was March 18, 2019).
+
+Improvements:
+
+* Output error message for memory error even if not :code:`--verbose`.
+
+Fixes:
+
+* Fix regression in 1.0.4, which caused numbers like ``4.5`` to be parsed as 
dates.
+* :doc:`/scripts/in2csv` Fix error reporting if :code:`--names` used with 
non-Excel file.
+
 1.0.4 - March 16, 2019
 --
 
@@ -183,8 +199,8 @@
 * Fix broken csvkit module documentation. (#327)
 * Fix version of openpyxl to work around encoding issue. (#391, #288)
 
-0.9.0
--
+0.9.0 - September 8, 2014
+-
 
 * Write missing sections of the tutorial. (#32)
 * Remove -q arg from sql2csv (conflicts with common flag).
@@ -206,8 +222,8 @@
 * Implement csvformat.
 * Fix bug causing CSVKitDictWriter to output 'utf-8' for blank fields.
 
-0.8.0
--
+0.8.0 - July 27, 2014
+-
 
 * Add pnaimoli to AUTHORS.
 * Fix column specification in csvstat. (#236)
@@ -217,8 +233,8 @@
 * Deprecated DBF support for Python 3+.
 * Add support for Python 3.3 and 3.4 (#239)
 
-0.7.3
--
+0.7.3 - April 27, 2014
+--
 
 * Fix date handling with openpyxl > 2.0 (#285)
 * Add Kristina Durivage to AUTHORS. (#243)
@@ -233,18 +249,18 @@
 * Add Ryan 

commit python-csvkit for openSUSE:Factory

2019-12-03 Thread root
Hello community,

here is the log from the commit of package python-csvkit for openSUSE:Factory 
checked in at 2019-12-03 12:42:25

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


Package is "python-csvkit"

Tue Dec  3 12:42:25 2019 rev:8 rq:752973 version:1.0.4

Changes:

--- /work/SRC/openSUSE:Factory/python-csvkit/python-csvkit.changes  
2019-04-30 13:04:00.270060478 +0200
+++ /work/SRC/openSUSE:Factory/.python-csvkit.new.4691/python-csvkit.changes
2019-12-03 12:42:53.110124395 +0100
@@ -1,0 +2,5 @@
+Mon Dec  2 15:50:51 UTC 2019 - Todd R 
+
+- Drop python2 support due to dependencies dropping python2 support
+
+---



Other differences:
--
++ python-csvkit.spec ++
--- /var/tmp/diff_new_pack.uAr3RZ/_old  2019-12-03 12:42:53.726124224 +0100
+++ /var/tmp/diff_new_pack.uAr3RZ/_new  2019-12-03 12:42:53.726124224 +0100
@@ -17,6 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
 Name:   python-csvkit
 Version:1.0.4
 Release:0




commit python-csvkit for openSUSE:Factory

2019-04-30 Thread root
Hello community,

here is the log from the commit of package python-csvkit for openSUSE:Factory 
checked in at 2019-04-30 13:03:57

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


Package is "python-csvkit"

Tue Apr 30 13:03:57 2019 rev:7 rq:697761 version:1.0.4

Changes:

--- /work/SRC/openSUSE:Factory/python-csvkit/python-csvkit.changes  
2019-03-26 15:44:29.356145108 +0100
+++ /work/SRC/openSUSE:Factory/.python-csvkit.new.5536/python-csvkit.changes
2019-04-30 13:04:00.270060478 +0200
@@ -1,0 +2,5 @@
+Wed Apr 24 16:28:27 CEST 2019 - Matej Cepl 
+
+- boo#1133137: Fix FTBFS python-csvkit (failing tests 
gh#wireservice/csvkit#1027)
+
+---



Other differences:
--
++ python-csvkit.spec ++
--- /var/tmp/diff_new_pack.VMOhPX/_old  2019-04-30 13:04:01.070059101 +0200
+++ /var/tmp/diff_new_pack.VMOhPX/_new  2019-04-30 13:04:01.070059101 +0200
@@ -70,7 +70,8 @@
 
 %check
 export LANG=en_US.UTF-8
-%python_expand nosetests-%{$python_bin_suffix} -v
+# gh#wireservice/csvkit#1027
+%python_expand nosetests-%{$python_bin_suffix} -v -e 
'test_(before_after_insert|linenumbers|no_header_row|unicode)'
 
 %files %python_files
 %license COPYING




commit python-csvkit for openSUSE:Factory

2019-03-26 Thread root
Hello community,

here is the log from the commit of package python-csvkit for openSUSE:Factory 
checked in at 2019-03-26 15:44:11

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


Package is "python-csvkit"

Tue Mar 26 15:44:11 2019 rev:6 rq:688143 version:1.0.4

Changes:

--- /work/SRC/openSUSE:Factory/python-csvkit/python-csvkit.changes  
2019-02-27 15:10:10.146373292 +0100
+++ /work/SRC/openSUSE:Factory/.python-csvkit.new.25356/python-csvkit.changes   
2019-03-26 15:44:29.356145108 +0100
@@ -1,0 +2,11 @@
+Mon Mar 25 09:07:40 UTC 2019 - Tomáš Chvátal 
+
+- Update to 1.0.4:
+  * Dropped Python 3.3 support (end-of-life was September 29, 2017).
+  * :doc:`/scripts/csvsql` adds a --chunk-size option to set the chunk size 
when batch inserting into a table.
+  * csvkit is now tested against Python 3.7.
+  * Dates and datetimes without punctuation can be parsed with --date-format 
and datetime-format.
+  * Error messages about column indices use 1-based numbering unless --zero is 
set.
+- Remove merged patch remove-unittest2.patch
+
+---

Old:

  csvkit-1.0.3.tar.gz
  remove-unittest2.patch

New:

  csvkit-1.0.4.tar.gz



Other differences:
--
++ python-csvkit.spec ++
--- /var/tmp/diff_new_pack.xikxWi/_old  2019-03-26 15:44:30.408143876 +0100
+++ /var/tmp/diff_new_pack.xikxWi/_new  2019-03-26 15:44:30.408143876 +0100
@@ -18,15 +18,13 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-csvkit
-Version:1.0.3
+Version:1.0.4
 Release:0
 Summary:A library of utilities for working with CSV
 License:MIT
 Group:  Development/Languages/Python
 Url:https://github.com/wireservice/csvkit
 Source: 
https://files.pythonhosted.org/packages/source/c/csvkit/csvkit-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM https://github.com/wireservice/csvkit/pull/979 
mc...@suse.cz
-Patch0: remove-unittest2.patch
 BuildRequires:  %{python_module SQLAlchemy >= 0.9.3}
 BuildRequires:  %{python_module Sphinx >= 1.0.7}
 BuildRequires:  %{python_module aenum}
@@ -60,7 +58,6 @@
 
 %prep
 %setup -q -n csvkit-%{version}
-%autopatch -p1
 # find and remove unneeded shebangs
 find csvkit -name "*.py" | xargs sed -i '1 {/^#!/ d}'
 
@@ -73,7 +70,7 @@
 
 %check
 export LANG=en_US.UTF-8
-%python_expand nosetests-%{$python_bin_suffix}
+%python_expand nosetests-%{$python_bin_suffix} -v
 
 %files %python_files
 %license COPYING

++ csvkit-1.0.3.tar.gz -> csvkit-1.0.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/csvkit-1.0.3/AUTHORS.rst new/csvkit-1.0.4/AUTHORS.rst
--- old/csvkit-1.0.3/AUTHORS.rst2018-03-11 15:51:56.0 +0100
+++ new/csvkit-1.0.4/AUTHORS.rst2018-11-21 19:27:32.0 +0100
@@ -85,3 +85,8 @@
 * Forest Gregg
 * Aliaksei Urbanski
 * Reid Beels
+* Rodrigo Lemos
+* Victor Noagbodji
+* Connor McArthur
+* Matěj Cepl
+* Nicholas Matteo
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/csvkit-1.0.3/CHANGELOG.rst 
new/csvkit-1.0.4/CHANGELOG.rst
--- old/csvkit-1.0.3/CHANGELOG.rst  2018-03-11 16:11:38.0 +0100
+++ new/csvkit-1.0.4/CHANGELOG.rst  2019-03-16 17:25:56.0 +0100
@@ -1,3 +1,28 @@
+1.0.4 - March 16, 2019
+--
+
+Changes:
+
+* Dropped Python 3.3 support (end-of-life was September 29, 2017).
+
+Improvements:
+
+* :doc:`/scripts/csvsql` adds a :code:`--chunk-size` option to set the chunk 
size when batch inserting into a table.
+* csvkit is now tested against Python 3.7.
+
+Fixes:
+
+* :code:`--names` works with :code:`--skip-lines`.
+* Dates and datetimes without punctuation can be parsed with 
:code:`--date-format` and :code:`datetime-format`.
+* Error messages about column indices use 1-based numbering unless 
:code:`--zero` is set.
+* :doc:`/scripts/csvcut` no longer errors on :code:`--delete-empty-rows` with 
short rows.
+* :doc:`/scripts/csvjoin` no longer errors if given a single file.
+* :doc:`/scripts/csvsql` supports UPDATE commands.
+* :doc:`/scripts/csvstat` no longer errors on non-finite numbers.
+* :doc:`/scripts/csvstat` respects all command-line arguments when 
:code:`--count` is set.
+* :doc:`/scripts/in2csv` CSV-to-CSV conversion respects :code:`--linenumbers` 
when buffering.
+* :doc:`/scripts/in2csv` writes XLS sheets without encoding errors in Python 2.
+
 1.0.3 - March 11, 2018
 --
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/csvkit-1.0.3/PKG-INFO 

commit python-csvkit for openSUSE:Factory

2019-02-27 Thread root
Hello community,

here is the log from the commit of package python-csvkit for openSUSE:Factory 
checked in at 2019-02-27 15:10:08

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


Package is "python-csvkit"

Wed Feb 27 15:10:08 2019 rev:5 rq:679753 version:1.0.3

Changes:

--- /work/SRC/openSUSE:Factory/python-csvkit/python-csvkit.changes  
2018-08-13 09:55:37.082987295 +0200
+++ /work/SRC/openSUSE:Factory/.python-csvkit.new.28833/python-csvkit.changes   
2019-02-27 15:10:10.146373292 +0100
@@ -1,0 +2,5 @@
+Wed Feb 27 08:42:06 UTC 2019 - Tomáš Chvátal 
+
+- Remove devel dependency and do not use symlinks on fdupes call
+
+---



Other differences:
--
++ python-csvkit.spec ++
--- /var/tmp/diff_new_pack.9gg5Ig/_old  2019-02-27 15:10:12.054372675 +0100
+++ /var/tmp/diff_new_pack.9gg5Ig/_new  2019-02-27 15:10:12.078372668 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-csvkit
 #
-# 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/
 #
 
 
@@ -35,7 +35,6 @@
 BuildRequires:  %{python_module agate-excel >= 0.2.2}
 BuildRequires:  %{python_module agate-sql >= 0.5.3}
 BuildRequires:  %{python_module dbf >= 0.9.3}
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module et_xmlfile}
 BuildRequires:  %{python_module jdcal}
 BuildRequires:  %{python_module openpyxl >= 2.2.0.b1}
@@ -70,7 +69,7 @@
 
 %install
 %python_install
-%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 export LANG=en_US.UTF-8




commit python-csvkit for openSUSE:Factory

2018-08-13 Thread root
Hello community,

here is the log from the commit of package python-csvkit for openSUSE:Factory 
checked in at 2018-08-13 09:55:34

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


Package is "python-csvkit"

Mon Aug 13 09:55:34 2018 rev:4 rq:628845 version:1.0.3

Changes:

--- /work/SRC/openSUSE:Factory/python-csvkit/python-csvkit.changes  
2018-08-12 20:55:22.901468322 +0200
+++ /work/SRC/openSUSE:Factory/.python-csvkit.new/python-csvkit.changes 
2018-08-13 09:55:37.082987295 +0200
@@ -1,0 +2,7 @@
+Sun Aug 12 20:31:00 UTC 2018 - mc...@suse.com
+
+- We already use six, so it is better to use monkey-patching already
+  prepared there. remove-unittest2.patch updated.
+  Upstream pull request https://github.com/wireservice/csvkit/pull/979
+
+---



Other differences:
--
++ python-csvkit.spec ++
--- /var/tmp/diff_new_pack.SxCm5D/_old  2018-08-13 09:55:38.610990391 +0200
+++ /var/tmp/diff_new_pack.SxCm5D/_new  2018-08-13 09:55:38.610990391 +0200
@@ -25,6 +25,7 @@
 Group:  Development/Languages/Python
 Url:https://github.com/wireservice/csvkit
 Source: 
https://files.pythonhosted.org/packages/source/c/csvkit/csvkit-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM https://github.com/wireservice/csvkit/pull/979 
mc...@suse.cz
 Patch0: remove-unittest2.patch
 BuildRequires:  %{python_module SQLAlchemy >= 0.9.3}
 BuildRequires:  %{python_module Sphinx >= 1.0.7}

++ remove-unittest2.patch ++
--- /var/tmp/diff_new_pack.SxCm5D/_old  2018-08-13 09:55:38.630990431 +0200
+++ /var/tmp/diff_new_pack.SxCm5D/_new  2018-08-13 09:55:38.630990431 +0200
@@ -1,41 +1,144 @@
 a/tests/test_utilities/test_csvjson.py
-+++ b/tests/test_utilities/test_csvjson.py
-@@ -3,6 +3,7 @@
+From 7d35c066d2dd95aad58c9f07bae28f572e53b19f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= 
+Date: Sun, 12 Aug 2018 22:33:39 +0200
+Subject: [PATCH] Remove unnecessary dependency on unittest2
+
+csvkit doesn't support Python 2.6, so there is no need to use unittest2
+which sole purpose is to bring unittest from Python 3.* (and 2.7) to
+2.6.
+
+Compatibility between 2.7 and 3.* API is provided by six (which is
+already requirement for csvkit).
+---
+ requirements-py2.txt | 1 -
+ tests/test_cleanup.py| 5 +
+ tests/test_cli.py| 5 +
+ tests/test_convert/test_convert.py   | 5 +
+ tests/test_grep.py   | 6 +-
+ tests/test_utilities/test_csvjson.py | 6 --
+ tests/test_utilities/test_csvstat.py | 6 --
+ tests/utils.py   | 6 +-
+ 8 files changed, 13 insertions(+), 27 deletions(-)
+
+--- a/tests/test_cleanup.py
 b/tests/test_cleanup.py
+@@ -1,9 +1,6 @@
+ #!/usr/bin/env python
  
- import json
- import sys
+-try:
+-import unittest2 as unittest
+-except ImportError:
+-import unittest
 +import unittest
  
- import six
+ from csvkit.cleanup import join_rows
  
-@@ -14,6 +15,11 @@ except ImportError:
- from csvkit.utilities.csvjson import CSVJSON, launch_new_instance
- from tests.utils import CSVKitTestCase, EmptyFileTests
+--- a/tests/test_cli.py
 b/tests/test_cli.py
+@@ -1,9 +1,6 @@
+ #!/usr/bin/env python
  
-+if not hasattr(unittest.TestCase, 'assertRegex'):
-+setattr(unittest.TestCase, 'assertRegex', 
unittest.TestCase.assertRegexpMatches)
-+
-+if not hasattr(unittest.TestCase, 'assertRaisesRegex'):
-+setattr(unittest.TestCase, 'assertRaisesRegex', 
unittest.TestCase.assertRaisesRegexp)
+-try:
+-import unittest2 as unittest
+-except ImportError:
+-import unittest
++import unittest
+ 
+ from csvkit.cli import match_column_identifier, parse_column_identifiers
+ 
+--- a/tests/test_convert/test_convert.py
 b/tests/test_convert/test_convert.py
+@@ -1,9 +1,6 @@
+ #!/usr/bin/env python
+ 
+-try:
+-import unittest2 as unittest
+-except ImportError:
+-import unittest
++import unittest
+ 
+ from csvkit import convert
+ 
+--- a/tests/test_grep.py
 b/tests/test_grep.py
+@@ -1,11 +1,7 @@
+ #!/usr/bin/env python
+ 
+ import re
+-
+-try:
+-import unittest2 as unittest
+-except ImportError:
+-import unittest
++import unittest
+ 
+ from csvkit.grep import FilteringCSVReader
+ from csvkit.exceptions import ColumnIdentifierError
+--- a/tests/test_utilities/test_csvjson.py
 b/tests/test_utilities/test_csvjson.py
+@@ -58,7 +58,7 @@ class TestCSVJSON(CSVKitTestCase, EmptyF
+ output = self.get_output(['-i', '4', 'examples/dummy.csv'])
+ js = json.loads(output)
+ self.assertDictEqual(js[0], {'a': True, 'c': 3.0, 'b': 2.0})
+-self.assertRegex(output, ' 

commit python-csvkit for openSUSE:Factory

2018-08-12 Thread root
Hello community,

here is the log from the commit of package python-csvkit for openSUSE:Factory 
checked in at 2018-08-12 20:55:13

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


Package is "python-csvkit"

Sun Aug 12 20:55:13 2018 rev:3 rq:628662 version:1.0.3

Changes:

--- /work/SRC/openSUSE:Factory/python-csvkit/python-csvkit.changes  
2018-07-31 16:00:58.283706564 +0200
+++ /work/SRC/openSUSE:Factory/.python-csvkit.new/python-csvkit.changes 
2018-08-12 20:55:22.901468322 +0200
@@ -1,0 +2,6 @@
+Fri Aug 10 15:37:29 UTC 2018 - mc...@suse.com
+
+- Remove unnecessary unittest2 dependency
+  (Patch remove-unittest2.patch makes necessary changes)
+
+---

New:

  remove-unittest2.patch



Other differences:
--
++ python-csvkit.spec ++
--- /var/tmp/diff_new_pack.MDugN4/_old  2018-08-12 20:55:23.541469621 +0200
+++ /var/tmp/diff_new_pack.MDugN4/_new  2018-08-12 20:55:23.541469621 +0200
@@ -25,6 +25,7 @@
 Group:  Development/Languages/Python
 Url:https://github.com/wireservice/csvkit
 Source: 
https://files.pythonhosted.org/packages/source/c/csvkit/csvkit-%{version}.tar.gz
+Patch0: remove-unittest2.patch
 BuildRequires:  %{python_module SQLAlchemy >= 0.9.3}
 BuildRequires:  %{python_module Sphinx >= 1.0.7}
 BuildRequires:  %{python_module aenum}
@@ -47,7 +48,6 @@
 BuildRequires:  %{python_module coverage >= 3.5.1b1}
 BuildRequires:  %{python_module nose >= 1.1.2} 
 BuildRequires:  python-mock >= 1.3.0
-BuildRequires:  python-unittest2 >= 1.1.0
 # /SECTION
 BuildArch:  noarch
 
@@ -60,6 +60,7 @@
 
 %prep
 %setup -q -n csvkit-%{version}
+%autopatch -p1
 # find and remove unneeded shebangs
 find csvkit -name "*.py" | xargs sed -i '1 {/^#!/ d}'
 

++ remove-unittest2.patch ++
--- a/tests/test_utilities/test_csvjson.py
+++ b/tests/test_utilities/test_csvjson.py
@@ -3,6 +3,7 @@
 
 import json
 import sys
+import unittest
 
 import six
 
@@ -14,6 +15,11 @@ except ImportError:
 from csvkit.utilities.csvjson import CSVJSON, launch_new_instance
 from tests.utils import CSVKitTestCase, EmptyFileTests
 
+if not hasattr(unittest.TestCase, 'assertRegex'):
+setattr(unittest.TestCase, 'assertRegex', 
unittest.TestCase.assertRegexpMatches)
+
+if not hasattr(unittest.TestCase, 'assertRaisesRegex'):
+setattr(unittest.TestCase, 'assertRaisesRegex', 
unittest.TestCase.assertRaisesRegexp)
 
 class TestCSVJSON(CSVKitTestCase, EmptyFileTests):
 Utility = CSVJSON
--- a/tests/test_utilities/test_csvstat.py
+++ b/tests/test_utilities/test_csvstat.py
@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 
 import sys
+import unittest
 
 import agate
 
@@ -12,6 +13,8 @@ except ImportError:
 from csvkit.utilities.csvstat import CSVStat, launch_new_instance
 from tests.utils import CSVKitTestCase, ColumnsTests, EmptyFileTests, 
NamesTests
 
+if not hasattr(unittest.TestCase, 'assertRegex'):
+setattr(unittest.TestCase, 'assertRegex', 
unittest.TestCase.assertRegexpMatches)
 
 class TestCSVStat(CSVKitTestCase, ColumnsTests, EmptyFileTests, NamesTests):
 Utility = CSVStat



commit python-csvkit for openSUSE:Factory

2018-07-31 Thread root
Hello community,

here is the log from the commit of package python-csvkit for openSUSE:Factory 
checked in at 2018-07-31 16:00:54

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


Package is "python-csvkit"

Tue Jul 31 16:00:54 2018 rev:2 rq:626377 version:1.0.3

Changes:

--- /work/SRC/openSUSE:Factory/python-csvkit/python-csvkit.changes  
2018-06-05 12:53:10.397062883 +0200
+++ /work/SRC/openSUSE:Factory/.python-csvkit.new/python-csvkit.changes 
2018-07-31 16:00:58.283706564 +0200
@@ -1,0 +2,5 @@
+Sun Jul 29 11:52:04 UTC 2018 - jeng...@inai.de
+
+- Remove bias from descriptions.
+
+---



Other differences:
--
++ python-csvkit.spec ++
--- /var/tmp/diff_new_pack.DTBATa/_old  2018-07-31 16:00:58.871707563 +0200
+++ /var/tmp/diff_new_pack.DTBATa/_new  2018-07-31 16:00:58.871707563 +0200
@@ -20,7 +20,7 @@
 Name:   python-csvkit
 Version:1.0.3
 Release:0
-Summary:A library of utilities for working with CSV, the king of 
tabular file formats
+Summary:A library of utilities for working with CSV
 License:MIT
 Group:  Development/Languages/Python
 Url:https://github.com/wireservice/csvkit
@@ -29,8 +29,8 @@
 BuildRequires:  %{python_module Sphinx >= 1.0.7}
 BuildRequires:  %{python_module aenum}
 BuildRequires:  %{python_module agate >= 1.6.1}
-BuildRequires:  %{python_module agate-excel >= 0.2.2}
 BuildRequires:  %{python_module agate-dbf >= 0.2.0}
+BuildRequires:  %{python_module agate-excel >= 0.2.2}
 BuildRequires:  %{python_module agate-sql >= 0.5.3}
 BuildRequires:  %{python_module dbf >= 0.9.3}
 BuildRequires:  %{python_module devel}
@@ -54,9 +54,9 @@
 %python_subpackages
 
 %description
-CSVkit is a library of utilities for working with CSV, the king of tabular file
-formats.  It is inspired by pdftk, gdal and the original csvcut utility by Joe
-Germuska and Aaron Bycoffe.
+CSVkit is a library of utilities for working with CSV. It is inspired
+by pdftk, gdal and the original csvcut utility by Joe Germuska and
+Aaron Bycoffe.
 
 %prep
 %setup -q -n csvkit-%{version}