From 3d6e176cb19b3bcb390d8ef204d61d81e999bb6d Mon Sep 17 00:00:00 2001 From: Tao He Date: Thu, 21 Sep 2023 12:17:59 +0800 Subject: [PATCH] ci: fixes the Python dependency error in CI (#3242) See CI failures in: - https://github.com/alibaba/GraphScope/actions/runs/6248880943/job/16964523349 Signed-off-by: Tao He --- .github/workflows/k8s-ci.yml | 4 ++-- coordinator/setup.py | 4 ++-- python/pyproject.toml | 2 +- python/setup.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/k8s-ci.yml b/.github/workflows/k8s-ci.yml index 09e46f8dd123..8a0f406652b2 100644 --- a/.github/workflows/k8s-ci.yml +++ b/.github/workflows/k8s-ci.yml @@ -380,7 +380,7 @@ jobs: - name: Install Python dependencies run: | cd ${GITHUB_WORKSPACE}/python - pip3 install -r requirements.txt + pip3 install -r requirements.txt -r requirements-dev.txt pip3 install pytest pytest-cov pytest-timeout # build python client proto @@ -571,7 +571,7 @@ jobs: - name: Install Python dependencies run: | cd ${GITHUB_WORKSPACE}/python - pip3 install -r requirements.txt + pip3 install -r requirements.txt -r requirements-dev.txt pip3 install pytest pytest-cov pytest-timeout # build python client proto diff --git a/coordinator/setup.py b/coordinator/setup.py index 0153c0a02777..dced1692db18 100644 --- a/coordinator/setup.py +++ b/coordinator/setup.py @@ -401,7 +401,7 @@ def parse_version(root, **kwargs): "parse": parse_version, }, setup_requires=[ - "setuptools_scm>=5.0.0", + "setuptools_scm>=5.0.0,<8", ], package_dir=parsed_package_dir(), packages=parsed_packages(), @@ -421,7 +421,7 @@ def parse_version(root, **kwargs): if os.name == "nt": class _ReprableString(str): - def __repr__(self) -> str: + def __repr__(self) -> str: # pylint: disable=invalid-repr-returned return self raise RuntimeError( diff --git a/python/pyproject.toml b/python/pyproject.toml index abacaf9b7927..b9d499870fd6 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools", "setuptools_scm", "wheel", "grpcio>=1.49", "grpcio-tools>=1.49", "mypy-protobuf", "numpy"] +requires = ["setuptools", "setuptools_scm>=5.0.0,<8", "wheel", "grpcio>=1.49", "grpcio-tools>=1.49", "mypy-protobuf", "numpy"] build-backend = "setuptools.build_meta" [tool.black] diff --git a/python/setup.py b/python/setup.py index f96243e764c4..1680934ac70f 100644 --- a/python/setup.py +++ b/python/setup.py @@ -311,7 +311,7 @@ def parse_version(root, **kwargs): "parse": parse_version, }, setup_requires=[ - "setuptools_scm>=5.0.0", + "setuptools_scm>=5.0.0,<8", ], package_dir=resolve_graphscope_package_dir(), packages=find_graphscope_packages(),