Skip to content

Commit

Permalink
ci: fixes the Python dependency error in CI (#3242)
Browse files Browse the repository at this point in the history
  • Loading branch information
sighingnow authored Sep 21, 2023
1 parent 6e883d2 commit 3d6e176
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/k8s-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions coordinator/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 3d6e176

Please sign in to comment.