!7 upgrade openEuler-22.03-LTS-Next python-singledispatch 3.7.0

From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2022-10-27 09:52:45 +00:00 committed by Gitee
commit ce40b3cfa5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 33 additions and 9 deletions

24
0001-add-version.patch Normal file
View File

@ -0,0 +1,24 @@
From 4e337a541ecaf86d4fbc82bc38b6023eab72d538 Mon Sep 17 00:00:00 2001
From: chen-jan <chen_aka_jan@163.com>
Date: Thu, 23 Jun 2022 06:57:11 +0000
Subject: [PATCH] add version
---
setup.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/setup.cfg b/setup.cfg
index 2b13441..af57d4e 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -5,6 +5,7 @@ universal = true
license_files =
LICENSE
name = singledispatch
+version = 3.7.0
author = Jason R. Coombs
author_email = jaraco@jaraco.com
description = Backport functools.singledispatch from Python 3.4 to Python 2.6-3.3.
--
2.30.0

View File

@ -1,12 +1,13 @@
Name: python-singledispatch Name: python-singledispatch
Version: 3.4.0.3 Version: 3.7.0
Release: 15 Release: 1
Summary: Transform a method into a single-dispatch generic function Summary: Transform a method into a single-dispatch generic function
License: MIT License: MIT
URL: https://pypi.org/project/singledispatch/ URL: https://pypi.org/project/singledispatch/
Source0: https://pypi.python.org/packages/source/s/singledispatch/singledispatch-%{version}.tar.gz Source0: https://pypi.python.org/packages/source/s/singledispatch/singledispatch-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
Patch001: 0001-add-version.patch
%description %description
PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4 PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4
@ -27,9 +28,6 @@ This library is a backport of this functionality to Python 3.3.
%prep %prep
%autosetup -n singledispatch-%{version} -p1 %autosetup -n singledispatch-%{version} -p1
sed -i '1d' singledispatch.py
sed -i '1d' singledispatch_helpers.py
%build %build
%{__python3} setup.py build %{__python3} setup.py build
@ -41,12 +39,14 @@ sed -i '1d' singledispatch_helpers.py
%files -n python3-singledispatch %files -n python3-singledispatch
%doc README.rst %doc README.rst
%{python3_sitelib}/singledispatch-%{version}-py?.?.egg-info %{python3_sitelib}/singledispatch-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/singledispatch.py* %{python3_sitelib}/singledispatch/*.py
%{python3_sitelib}/singledispatch_helpers.py* %{python3_sitelib}/singledispatch/__pycache__/*
%{python3_sitelib}/__pycache__/*
%changelog %changelog
* Wed Oct 26 2022 xu_ping <xuping33@h-partners.com> - 3.7.0-1
- Upgrade to version 3.7.0
* Wed Oct 21 2020 zhanghua <zhanghua40@huawei.com> - 3.4.0.3-15 * Wed Oct 21 2020 zhanghua <zhanghua40@huawei.com> - 3.4.0.3-15
- remove python2 subpackage, fix changelog version as 3.4.0.3 - remove python2 subpackage, fix changelog version as 3.4.0.3

Binary file not shown.

BIN
singledispatch-3.7.0.tar.gz Normal file

Binary file not shown.