!4 Update package

From: @Wangjunqi123 
Reviewed-by: @xiyuanwang 
Signed-off-by: @xiyuanwang
This commit is contained in:
openeuler-ci-bot 2022-12-05 03:49:30 +00:00 committed by Gitee
commit c55fec0a5b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 97 additions and 25 deletions

68
0001-add-setup.py.patch Normal file
View File

@ -0,0 +1,68 @@
diff -upNr c/pyproject.toml a/pyproject.toml
--- c/pyproject.toml 2022-11-30 15:32:54.073303454 +0800
+++ a/pyproject.toml 2022-11-30 15:46:28.976245471 +0800
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
name = "soupsieve"
description = "A modern CSS selector implementation for Beautiful Soup."
readme = "README.md"
-license = "MIT"
+license = {text = "MIT"}
requires-python = ">=3.6"
authors = [
{ name = "Isaac Muse", email = "Isaac.Muse@gmail.com" },
diff -upNr c/setup.py a/setup.py
--- c/setup.py 1970-01-01 08:00:00.000000000 +0800
+++ a/setup.py 2022-11-30 15:55:30.712206925 +0800
@@ -0,0 +1,52 @@
+#!/usr/bin/env python
+
+
+from setuptools import setup
+import os
+
+
+def get_version():
+ """Get version and version_info without importing the entire module."""
+
+ import importlib.util
+
+ path = os.path.join(os.path.dirname(__file__), 'soupsieve', '__meta__.py')
+ spec = importlib.util.spec_from_file_location("__meta__", path)
+ module = importlib.util.module_from_spec(spec)
+ spec.loader.exec_module(module)
+ vi = module.__version_info__
+ return vi._get_canonical(), vi._get_dev_status()
+
+def get_requirements(req):
+ """Load list of dependencies."""
+
+ install_requires = []
+ with open(req) as f:
+ for line in f:
+ if not line.startswith("#"):
+ install_requires.append(line.strip())
+ return install_requires
+VER, DEVSTATUS = get_version()
+
+if __name__ == "__main__":
+ setup(
+ name = "soupsieve",
+ version = VER,
+ install_requires=get_requirements("requirements/project.txt"),
+ classifiers=[
+ 'Development Status :: %s' % DEVSTATUS,
+ 'Environment :: Console',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: MIT License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: 3.10',
+ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+ 'Typing :: Typed'
+ ]
+ )

View File

@ -1,12 +1,14 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-soupsieve Name: python-soupsieve
Version: 2.3.1 Version: 2.3.2.post1
Release: 1 Release: 1
Summary: A modern CSS selector implementation for Beautiful Soup. Summary: A modern CSS selector implementation for Beautiful Soup.
License: MIT License: MIT
URL: https://github.com/facelessuser/soupsieve URL: https://github.com/facelessuser/soupsieve
Source0: https://files.pythonhosted.org/packages/e1/25/a3005eedafb34e1258458e8a4b94900a60a41a2b4e459e0e19631648a2a0/soupsieve-2.3.1.tar.gz Source0: https://files.pythonhosted.org/packages/f3/03/bac179d539362319b4779a00764e95f7542f4920084163db6b0fd4742d38/soupsieve-2.3.2.post1.tar.gz
BuildArch: noarch Patch0: 0001-add-setup.py.patch
BuildArch: noarch
%description %description
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4.
It aims to provide selecting, matching, and filtering using modern CSS selectors. It aims to provide selecting, matching, and filtering using modern CSS selectors.
@ -14,14 +16,14 @@ Soup Sieve currently provides selectors from the CSS level 1 specifications up
through the latest CSS level 4 drafts and beyond (though some are not yet implemented). through the latest CSS level 4 drafts and beyond (though some are not yet implemented).
%package -n python3-soupsieve %package -n python3-soupsieve
Summary: A modern CSS selector implementation for Beautiful Soup. Summary: A modern CSS selector implementation for Beautiful Soup.
Provides: python-soupsieve Provides: python-soupsieve = %{version}-%{release}
# Base build requires # Base build requires
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-pbr BuildRequires: python3-pbr
BuildRequires: python3-pip BuildRequires: python3-pip
BuildRequires: python3-wheel BuildRequires: python3-wheel
%description -n python3-soupsieve %description -n python3-soupsieve
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4.
It aims to provide selecting, matching, and filtering using modern CSS selectors. It aims to provide selecting, matching, and filtering using modern CSS selectors.
@ -29,8 +31,8 @@ Soup Sieve currently provides selectors from the CSS level 1 specifications up
through the latest CSS level 4 drafts and beyond (though some are not yet implemented). through the latest CSS level 4 drafts and beyond (though some are not yet implemented).
%package help %package help
Summary: A modern CSS selector implementation for Beautiful Soup. Summary: Development documents and examples for soupsieve
Provides: python3-soupsieve-doc Provides: python3-soupsieve-doc
%description help %description help
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4.
It aims to provide selecting, matching, and filtering using modern CSS selectors. It aims to provide selecting, matching, and filtering using modern CSS selectors.
@ -45,42 +47,44 @@ through the latest CSS level 4 drafts and beyond (though some are not yet implem
%install %install
%py3_install %py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir} install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot} pushd %{buildroot}
if [ -d usr/lib ]; then if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi fi
if [ -d usr/lib64 ]; then if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi fi
if [ -d usr/bin ]; then if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi fi
if [ -d usr/sbin ]; then if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi fi
touch doclist.lst touch doclist.lst
if [ -d usr/share/man ]; then if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi fi
popd popd
mv %{buildroot}/filelist.lst . mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst . mv %{buildroot}/doclist.lst .
%files -n python3-soupsieve -f filelist.lst %files -n python3-soupsieve -f filelist.lst
%dir %{python3_sitelib}/* %dir %{python3_sitelib}/*
%files help -f doclist.lst %files help -f doclist.lst
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Wed Nov 30 2022 wangjunqi <wangjunqi@kylinos.cn> - 2.3.2.post1-1
- Update package to version 2.3.2.post1
* Wed Jun 15 2022 OpenStack_SIG <openstack@openeuler.org> - 2.3.1-1 * Wed Jun 15 2022 OpenStack_SIG <openstack@openeuler.org> - 2.3.1-1
- Upgrade package python3-soupsieve to version 2.3.1 - Upgrade package python3-soupsieve to version 2.3.1

Binary file not shown.

Binary file not shown.