Accepting request 707822 from home:pgajdos

- turn the testsuite on

OBS-URL: https://build.opensuse.org/request/show/707822
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-htmlmin?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal 2019-06-05 12:06:00 +00:00 committed by Git OBS Bridge
parent 45cf5f8835
commit dda2167979
3 changed files with 25 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 5 10:48:53 UTC 2019 - pgajdos@suse.com
- turn the testsuite on
-------------------------------------------------------------------
Tue Aug 21 16:06:29 UTC 2018 - alarrosa@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-htmlmin
#
# Copyright (c) 2018 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,21 +12,28 @@
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-htmlmin
Version: 0.1.12
Release: 0
License: BSD-3-Clause
Summary: An HTML Minifier
Url: https://htmlmin.readthedocs.io/en/latest/
License: BSD-3-Clause
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/h/htmlmin/htmlmin-%{version}.tar.gz
BuildRequires: python-rpm-macros
Url: https://htmlmin.readthedocs.io/en/latest/
Source0: https://files.pythonhosted.org/packages/source/h/htmlmin/htmlmin-%{version}.tar.gz
# https://github.com/mankyd/htmlmin/issues/51
Source1: tests.tar.bz2
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
BuildArch: noarch
%python_subpackages
@ -35,7 +42,7 @@ BuildArch: noarch
A configurable HTML Minifier with safety features.
%prep
%setup -q -n htmlmin-%{version}
%setup -q -n htmlmin-%{version} -a1
# command.py is installed without exec permissions (and they're actually not needed) so
# we remove the shebang
sed -ie "s,#!/usr/bin/env python,##!/usr/bin/python3," htmlmin/command.py
@ -47,6 +54,9 @@ sed -ie "s,#!/usr/bin/env python,##!/usr/bin/python3," htmlmin/command.py
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE

3
tests.tar.bz2 Normal file
View File

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