- Update to 2.0.1:
* feat: csvsql adds --min-col-len and --col-len-multiplier options.
* feat: sql2csv adds a --engine-option option.
* feat: Add man pages to the sdist and wheel distributions.
* fix: csvstat no longer errors when a column is a time delta and --json
is set.
* csvclean now writes its output to standard output and its errors to
standard error, instead of to basename_out.csv and basename_err.csv
files.
* csvclean no longer reports or fixes errors by default; it errors if no
checks or fixes are enabled.
* csvclean no longer omits rows with errors from the output.
* csvclean joins short rows using a newline by default, instead of a space.
* Add a lot of options to csvclean.
* feat: The --quoting option accepts csv.QUOTE_STRINGS and
csv.QUOTE_NOTNULL on Python 3.12.
* feat: csvformat: The --out-quoting option accepts csv.QUOTE_STRINGS
and csv.QUOTE_NOTNULL on Python 3.12.
* fix: csvformat: The --out-quoting option works with csv.QUOTE_NONUMERIC.
* fix: csvclean: The --join-short-rows option no longer reports length
mismatch errors that were fixed.
* feat: Add support for Zstandard files with the .zst extension, if the
zstandard package is installed.
* feat: csvformat adds a --out-asv (--A) option to use the ASCII unit
separator and record separator.
* feat: csvsort adds a --ignore-case (--i) option to perform
case-independent sorting.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-csvkit?expand=0&rev=44
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
%define binaries csvclean csvcut csvformat csvgrep csvjoin csvjson csvlook csvpy csvsort csvsql csvstack csvstat in2csv sql2csv
|
||||
Name: python-csvkit
|
||||
Version: 1.4.0
|
||||
Version: 2.0.1
|
||||
Release: 0
|
||||
Summary: A library of utilities for working with CSV
|
||||
License: MIT
|
||||
@@ -42,6 +42,7 @@ Requires: python-agate-excel
|
||||
Requires: python-agate-sql
|
||||
Requires: python-openpyxl
|
||||
Requires: python-xlrd
|
||||
Recommends: python-zstandard
|
||||
%if %python_version_nodots < 310
|
||||
Requires: python-importlib-metadata
|
||||
%endif
|
||||
@@ -71,6 +72,7 @@ cp %{SOURCE1} examples/testdbf_converted.csv
|
||||
%pyproject_install
|
||||
for b in %{binaries}; do
|
||||
%python_clone -a %{buildroot}%{_bindir}/$b
|
||||
%python_clone -a %{buildroot}%{_mandir}/man1/${b}.1
|
||||
done
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
@@ -81,11 +83,13 @@ export LANG=en_US.UTF-8
|
||||
%post
|
||||
%{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do
|
||||
print(rpm.expand("%python_install_alternative " .. b .. "\n"))
|
||||
print(rpm.expand("%python_install_alternative " .. b .. ".1%{ext_man}\n"))
|
||||
end}
|
||||
|
||||
%postun
|
||||
%{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do
|
||||
print(rpm.expand("%python_uninstall_alternative " .. b .. "\n"))
|
||||
print(rpm.expand("%python_uninstall_alternative " .. b .. ".1%{ext_man}\n"))
|
||||
end}
|
||||
|
||||
%files %{python_files}
|
||||
@@ -93,8 +97,9 @@ end}
|
||||
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
||||
%{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do
|
||||
print(rpm.expand("%python_alternative %{_bindir}/" .. b .. "\n"))
|
||||
print(rpm.expand("%python_alternative %{_mandir}/man1/" .. b .. ".1%{ext_man}" .. "\n"))
|
||||
end}
|
||||
%{python_sitelib}/csvkit
|
||||
%{python_sitelib}/csvkit-%{version}.dist-info
|
||||
%{python_sitelib}/csvkit/
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user