!5 Remove setuptools_scm version limit to fix build

From: @ultra_planet
Reviewed-by: @shinwell_hu
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2021-11-05 13:40:53 +00:00 committed by Gitee
commit 01d4382b31
2 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,27 @@
From ffb8949e480a71c285c761bf95612126ef8902a7 Mon Sep 17 00:00:00 2001
From: lingsheng <lingsheng@huawei.com>
Date: Fri, 5 Nov 2021 15:21:42 +0800
Subject: [PATCH] Remove setuptools_scm version limit to fix build
---
setup.cfg | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/setup.cfg b/setup.cfg
index 7332c49..8908eb3 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -26,7 +26,9 @@ install_requires =
zipp >= 0.4; python_version < '3.8'
singledispatch; python_version < '3.4'
contextlib2; python_version < '3'
-setup_requires = setuptools_scm[toml] >= 3.4.1
+setup_requires =
+ setuptools_scm
+ toml
[mypy]
ignore_missing_imports = True
--
2.23.0

View File

@ -1,11 +1,12 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-importlib-resources Name: python-importlib-resources
Version: 3.3.0 Version: 3.3.0
Release: 1 Release: 2
Summary: Read resources from Python packages Summary: Read resources from Python packages
License: Apache 2.0 License: Apache 2.0
URL: https://pypi.org/project/importlib-resources URL: https://pypi.org/project/importlib-resources
Source0: https://files.pythonhosted.org/packages/d1/34/f2aedc50b3a32eefd249159ea7497ece70022e35f6531bd4718fd9688cb1/importlib_resources-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/d1/34/f2aedc50b3a32eefd249159ea7497ece70022e35f6531bd4718fd9688cb1/importlib_resources-%{version}.tar.gz
Patch0001: Remove-setuptools_scm-version-limit-to-fix-build.patch
BuildArch: noarch BuildArch: noarch
%description %description
@ -40,7 +41,7 @@ Provides: python3-importlib-resources-doc
Development documents and examples for importlib-resources. Development documents and examples for importlib-resources.
%prep %prep
%autosetup -n importlib_resources-%{version} %autosetup -n importlib_resources-%{version} -p1
%build %build
%py3_build %py3_build
@ -80,5 +81,8 @@ mv %{buildroot}/doclist.lst .
%{_pkgdocdir} %{_pkgdocdir}
%changelog %changelog
* Fri Nov 05 2021 lingsheng <lingsheng@huawei.com> - 3.3.0-2
- Remove setuptools_scm version limit to fix build
* Fri Dec 18 2020 Python_Bot <Python_Bot@openeuler.org> * Fri Dec 18 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated - Package Spec generated