Compare commits
10 Commits
88e08ace74
...
3eda6cc512
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3eda6cc512 | ||
|
|
f54aecead9 | ||
|
|
fa1ce75332 | ||
|
|
e6615adfa8 | ||
|
|
04b6169752 | ||
|
|
14767decd5 | ||
|
|
b5a1abd47c | ||
|
|
33f7a9c5f0 | ||
|
|
cd21788132 | ||
|
|
ccc532c561 |
24
0001-add-version.patch
Normal file
24
0001-add-version.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
From d7299a8dffca708a26bdf7bb8f8da000a7f0981d Mon Sep 17 00:00:00 2001
|
||||||
|
From: chen-jan <chen_aka_jan@163.com>
|
||||||
|
Date: Thu, 18 May 2023 09:44:49 +0800
|
||||||
|
Subject: [PATCH] add version
|
||||||
|
|
||||||
|
---
|
||||||
|
setup.cfg | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/setup.cfg b/setup.cfg
|
||||||
|
index 69ab14c..3ef1080 100644
|
||||||
|
--- a/setup.cfg
|
||||||
|
+++ b/setup.cfg
|
||||||
|
@@ -5,6 +5,7 @@ universal = true
|
||||||
|
license_files =
|
||||||
|
LICENSE
|
||||||
|
name = singledispatch
|
||||||
|
+version = 4.0.0
|
||||||
|
author = Jason R. Coombs
|
||||||
|
author_email = jaraco@jaraco.com
|
||||||
|
description = Backport functools.singledispatch to older Pythons.
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -1,76 +1,61 @@
|
|||||||
Name: python-singledispatch
|
Name: python-singledispatch
|
||||||
Version: 3.4.0.3
|
Version: 4.0.0
|
||||||
Release: 14
|
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: %{pypi_source singledispatch}
|
||||||
|
|
||||||
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
|
||||||
that provides a simple form of generic programming known as single-dispatch generic functions.
|
that provides a simple form of generic programming known as single-dispatch generic functions.
|
||||||
This library is a backport of this functionality to Python 2.6 - 3.3.
|
This library is a backport of this functionality to Python 3.3.
|
||||||
|
|
||||||
%package -n python2-singledispatch
|
|
||||||
Summary: Transform a method into a single-dispatch generic function
|
|
||||||
%{?python_provide:%python_provide python2-singledispatch}
|
|
||||||
Provides: python-singledispatch = %{version}-%{release}
|
|
||||||
Obsoletes: python-singledispatch < 3.4.0.3-2
|
|
||||||
|
|
||||||
BuildRequires: python2-devel python2-setuptools python2-six
|
|
||||||
Requires: python2-six
|
|
||||||
|
|
||||||
%description -n python2-singledispatch
|
|
||||||
PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4
|
|
||||||
that provides a simple form of generic programming known as single-dispatch generic functions.
|
|
||||||
This library is a backport of this functionality to Python 2.6 - 3.3.
|
|
||||||
|
|
||||||
%package -n python3-singledispatch
|
%package -n python3-singledispatch
|
||||||
Summary: Transform a method into a single-dispatch generic function
|
Summary: Transform a method into a single-dispatch generic function
|
||||||
%{?python_provide:%python_provide python3-singledispatch}
|
%{?python_provide:%python_provide python3-singledispatch}
|
||||||
BuildRequires: python3-devel python3-setuptools python3-six
|
BuildRequires: python3-devel python3-six python3-pip python3-wheel
|
||||||
Requires: python3-six
|
Requires: python3-six
|
||||||
|
|
||||||
%description -n python3-singledispatch
|
%description -n python3-singledispatch
|
||||||
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
|
||||||
that provides a simple form of generic programming known as single-dispatch generic functions.
|
that provides a simple form of generic programming known as single-dispatch generic functions.
|
||||||
This library is a backport of this functionality to Python 2.6 - 3.3.
|
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
|
||||||
%{__python2} setup.py build
|
%pyproject_build
|
||||||
%{__python3} setup.py build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
%pyproject_install
|
||||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} setup.py test
|
py.test-%{python3_version} -vv tests || :
|
||||||
%{__python3} setup.py test
|
|
||||||
|
|
||||||
%files -n python2-singledispatch
|
|
||||||
%doc README.rst
|
|
||||||
%{python2_sitelib}/singledispatch-%{version}-py?.?.egg-info
|
|
||||||
%{python2_sitelib}/singledispatch.py*
|
|
||||||
%{python2_sitelib}/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}.dist-info
|
||||||
%{python3_sitelib}/singledispatch.py*
|
%{python3_sitelib}/singledispatch/*.py
|
||||||
%{python3_sitelib}/singledispatch_helpers.py*
|
%{python3_sitelib}/singledispatch/__pycache__/*
|
||||||
%{python3_sitelib}/__pycache__/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Nov 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.11-2
|
* Thu May 18 2023 Ge Wang <wang__ge@126.com> - 4.0.0-1
|
||||||
|
- Update to version 4.0.0
|
||||||
|
|
||||||
|
* Fri Jun 10 2022 SimpleUpdate Robot <tc@openeuler.org> - 3.7.0-1
|
||||||
|
- Upgrade to version 3.7.0
|
||||||
|
|
||||||
|
* Wed Mar 30 2022 yaoxin <yaoxin30@huawei.com> - 3.4.0.3-16
|
||||||
|
- Resolve compilation failures.
|
||||||
|
|
||||||
|
* Wed Oct 21 2020 zhanghua <zhanghua40@huawei.com> - 3.4.0.3-15
|
||||||
|
- remove python2 subpackage, fix changelog version as 3.4.0.3
|
||||||
|
|
||||||
|
* Tue Nov 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4.0.3-14
|
||||||
- Package init
|
- Package init
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
4
python-singledispatch.yaml
Normal file
4
python-singledispatch.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: pypi
|
||||||
|
src_repo: singledispatch
|
||||||
|
tag_prefix: ^v
|
||||||
|
seperator: .
|
||||||
Binary file not shown.
BIN
singledispatch-4.0.0.tar.gz
Normal file
BIN
singledispatch-4.0.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user