Skip to content

Commit

Permalink
fix: python version update (#571)
Browse files Browse the repository at this point in the history
Co-authored-by: Wendong-Fan <[email protected]>
Co-authored-by: Wendong <[email protected]>
  • Loading branch information
3 people authored Jun 26, 2024
1 parent 6318c37 commit 682f7f9
Show file tree
Hide file tree
Showing 9 changed files with 609 additions and 622 deletions.
2 changes: 1 addition & 1 deletion .github/actions/camel_install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
python-version:
description: 'Python version.'
required: true
default: '3.8'
default: '3.9'
runs:
using: "composite"
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: set up python environment and install dependencies
uses: ./.github/actions/camel_install
with:
python-version: "3.8"
python-version: "3.9"
- name: Build
shell: bash
run: poetry build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Python environment and install dependencies
uses: ./.github/actions/camel_install
with:
python-version: "3.8"
python-version: "3.9"
- name: Sphinx build
run: |
cd docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
- name: Set up Python environment and install dependencies
uses: ./.github/actions/camel_install
with:
python-version: "3.8"
python-version: "3.9"
- name: Run pre-commit
run: poetry run pre-commit run --all-files
4 changes: 2 additions & 2 deletions .github/workflows/pytest_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Python environment and install dependencies
uses: ./.github/actions/camel_install
with:
python-version: "3.8"
python-version: "3.9"
- name: Run pytest
env:
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Set up Python environment and install dependencies
uses: ./.github/actions/camel_install
with:
python-version: "3.8"
python-version: "3.9"
- name: Run pytest
env:
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pytest_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Python environment and install dependencies
uses: ./.github/actions/camel_install
with:
python-version: "3.8"
python-version: "3.9"
- name: Run pytest
env:
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Set up Python environment and install dependencies
uses: ./.github/actions/camel_install
with:
python-version: "3.8"
python-version: "3.9"
- name: Run pytest
env:
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
Expand All @@ -60,7 +60,7 @@ jobs:
- name: Set up Python environment and install dependencies
uses: ./.github/actions/camel_install
with:
python-version: "3.8"
python-version: "3.9"
- name: Run pytest
env:
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ exit
Install `CAMEL` from source with conda and pip:
```sh
# Create a conda virtual environment
conda create --name camel python=3.10
conda create --name camel python=3.9
# Activate CAMEL conda environment
conda activate camel
Expand Down
1,209 changes: 598 additions & 611 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repository = "https://github.com/camel-ai/camel"
documentation = "https://docs.camel-ai.org"

[tool.poetry.dependencies]
python = ">=3.8.1,<3.12"
python = ">=3.9.0,<3.12"
numpy = "^1"
openai = "^1.2.3"
tiktoken = "^0.7.0"
Expand Down

0 comments on commit 682f7f9

Please sign in to comment.