From 09c0449de9fefc0bad970dd7caa63f82171ea586e62d5d5a7eef4fb543036735 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 14 Dec 2023 06:03:53 +0000 Subject: [PATCH] =?UTF-8?q?-=20Update=20to=201.3.0:=20=20=20*=20/scripts/c?= =?UTF-8?q?svformat=20adds=20a=20--skip-header=20(-E)=20option=20to=20not?= =?UTF-8?q?=20output=20a=20=20=20=20=20header=20row.=20=20=20*=20/scripts/?= =?UTF-8?q?csvlook=20adds=20a=20--max-precision=20option=20to=20set=20the?= =?UTF-8?q?=20maximum=20number=20=20=20=20=20of=20decimal=20places=20to=20?= =?UTF-8?q?display.=20=20=20*=20/scripts/csvlook=20adds=20a=20--no-number-?= =?UTF-8?q?ellipsis=20option=20to=20disable=20the=20=20=20=20=20ellipsis?= =?UTF-8?q?=20(=E2=80=A6)=20if=20--max-precision=20is=20exceeded.=20=20=20?= =?UTF-8?q?*=20/scripts/csvstat=20supports=20the=20--no-inference=20(-I),?= =?UTF-8?q?=20--locale=20(-L),=20=20=20=20=20--blanks,=20--date-format=20a?= =?UTF-8?q?nd=20datetime-format=20options.=20=20=20*=20/scripts/csvstat=20?= =?UTF-8?q?reports=20a=20"Non-null=20values"=20statistic.=20=20=20*=20/scr?= =?UTF-8?q?ipts/csvstat=20adds=20a=20--non-nulls=20option=20to=20only=20ou?= =?UTF-8?q?tput=20counts=20=20=20=20=20of=20non-null=20values.=20=20=20*?= =?UTF-8?q?=20/scripts/csvstat=20reports=20a=20"Most=20decimal=20places"?= =?UTF-8?q?=20statistic.=20=20=20*=20/scripts/csvstat=20adds=20a=20--max-p?= =?UTF-8?q?recision=20option=20to=20only=20output=20the=20=20=20=20=20most?= =?UTF-8?q?=20decimal=20places.=20=20=20*=20/scripts/csvstat=20adds=20a=20?= =?UTF-8?q?--json=20option=20to=20output=20results=20as=20JSON=20text.=20?= =?UTF-8?q?=20=20*=20/scripts/csvstat=20adds=20an=20--indent=20option=20to?= =?UTF-8?q?=20indent=20the=20JSON=20text=20when=20=20=20=20=20--json=20is?= =?UTF-8?q?=20set.=20=20=20*=20/scripts/in2csv=20adds=20a=20--use-sheet-na?= =?UTF-8?q?mes=20option=20to=20use=20the=20sheet=20names=20=20=20=20=20as?= =?UTF-8?q?=20file=20names=20when=20--write-sheets=20is=20set.=20=20=20*?= =?UTF-8?q?=20Add=20a=20--null-value=20option=20to=20commands=20with=20the?= =?UTF-8?q?=20--blanks=20option,=20to=20=20=20=20=20convert=20additional?= =?UTF-8?q?=20values=20to=20NULL.=20=20=20*=20Reconfigure=20the=20encoding?= =?UTF-8?q?=20of=20standard=20input=20according=20to=20the=20--encoding=20?= =?UTF-8?q?=20=20=20=20option,=20which=20defaults=20to=20utf-8-sig.=20=20?= =?UTF-8?q?=20*=20Prompt=20the=20user=20if=20additional=20input=20is=20exp?= =?UTF-8?q?ected=20(i.e.=20if=20no=20input=20file=20=20=20=20=20or=20piped?= =?UTF-8?q?=20data=20is=20provided)=20in=20/scripts/csvjoin,=20/scripts/cs?= =?UTF-8?q?vsql=20and=20=20=20=20=20/scripts/csvstack.=20=20=20*=20No=20lo?= =?UTF-8?q?nger=20errors=20if=20a=20NUL=20byte=20occurs=20in=20an=20input?= =?UTF-8?q?=20file.=20=20=20*=20Add=20Python=203.12=20support.=20=20=20*?= =?UTF-8?q?=20/scripts/csvjoin=20uses=20the=20correct=20columns=20when=20p?= =?UTF-8?q?erforming=20a=20--right=20join.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-csvkit?expand=0&rev=40 --- csvkit-1.1.1.tar.gz | 3 --- csvkit-1.3.0.tar.gz | 3 +++ python-csvkit.changes | 37 +++++++++++++++++++++++++++++++++++++ python-csvkit.spec | 18 ++++++++++++------ 4 files changed, 52 insertions(+), 9 deletions(-) delete mode 100644 csvkit-1.1.1.tar.gz create mode 100644 csvkit-1.3.0.tar.gz diff --git a/csvkit-1.1.1.tar.gz b/csvkit-1.1.1.tar.gz deleted file mode 100644 index 8a83bae..0000000 --- a/csvkit-1.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:beddb7b78f6b22adbed6ead5ad5de4bfb31dd2c55f3211b2a2b3b65529049223 -size 3792699 diff --git a/csvkit-1.3.0.tar.gz b/csvkit-1.3.0.tar.gz new file mode 100644 index 0000000..5f15e4f --- /dev/null +++ b/csvkit-1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b82e6ae2d2bb416517100ecbae8d5d856a0dffae42b712088814a2b7201e1af8 +size 3795356 diff --git a/python-csvkit.changes b/python-csvkit.changes index 09ac325..6ec88a1 100644 --- a/python-csvkit.changes +++ b/python-csvkit.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Thu Dec 14 06:03:03 UTC 2023 - Steve Kowalik + +- Update to 1.3.0: + * /scripts/csvformat adds a --skip-header (-E) option to not output a + header row. + * /scripts/csvlook adds a --max-precision option to set the maximum number + of decimal places to display. + * /scripts/csvlook adds a --no-number-ellipsis option to disable the + ellipsis (…) if --max-precision is exceeded. + * /scripts/csvstat supports the --no-inference (-I), --locale (-L), + --blanks, --date-format and datetime-format options. + * /scripts/csvstat reports a "Non-null values" statistic. + * /scripts/csvstat adds a --non-nulls option to only output counts + of non-null values. + * /scripts/csvstat reports a "Most decimal places" statistic. + * /scripts/csvstat adds a --max-precision option to only output the + most decimal places. + * /scripts/csvstat adds a --json option to output results as JSON text. + * /scripts/csvstat adds an --indent option to indent the JSON text when + --json is set. + * /scripts/in2csv adds a --use-sheet-names option to use the sheet names + as file names when --write-sheets is set. + * Add a --null-value option to commands with the --blanks option, to + convert additional values to NULL. + * Reconfigure the encoding of standard input according to the --encoding + option, which defaults to utf-8-sig. + * Prompt the user if additional input is expected (i.e. if no input file + or piped data is provided) in /scripts/csvjoin, /scripts/csvsql and + /scripts/csvstack. + * No longer errors if a NUL byte occurs in an input file. + * Add Python 3.12 support. + * /scripts/csvjoin uses the correct columns when performing a --right join. + * Add SQLAlchemy 2 support. + * Drop Python 3.7 support (end-of-life was June 5, 2023). +- Switch to pyproject macros. + ------------------------------------------------------------------- Fri Sep 29 13:18:54 UTC 2023 - Ondřej Súkup diff --git a/python-csvkit.spec b/python-csvkit.spec index 933f300..82f9c8a 100644 --- a/python-csvkit.spec +++ b/python-csvkit.spec @@ -18,11 +18,10 @@ %define binaries csvclean csvcut csvformat csvgrep csvjoin csvjson csvlook csvpy csvsort csvsql csvstack csvstat in2csv sql2csv Name: python-csvkit -Version: 1.1.1 +Version: 1.3.0 Release: 0 Summary: A library of utilities for working with CSV License: MIT -Group: Development/Languages/Python URL: https://github.com/wireservice/csvkit Source0: https://files.pythonhosted.org/packages/source/c/csvkit/csvkit-%{version}.tar.gz Source1: https://raw.githubusercontent.com/wireservice/csvkit/5f22e664121b13d9ff005a9206873a8f97431dca/examples/testdbf_converted.csv @@ -31,14 +30,21 @@ 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 importlib-metadata if %python-base < 3.10} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-SQLAlchemy Requires: python-agate Requires: python-agate-dbf Requires: python-agate-excel Requires: python-agate-sql -Requires: (python-importlib-metadata if python-base < 3.10) +Requires: python-openpyxl +Requires: python-xlrd +%if %python_version_nodots < 310 +Requires: python-importlib-metadata +%endif Requires(post): update-alternatives Requires(postun):update-alternatives BuildArch: noarch @@ -59,10 +65,10 @@ cp %{SOURCE1} examples/testdbf_converted.csv %endif %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install for b in %{binaries}; do %python_clone -a %{buildroot}%{_bindir}/$b done @@ -88,7 +94,7 @@ end} %{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do print(rpm.expand("%python_alternative %{_bindir}/" .. b .. "\n")) end} -%{python_sitelib}/csvkit-%{version}*-info +%{python_sitelib}/csvkit-%{version}.dist-info %{python_sitelib}/csvkit/ %changelog