From bf96f7e25a55f7e48f5b9d7a527c86fd69369b9e Mon Sep 17 00:00:00 2001 From: zhangxianting Date: Tue, 2 Apr 2024 18:00:21 +0800 Subject: [PATCH] Increase the upper limit version of networkx to fix install, networkx<3.2 to networkx<=3.2 (cherry picked from commit 7d800aba0deb839d3e6e632f51dd9084ccf1260e) --- ...t-version-of-networkx-to-fix-install.patch | 25 +++++++++++++++++++ python-pytype.spec | 11 +++++--- 2 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 0001-Increase-the-upper-limit-version-of-networkx-to-fix-install.patch diff --git a/0001-Increase-the-upper-limit-version-of-networkx-to-fix-install.patch b/0001-Increase-the-upper-limit-version-of-networkx-to-fix-install.patch new file mode 100644 index 0000000..ca97699 --- /dev/null +++ b/0001-Increase-the-upper-limit-version-of-networkx-to-fix-install.patch @@ -0,0 +1,25 @@ +From 70fced6e46bf23c468ee447331bc4537d43cafb7 Mon Sep 17 00:00:00 2001 +From: zhangxianting +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 + diff --git a/python-pytype.spec b/python-pytype.spec index 9b38cff..ad4ddcb 100644 --- a/python-pytype.spec +++ b/python-pytype.spec @@ -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 - 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 - 2023.9.19-1 -- Init package. \ No newline at end of file +- Init package.