Skip to content

Commit 682f7f9

Browse files
fix: python version update (#571)
Co-authored-by: Wendong-Fan <[email protected]> Co-authored-by: Wendong <[email protected]>
1 parent 6318c37 commit 682f7f9

File tree

9 files changed

+609
-622
lines changed

9 files changed

+609
-622
lines changed

.github/actions/camel_install/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
python-version:
55
description: 'Python version.'
66
required: true
7-
default: '3.8'
7+
default: '3.9'
88
runs:
99
using: "composite"
1010
steps:

.github/workflows/build_package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: set up python environment and install dependencies
1313
uses: ./.github/actions/camel_install
1414
with:
15-
python-version: "3.8"
15+
python-version: "3.9"
1616
- name: Build
1717
shell: bash
1818
run: poetry build

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Python environment and install dependencies
1515
uses: ./.github/actions/camel_install
1616
with:
17-
python-version: "3.8"
17+
python-version: "3.9"
1818
- name: Sphinx build
1919
run: |
2020
cd docs

.github/workflows/pre_commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- name: Set up Python environment and install dependencies
1515
uses: ./.github/actions/camel_install
1616
with:
17-
python-version: "3.8"
17+
python-version: "3.9"
1818
- name: Run pre-commit
1919
run: poetry run pre-commit run --all-files

.github/workflows/pytest_apps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Python environment and install dependencies
2323
uses: ./.github/actions/camel_install
2424
with:
25-
python-version: "3.8"
25+
python-version: "3.9"
2626
- name: Run pytest
2727
env:
2828
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Python environment and install dependencies
4141
uses: ./.github/actions/camel_install
4242
with:
43-
python-version: "3.8"
43+
python-version: "3.9"
4444
- name: Run pytest
4545
env:
4646
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"

.github/workflows/pytest_package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Python environment and install dependencies
2121
uses: ./.github/actions/camel_install
2222
with:
23-
python-version: "3.8"
23+
python-version: "3.9"
2424
- name: Run pytest
2525
env:
2626
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Python environment and install dependencies
4141
uses: ./.github/actions/camel_install
4242
with:
43-
python-version: "3.8"
43+
python-version: "3.9"
4444
- name: Run pytest
4545
env:
4646
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
@@ -60,7 +60,7 @@ jobs:
6060
- name: Set up Python environment and install dependencies
6161
uses: ./.github/actions/camel_install
6262
with:
63-
python-version: "3.8"
63+
python-version: "3.9"
6464
- name: Run pytest
6565
env:
6666
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ exit
104104
Install `CAMEL` from source with conda and pip:
105105
```sh
106106
# Create a conda virtual environment
107-
conda create --name camel python=3.10
107+
conda create --name camel python=3.9
108108
109109
# Activate CAMEL conda environment
110110
conda activate camel

poetry.lock

Lines changed: 598 additions & 611 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repository = "https://github.com/camel-ai/camel"
2727
documentation = "https://docs.camel-ai.org"
2828

2929
[tool.poetry.dependencies]
30-
python = ">=3.8.1,<3.12"
30+
python = ">=3.9.0,<3.12"
3131
numpy = "^1"
3232
openai = "^1.2.3"
3333
tiktoken = "^0.7.0"

0 commit comments

Comments
 (0)