commit 862b3b741d242ada09ed436805927bc1efc5b7d7c22447b757c43249dca670e7 Author: Matej Cepl Date: Fri Jun 28 08:43:19 2024 +0000 Accepting request 1182748 from home:ecsos:python New package. Since version 5.2.0 of python-lxml this package is needed to build other packages. OBS-URL: https://build.opensuse.org/request/show/1182748 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml_html_clean?expand=0&rev=1 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/lxml_html_clean-0.1.1.tar.gz b/lxml_html_clean-0.1.1.tar.gz new file mode 100644 index 0000000..e3cc024 --- /dev/null +++ b/lxml_html_clean-0.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a644ed01dbbe132fabddb9467f077f6dad12a1d4f3a6a553e280f3815fa46df +size 14086 diff --git a/python-lxml_html_clean.changes b/python-lxml_html_clean.changes new file mode 100644 index 0000000..95e919a --- /dev/null +++ b/python-lxml_html_clean.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Jun 23 09:27:25 UTC 2024 - ecsos + +- Initial version 0.1.1 diff --git a/python-lxml_html_clean.spec b/python-lxml_html_clean.spec new file mode 100644 index 0000000..bda674b --- /dev/null +++ b/python-lxml_html_clean.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-lxml_html_clean +# +# 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-lxml_html_clean +Version: 0.1.1 +Release: 0 +Summary: HTML cleaner from lxml project +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/fedora-python/lxml_html_clean/ +Source: https://files.pythonhosted.org/packages/source/l/lxml-html-clean/lxml_html_clean-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 61.0} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module lxml} +# /SECTION +BuildRequires: fdupes +Requires: python-lxml +BuildArch: noarch +%python_subpackages + +%description +Separate project for HTML cleaning functionalities copied from lxml.html.clean. + +%prep +%autosetup -p1 -n lxml_html_clean-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +# Fix python-bytecode-inconsistent-mtime +pushd %{buildroot}%{python_sitelib} +find . -name '*.pyc' -exec rm -f '{}' ';' +python%python_bin_suffix -m compileall *.py ';' +popd +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE.txt +%doc README.md +%{python_sitelib}/lxml_html_clean +%{python_sitelib}/lxml_html_clean-%{version}.dist-info + +%changelog