From a7fb15a25a64c44f7865d68ddd07610836b6a9b6c6b805b97d281149f6fef188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 8 Oct 2019 09:18:28 +0000 Subject: [PATCH] - Update to 0.8.5: * various bugfixes - Remove merged pr_2.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-tabulate?expand=0&rev=8 --- pr_2.patch | 73 ----------------------------------------- python-tabulate.changes | 7 ++++ python-tabulate.spec | 7 ++-- tabulate-0.8.3.tar.gz | 3 -- tabulate-0.8.5.tar.gz | 3 ++ 5 files changed, 12 insertions(+), 81 deletions(-) delete mode 100644 pr_2.patch delete mode 100644 tabulate-0.8.3.tar.gz create mode 100644 tabulate-0.8.5.tar.gz diff --git a/pr_2.patch b/pr_2.patch deleted file mode 100644 index e5a4d3b..0000000 --- a/pr_2.patch +++ /dev/null @@ -1,73 +0,0 @@ ---- tabulate-0.8.3/test/test_cli.py.orig 2019-09-14 17:58:44.191319677 +0700 -+++ tabulate-0.8.3/test/test_cli.py 2019-09-14 17:59:06.895533501 +0700 -@@ -6,6 +6,7 @@ - from __future__ import print_function - from __future__ import unicode_literals - import os -+import sys - - - import subprocess -@@ -97,7 +98,7 @@ - - def test_script_from_stdin_to_stdout(): - """Command line utility: read from stdin, print to stdout""" -- cmd = ["python", "tabulate.py"] -+ cmd = [sys.executable, "tabulate.py"] - out = run_and_capture_stdout(cmd, input=sample_input()) - expected = SAMPLE_SIMPLE_FORMAT - print("got: ",repr(out)) -@@ -110,7 +111,7 @@ - with TemporaryTextFile() as tmpfile: - tmpfile.write(sample_input()) - tmpfile.seek(0) -- cmd = ["python", "tabulate.py", tmpfile.name] -+ cmd = [sys.executable, "tabulate.py", tmpfile.name] - out = run_and_capture_stdout(cmd) - expected = SAMPLE_SIMPLE_FORMAT - print("got: ",repr(out)) -@@ -124,7 +125,7 @@ - with TemporaryTextFile() as output_file: - input_file.write(sample_input()) - input_file.seek(0) -- cmd = ["python", "tabulate.py", "-o", output_file.name, input_file.name] -+ cmd = [sys.executable, "tabulate.py", "-o", output_file.name, input_file.name] - out = run_and_capture_stdout(cmd) - # check that nothing is printed to stdout - expected = "" -@@ -143,7 +144,7 @@ - def test_script_header_option(): - """Command line utility: -1, --header option""" - for option in ["-1", "--header"]: -- cmd = ["python", "tabulate.py", option] -+ cmd = [sys.executable, "tabulate.py", option] - raw_table = sample_input(with_headers=True) - out = run_and_capture_stdout(cmd, input=raw_table) - expected = SAMPLE_SIMPLE_FORMAT_WITH_HEADERS -@@ -156,7 +157,7 @@ - def test_script_sep_option(): - """Command line utility: -s, --sep option""" - for option in ["-s", "--sep"]: -- cmd = ["python", "tabulate.py", option, ","] -+ cmd = [sys.executable, "tabulate.py", option, ","] - raw_table = sample_input(sep=",") - out = run_and_capture_stdout(cmd, input=raw_table) - expected = SAMPLE_SIMPLE_FORMAT -@@ -168,7 +169,7 @@ - def test_script_floatfmt_option(): - """Command line utility: -F, --float option""" - for option in ["-F", "--float"]: -- cmd = ["python", "tabulate.py", option, ".1e", "--format", "grid"] -+ cmd = [sys.executable, "tabulate.py", option, ".1e", "--format", "grid"] - raw_table = sample_input() - out = run_and_capture_stdout(cmd, input=raw_table) - expected = SAMPLE_GRID_FORMAT_WITH_DOT1E_FLOATS -@@ -180,7 +181,7 @@ - def test_script_format_option(): - """Command line utility: -f, --format option""" - for option in ["-f", "--format"]: -- cmd = ["python", "tabulate.py", "-1", option, "grid"] -+ cmd = [sys.executable, "tabulate.py", "-1", option, "grid"] - raw_table = sample_input(with_headers=True) - out = run_and_capture_stdout(cmd, input=raw_table) - expected = SAMPLE_GRID_FORMAT_WITH_HEADERS diff --git a/python-tabulate.changes b/python-tabulate.changes index c01d369..40b3242 100644 --- a/python-tabulate.changes +++ b/python-tabulate.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Oct 8 09:15:59 UTC 2019 - Tomáš Chvátal + +- Update to 0.8.5: + * various bugfixes +- Remove merged pr_2.patch + ------------------------------------------------------------------- Sat Sep 14 10:10:39 UTC 2019 - John Vandenberg diff --git a/python-tabulate.spec b/python-tabulate.spec index 1b65abf..1fcd33d 100644 --- a/python-tabulate.spec +++ b/python-tabulate.spec @@ -18,15 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-tabulate -Version: 0.8.3 +Version: 0.8.5 Release: 0 Summary: Pretty-printer for tabular data in Python License: MIT Group: Development/Languages/Python URL: https://bitbucket.org/astanin/python-tabulate Source: https://files.pythonhosted.org/packages/source/t/tabulate/tabulate-%{version}.tar.gz -# https://github.com/astanin/python-tabulate/pull/2 -Patch0: pr_2.patch BuildRequires: %{python_module nose} BuildRequires: %{python_module pandas} BuildRequires: %{python_module setuptools} @@ -54,7 +52,6 @@ The main use cases of the library are: %prep %setup -n tabulate-%{version} -%patch0 -p1 %build %python_build @@ -68,7 +65,7 @@ The main use cases of the library are: %files %{python_files} %license LICENSE -%doc README.rst +%doc README.md %python3_only %{_bindir}/tabulate %{python_sitelib}/* diff --git a/tabulate-0.8.3.tar.gz b/tabulate-0.8.3.tar.gz deleted file mode 100644 index 3254f63..0000000 --- a/tabulate-0.8.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8af07a39377cee1103a5c8b3330a421c2d99b9141e9cc5ddd2e3263fea416943 -size 46234 diff --git a/tabulate-0.8.5.tar.gz b/tabulate-0.8.5.tar.gz new file mode 100644 index 0000000..3ba8b4c --- /dev/null +++ b/tabulate-0.8.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0097023658d4dea848d6ae73af84532d1e86617ac0925d1adf1dd903985dac3 +size 45867