forked from pool/python-pytidylib
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
This commit is contained in:
committed by
Git OBS Bridge
parent
c65208b32e
commit
13f2406547
@@ -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
|
Sat Jul 23 17:24:53 UTC 2016 - rpm@fthiessen.de
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytidylib
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
|
||||||
%endif
|
|
||||||
Name: python-pytidylib
|
Name: python-pytidylib
|
||||||
Version: 0.2.4
|
Version: 0.3.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python wrapper for HTML Tidy (tidylib) on Python 2 and 3
|
Summary: Python wrapper for HTML Tidy (tidylib) on Python 2 and 3
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://countergram.com/open-source/pytidylib/
|
URL: http://countergram.com/open-source/pytidylib/
|
||||||
Source: https://pypi.python.org/packages/b4/a0/b70cf2b7b4ee1f9d8fa0f1b4abbbac081a2638a580dabf29b8fb554d5fc1/pytidylib-%{version}.tar.gz
|
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: libtidy-devel
|
||||||
BuildRequires: python-devel
|
BuildArch: noarch
|
||||||
Requires: libtidy5
|
%python_subpackages
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
`PyTidyLib`_ is a Python package that wraps the `HTML Tidy`_ library. This
|
`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}
|
%setup -q -n pytidylib-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files
|
%check
|
||||||
%defattr(-,root,root,-)
|
# The large document test is excluded as it produces inconsistent
|
||||||
%doc LICENSE README
|
# results across architectures.
|
||||||
|
%pytest -k 'not test_large_document'
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%doc README
|
||||||
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -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
3
pytidylib-0.3.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:22b1c8d75970d8064ff999c2369e98af1d0685417eda4c829a5c9f56764b0af3
|
||||||
|
size 87669
|
Reference in New Issue
Block a user