- Fix u-a scriptlets

- Update to v1.0.7
  * fix: :doc:`/scripts/csvcut` extracts the correct columns when
    --line-numbers is set.
  * fix: Restore Python 2.7 support in edge cases.
  * feat: Use 1024 byte sniff-limit by default across csvkit. Improve csvstat
    performance up to 10x.
  * feat: Add support for .xz (LZMA) compressed input files.
  * Add Python 3.10 support.
  * Drop Python 3.5 support (end-of-life was September 30, 2020).
- v1.0.6
  * :doc:`/scripts/csvstat` no longer prints "Row count: " when --count is set.
  * :doc:`/scripts/csvclean`, :doc:`/scripts/csvcut`, :doc:`/scripts/csvgrep`
    no longer error if standard input is null.
  * :doc:`/scripts/csvformat` creates default headers when --no-header-row is
    set, as documented.
  * :doc:`/scripts/csvstack` no longer errors when --no-header-row is combined
    with --groups or --filenames.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-csvkit?expand=0&rev=25
This commit is contained in:
2022-10-07 07:09:51 +00:00
committed by Git OBS Bridge
parent 1ef898718c
commit 9bcd7e832b
4 changed files with 31 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-csvkit
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
%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
Version: 1.0.7
Release: 0
Summary: A library of utilities for working with CSV
License: MIT
@@ -46,7 +46,7 @@ BuildRequires: %{python_module xlrd >= 0.9.2}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
@@ -80,19 +80,19 @@ export LANG=en_US.UTF-8
%post
%{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do
print(rpm.expand("%python_install_alternative " .. b))
print(rpm.expand("%python_install_alternative " .. b .. "\n"))
end}
%postun
%{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do
print(rpm.expand("%python_uninstall_alternative " .. b))
print(rpm.expand("%python_uninstall_alternative " .. b .. "\n"))
end}
%files %{python_files}
%license COPYING
%doc AUTHORS.rst CHANGELOG.rst README.rst
%{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do
print(rpm.expand("%python_alternative %{_bindir}/" .. b))
print(rpm.expand("%python_alternative %{_bindir}/" .. b .. "\n"))
end}
%{python_sitelib}/csvkit-%{version}*-info
%{python_sitelib}/csvkit/