From 85dfae534deefe14a194fc3d557d50cccda5a82cdb530ea766a1d954974af4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 11 Dec 2017 09:48:45 +0000 Subject: [PATCH 1/2] Accepting request 555550 from home:DocB:branches:devel:languages:python - version 0.8.0 * Do not guess_type on styled cell content * Remove type attributes when guessing type * Add support for Python 3.6 * Remove soft-page-break * tests added to spec file OBS-URL: https://build.opensuse.org/request/show/555550 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-relatorio?expand=0&rev=14 --- python-relatorio.changes | 10 ++++++++++ python-relatorio.spec | 9 ++++++++- relatorio-0.7.1.tar.gz | 3 --- relatorio-0.8.0.tar.gz | 3 +++ 4 files changed, 21 insertions(+), 4 deletions(-) delete mode 100644 relatorio-0.7.1.tar.gz create mode 100644 relatorio-0.8.0.tar.gz diff --git a/python-relatorio.changes b/python-relatorio.changes index 74f4a90..ca81e39 100644 --- a/python-relatorio.changes +++ b/python-relatorio.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Sat Dec 9 16:12:18 UTC 2017 - axel.braun@gmx.de + +- version 0.8.0 + * Do not guess_type on styled cell content + * Remove type attributes when guessing type + * Add support for Python 3.6 + * Remove soft-page-break + * tests added to spec file + ------------------------------------------------------------------- Fri Oct 20 06:26:54 UTC 2017 - axel.braun@gmx.de diff --git a/python-relatorio.spec b/python-relatorio.spec index 066afd1..e8eeaaf 100644 --- a/python-relatorio.spec +++ b/python-relatorio.spec @@ -17,11 +17,13 @@ # +%bcond_with tests + %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define mod_name relatorio Name: python-relatorio -Version: 0.7.1 +Version: 0.8.0 Release: 0 Summary: Python module to create reports from Python objects License: GPL-3.0+ @@ -52,6 +54,11 @@ as documents (odt, ods, pdf) or images (png, svg). %install %python_install +%if %{with tests} +%check +%python_exec setup.py test +%endif + %files %{python_files} %defattr(-,root,root) %doc README AUTHORS LICENSE diff --git a/relatorio-0.7.1.tar.gz b/relatorio-0.7.1.tar.gz deleted file mode 100644 index c54a3a3..0000000 --- a/relatorio-0.7.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:744f1e39313f037a0ab52a154338ece151d83e5442a9278db1f8ce450ce6c2cd -size 970049 diff --git a/relatorio-0.8.0.tar.gz b/relatorio-0.8.0.tar.gz new file mode 100644 index 0000000..c739c8f --- /dev/null +++ b/relatorio-0.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bddf85d029c5c85a0f976d73907e14e4c3093065fe8527170c91abf0218546d9 +size 1096794 From 0126ac4c24de71b444871f7bae6c511a8a38663ad4de598434fac4a1b4fa1624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 11 Dec 2017 09:58:15 +0000 Subject: [PATCH 2/2] - Explain why the tests are conditioned around - Specify all the runtime dependencies based on setup.py OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-relatorio?expand=0&rev=15 --- python-relatorio.changes | 6 ++++++ python-relatorio.spec | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-relatorio.changes b/python-relatorio.changes index ca81e39..dd97e19 100644 --- a/python-relatorio.changes +++ b/python-relatorio.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 11 09:55:31 UTC 2017 - tchvatal@suse.com + +- Explain why the tests are conditioned around +- Specify all the runtime dependencies based on setup.py + ------------------------------------------------------------------- Sat Dec 9 16:12:18 UTC 2017 - axel.braun@gmx.de diff --git a/python-relatorio.spec b/python-relatorio.spec index e8eeaaf..4bf7028 100644 --- a/python-relatorio.spec +++ b/python-relatorio.spec @@ -17,10 +17,8 @@ # -%bcond_with tests - %{?!python_module:%define python_module() python-%{**} python3-%{**}} - +%bcond_with tests %define mod_name relatorio Name: python-relatorio Version: 0.8.0 @@ -32,16 +30,19 @@ Url: https://pypi.python.org/pypi/relatorio Source: https://pypi.io/packages/source/r/%{mod_name}/%{mod_name}-%{version}.tar.gz BuildRequires: %{python_module Genshi} BuildRequires: %{python_module lxml} +# It requires different magic for tests https://github.com/ahupp/python-magic +#BuildRequires: %{python_module magic} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros +Requires: python-Genshi Requires: python-PyYAML +Requires: python-lxml Requires: python-pycha -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages %description -This is a Python module to create reports from Python objects. +This is a Python module to create reports from Python objects. Output plugins to several formats are included, such as documents (odt, ods, pdf) or images (png, svg). @@ -49,7 +50,7 @@ as documents (odt, ods, pdf) or images (png, svg). %setup -q -n %{mod_name}-%{version} %build -%python_build +%python_build %install %python_install @@ -60,7 +61,6 @@ as documents (odt, ods, pdf) or images (png, svg). %endif %files %{python_files} -%defattr(-,root,root) %doc README AUTHORS LICENSE %{python_sitelib}/*