From ce233cb9ef818b2c554bab5e9d3e31f1deac6de6811112f681d92ed18d50e174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 5 Nov 2024 15:36:07 +0000 Subject: [PATCH] - Initial build * Version 2.0.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tinyhtml5?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + python-tinyhtml5.changes | 5 +++ python-tinyhtml5.spec | 85 ++++++++++++++++++++++++++++++++++++++++ tinyhtml5-2.0.0.tar.gz | 3 ++ 5 files changed, 117 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-tinyhtml5.changes create mode 100644 python-tinyhtml5.spec create mode 100644 tinyhtml5-2.0.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-tinyhtml5.changes b/python-tinyhtml5.changes new file mode 100644 index 0000000..c25e442 --- /dev/null +++ b/python-tinyhtml5.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Nov 5 14:41:15 UTC 2024 - John Paul Adrian Glaubitz + +- Initial build + * Version 2.0.0 diff --git a/python-tinyhtml5.spec b/python-tinyhtml5.spec new file mode 100644 index 0000000..fa2e6d3 --- /dev/null +++ b/python-tinyhtml5.spec @@ -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 diff --git a/tinyhtml5-2.0.0.tar.gz b/tinyhtml5-2.0.0.tar.gz new file mode 100644 index 0000000..82cc2cb --- /dev/null +++ b/tinyhtml5-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:086f998833da24c300c414d9fe81d9b368fd04cb9d2596a008421cbc705fcfcc +size 179507