14
0

Accepting request 702989 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/702989
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytidylib?expand=0&rev=2
This commit is contained in:
2019-05-16 20:06:57 +00:00
committed by Git OBS Bridge
4 changed files with 33 additions and 21 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue May 14 20:22:54 UTC 2019 - John Jolly <jjolly@suse.com>
- 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

View File

@@ -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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0af07bd8ebd256af70ca925ada9337faf16d85b3072624f975136a5134150ab6
size 86650

3
pytidylib-0.3.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:22b1c8d75970d8064ff999c2369e98af1d0685417eda4c829a5c9f56764b0af3
size 87669