Skip to content

Commit 5ca06df

Browse files
authored
ci: remove separate 3.8 req file (#71)
1 parent 297ae71 commit 5ca06df

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

integration.cloudbuild.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@
1515
steps:
1616
- id: Install dependencies
1717
name: python:${_VERSION}
18-
entrypoint: /bin/bash
19-
args:
20-
- -c
21-
- |
22-
if [[ $_VERSION == "3.8" ]]; then version="-3.8"; fi
23-
pip install --user -r requirements${version}.txt
18+
entrypoint: pip
19+
args: ["install", "--user", "-r", "requirements.txt"]
2420

2521
- id: Install module (and test requirements)
2622
name: python:${_VERSION}
@@ -30,7 +26,14 @@ steps:
3026
- id: Run integration tests
3127
name: python:${_VERSION}
3228
entrypoint: python
33-
args: ["-m", "pytest", "--cov=langchain_google_memorystore_redis", "--cov-config=.coveragerc", "tests/"]
29+
args:
30+
[
31+
"-m",
32+
"pytest",
33+
"--cov=langchain_google_memorystore_redis",
34+
"--cov-config=.coveragerc",
35+
"tests/",
36+
]
3437
env:
3538
- "REDIS_URL=$_REDIS_URL"
3639

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ dependencies = [
1212
"langchain-core>=0.1.1, <1.0.0",
1313
"langchain-community>=0.0.18, <1.0.0",
1414
"redis>=5.0.0, <6.0.0",
15-
"numpy>=1.21.0, <2.0.0",
15+
"numpy==1.24.4; python_version<='3.8'",
16+
"numpy>=1.24.4, <2.0.0; python_version>'3.8'",
1617
]
1718
classifiers = [
1819
"Intended Audience :: Developers",

requirements-3.8.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
langchain-core==0.1.35
22
langchain-community==0.0.28
33
redis==5.0.3
4-
numpy==1.26.4
4+
numpy===1.24.4; python_version <= "3.8"
5+
numpy==1.26.4; python_version > "3.8"

0 commit comments

Comments
 (0)