14
0

- Initial build

* Version 2.0.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tinyhtml5?expand=0&rev=1
This commit is contained in:
2024-11-05 15:36:07 +00:00
committed by Git OBS Bridge
commit ce233cb9ef
5 changed files with 117 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

5
python-tinyhtml5.changes Normal file
View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue Nov 5 14:41:15 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Initial build
* Version 2.0.0

85
python-tinyhtml5.spec Normal file
View File

@@ -0,0 +1,85 @@
#
# spec file for package python-tinyhtml5
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-tinyhtml5
Version: 2.0.0
Release: 0
Summary: HTML parser based on the WHATWG HTML specification
License: MIT
URL: None
Source: https://files.pythonhosted.org/packages/source/t/tinyhtml5/tinyhtml5-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module flit-core >= 3.2}
BuildRequires: %{python_module pip}
# SECTION test requirements
BuildRequires: %{python_module webencodings >= 0.5.1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module ruff}
# /SECTION
BuildRequires: fdupes
Requires: python-webencodings >= 0.5.1
Suggests: python-sphinx
Suggests: python-sphinx_rtd_theme
BuildArch: noarch
%python_subpackages
%description
**A tiny HTML5 parser**
tinyhtml5 is a HTML5 parser that transforms a possibly malformed HTML document
into an ElementTree tree.
This module is a simplified fork of html5lib, written and maintained by James
Graham, Sam Sneddon, Łukasz Langa and Will Kahn-Greene.
* Free software: MIT license
* For Python 3.9+, tested on CPython and PyPy
* Documentation: https://doc.courtbouillon.org/tinyhtml5
* Changelog: https://github.com/CourtBouillon/tinyhtml5/releases
* Code, issues, tests: https://github.com/CourtBouillon/tinyhtml5
* Code of conduct: https://www.courtbouillon.org/code-of-conduct
* Professional support: https://www.courtbouillon.org
* Donation: https://opencollective.com/courtbouillon
Copyrights are retained by their contributors, no copyright assignment is
required to contribute to tinyhtml5. Unless explicitly stated otherwise, any
contribution intentionally submitted for inclusion is licensed under the MIT
license, without any additional terms or conditions. For full authorship
information, see the version control history.
%prep
%autosetup -p1 -n tinyhtml5-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/tinyhtml5
%{python_sitelib}/tinyhtml5-%{version}.dist-info
%changelog

3
tinyhtml5-2.0.0.tar.gz Normal file
View File

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