From 13f24065478a10ba41beca4a3d2123466f49d20ad0b5d8142c1cae0379c2be0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 14 May 2019 21:08:02 +0000 Subject: [PATCH] Accepting request 702988 from home:jjolly:branches:devel:languages:python - Updated to 0.3.2 + No upstream changelog - Added %check section + Excluded the large file check OBS-URL: https://build.opensuse.org/request/show/702988 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytidylib?expand=0&rev=5 --- python-pytidylib.changes | 8 ++++++++ python-pytidylib.spec | 40 ++++++++++++++++++++++------------------ pytidylib-0.2.4.tar.gz | 3 --- pytidylib-0.3.2.tar.gz | 3 +++ 4 files changed, 33 insertions(+), 21 deletions(-) delete mode 100644 pytidylib-0.2.4.tar.gz create mode 100644 pytidylib-0.3.2.tar.gz diff --git a/python-pytidylib.changes b/python-pytidylib.changes index 8cf7ee8..6cdd80c 100644 --- a/python-pytidylib.changes +++ b/python-pytidylib.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue May 14 20:22:54 UTC 2019 - John Jolly + +- Updated to 0.3.2 + + No upstream changelog +- Added %check section + + Excluded the large file check + ------------------------------------------------------------------- Sat Jul 23 17:24:53 UTC 2016 - rpm@fthiessen.de diff --git a/python-pytidylib.spec b/python-pytidylib.spec index e7119c9..1566c8d 100644 --- a/python-pytidylib.spec +++ b/python-pytidylib.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytidylib # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,27 +12,25 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch -%endif +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytidylib -Version: 0.2.4 +Version: 0.3.2 Release: 0 Summary: Python wrapper for HTML Tidy (tidylib) on Python 2 and 3 License: MIT Group: Development/Languages/Python -Url: http://countergram.com/open-source/pytidylib/ -Source: https://pypi.python.org/packages/b4/a0/b70cf2b7b4ee1f9d8fa0f1b4abbbac081a2638a580dabf29b8fb554d5fc1/pytidylib-%{version}.tar.gz +URL: http://countergram.com/open-source/pytidylib/ +Source: https://files.pythonhosted.org/packages/source/p/pytidylib/pytidylib-%{version}.tar.gz +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: libtidy-devel -BuildRequires: python-devel -Requires: libtidy5 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages %description `PyTidyLib`_ is a Python package that wraps the `HTML Tidy`_ library. This @@ -62,14 +60,20 @@ The following code cleans up an invalid HTML document and sets an option:: %setup -q -n pytidylib-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files -%defattr(-,root,root,-) -%doc LICENSE README +%check +# The large document test is excluded as it produces inconsistent +# results across architectures. +%pytest -k 'not test_large_document' + +%files %{python_files} +%doc README +%license LICENSE %{python_sitelib}/* %changelog diff --git a/pytidylib-0.2.4.tar.gz b/pytidylib-0.2.4.tar.gz deleted file mode 100644 index d4a3570..0000000 --- a/pytidylib-0.2.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0af07bd8ebd256af70ca925ada9337faf16d85b3072624f975136a5134150ab6 -size 86650 diff --git a/pytidylib-0.3.2.tar.gz b/pytidylib-0.3.2.tar.gz new file mode 100644 index 0000000..a03c153 --- /dev/null +++ b/pytidylib-0.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22b1c8d75970d8064ff999c2369e98af1d0685417eda4c829a5c9f56764b0af3 +size 87669