diff --git a/0001-add-version.patch b/0001-add-version.patch deleted file mode 100644 index ffe11b2169ea5f7a30ff8f4a50bc16b3517cffb7..0000000000000000000000000000000000000000 --- a/0001-add-version.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 4e337a541ecaf86d4fbc82bc38b6023eab72d538 Mon Sep 17 00:00:00 2001 -From: chen-jan -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 - diff --git a/0001-creat-setup.py-file.patch b/0001-creat-setup.py-file.patch new file mode 100644 index 0000000000000000000000000000000000000000..5b8750fe8a06745374d342b0c716dfc4a406fd0a --- /dev/null +++ b/0001-creat-setup.py-file.patch @@ -0,0 +1,28 @@ +From 42ad336cbbdf3634da1c46e80b88f786da12f71d Mon Sep 17 00:00:00 2001 +From: wubijie +Date: Mon, 20 Feb 2023 15:13:04 +0800 +Subject: [PATCH] creat setup.py file + +--- + setup.py | 9 +++++++++ + 1 file changed, 9 insertions(+) + create mode 100644 setup.py + +diff --git a/setup.py b/setup.py +new file mode 100644 +index 0000000..e0d6240 +--- /dev/null ++++ b/setup.py +@@ -0,0 +1,9 @@ ++#!/usr/bin/env python ++ ++from setuptools import setup ++ ++if __name__ == "__main__": ++ setup( ++ name = "singledispatch", ++ version = "4.0.0", ++) +-- +2.33.0 + diff --git a/python-singledispatch.spec b/python-singledispatch.spec index d9536508a35735477a35d49a1a69e8a282be5f97..1aa2a8563d0eeace2818f31d30b5586019083155 100644 --- a/python-singledispatch.spec +++ b/python-singledispatch.spec @@ -1,13 +1,13 @@ Name: python-singledispatch -Version: 3.7.0 +Version: 4.0.0 Release: 1 Summary: Transform a method into a single-dispatch generic function License: MIT URL: https://pypi.org/project/singledispatch/ Source0: https://pypi.python.org/packages/source/s/singledispatch/singledispatch-%{version}.tar.gz +Patch0: 0001-creat-setup.py-file.patch BuildArch: noarch -Patch001: 0001-add-version.patch %description PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4 @@ -26,7 +26,7 @@ that provides a simple form of generic programming known as single-dispatch gene This library is a backport of this functionality to Python 3.3. %prep -%autosetup -n singledispatch-%{version} -p1 +%autosetup -p1 -n singledispatch-%{version} %build %{__python3} setup.py build @@ -44,6 +44,9 @@ This library is a backport of this functionality to Python 3.3. %{python3_sitelib}/singledispatch/__pycache__/* %changelog +* Fri Feb 17 2023 wubijie - 4.0.0-1 +- Update package to version 4.0.0 + * Fri Jun 10 2022 SimpleUpdate Robot - 3.7.0-1 - Upgrade to version 3.7.0 diff --git a/singledispatch-3.7.0.tar.gz b/singledispatch-3.7.0.tar.gz deleted file mode 100644 index 7cbe87b8e0e516daa4501d4d9cad28bd895714dc..0000000000000000000000000000000000000000 Binary files a/singledispatch-3.7.0.tar.gz and /dev/null differ diff --git a/singledispatch-4.0.0.tar.gz b/singledispatch-4.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5318d99be240c8e85e5113d39621ffee78922fe0 Binary files /dev/null and b/singledispatch-4.0.0.tar.gz differ