!7 [sync] PR-5: Increase the upper limit version of networkx to fix install

From: @openeuler-sync-bot 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2024-05-15 02:02:01 +00:00 committed by Gitee
commit 18f250c14e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 32 additions and 4 deletions

View File

@ -0,0 +1,25 @@
From 70fced6e46bf23c468ee447331bc4537d43cafb7 Mon Sep 17 00:00:00 2001
From: zhangxianting <zhangxianting@uniontech.com>
Date: Tue, 2 Apr 2024 17:55:55 +0800
Subject: [PATCH] Increase the upper limit version of networkx to fix install
---
setup.cfg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.cfg b/setup.cfg
index 925465d..f5dcf11 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -33,7 +33,7 @@ install_requires =
importlab>=0.8
jinja2>=3.1.2
libcst>=1.0.1
- networkx<3.2
+ networkx<=3.2.1
ninja>=1.10.0.post2
pycnite>=2023.9.14
pydot>=1.4.2
--
2.33.0

View File

@ -2,13 +2,14 @@
Name: python-%{pypi_name}
Version: 2023.9.19
Release: 1
Release: 2
Summary: Python type inferencer
License: Apache 2.0
URL: https://github.com/google/pytype
Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
Patch1: 0001-fix-parse-error-py.patch
Patch2: 0001-Increase-the-upper-limit-version-of-networkx-to-fix-install.patch
%description
Pytype checks and infers types for your Python code - without requiring type annotations.
@ -24,7 +25,6 @@ BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-pybind11
BuildRequires: gcc-c++
Requires: ninja-build
%description -n python3-%{pypi_name}
Pytype checks and infers types for your Python code - without requiring type annotations.
@ -45,8 +45,11 @@ Pytype checks and infers types for your Python code - without requiring type ann
%{python3_sitearch}/pytype/
%{python3_sitearch}/pytype_extensions/
%{python3_sitearch}/third_party/
%{_bindir}
%{_bindir}/*
%changelog
* Tue Apr 02 2024 zhangxianting <zhangxianting@uniontech.com> - 2023.9.19-2
- Increase the upper limit version of networkx to fix install, networkx<3.2 to networkx<=3.2
* Wed Sep 20 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 2023.9.19-1
- Init package.
- Init package.