Added support for python 3.12 (#3295)
This commit is contained in:
@@ -37,7 +37,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.10", "3.11"]
|
python-version: ["3.10", "3.11", "3.12"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
@@ -71,7 +71,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9", "3.10", "3.11"]
|
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ We use `hatch` for managing development environments. To set up:
|
|||||||
hatch shell dev_py_3_9 # Python 3.9
|
hatch shell dev_py_3_9 # Python 3.9
|
||||||
hatch shell dev_py_3_10 # Python 3.10
|
hatch shell dev_py_3_10 # Python 3.10
|
||||||
hatch shell dev_py_3_11 # Python 3.11
|
hatch shell dev_py_3_11 # Python 3.11
|
||||||
|
hatch shell dev_py_3_12 # Python 3.12
|
||||||
|
|
||||||
# The environment will automatically install all dev dependencies
|
# The environment will automatically install all dev dependencies
|
||||||
# Run tests within the activated shell:
|
# Run tests within the activated shell:
|
||||||
@@ -51,6 +52,7 @@ make test
|
|||||||
make test-py-3.9 # Python 3.9 environment
|
make test-py-3.9 # Python 3.9 environment
|
||||||
make test-py-3.10 # Python 3.10 environment
|
make test-py-3.10 # Python 3.10 environment
|
||||||
make test-py-3.11 # Python 3.11 environment
|
make test-py-3.11 # Python 3.11 environment
|
||||||
|
make test-py-3.12 # Python 3.12 environment
|
||||||
|
|
||||||
# When using hatch shells, run tests with:
|
# When using hatch shells, run tests with:
|
||||||
make test # After activating a shell with hatch shell test_XX
|
make test # After activating a shell with hatch shell test_XX
|
||||||
|
|||||||
@@ -50,3 +50,6 @@ test-py-3.10:
|
|||||||
|
|
||||||
test-py-3.11:
|
test-py-3.11:
|
||||||
hatch run dev_py_3_11:test
|
hatch run dev_py_3_11:test
|
||||||
|
|
||||||
|
test-py-3.12:
|
||||||
|
hatch run dev_py_3_12:test
|
||||||
|
|||||||
@@ -114,6 +114,16 @@ features = [
|
|||||||
"extras",
|
"extras",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.hatch.envs.dev_py_3_12]
|
||||||
|
python = "3.12"
|
||||||
|
features = [
|
||||||
|
"test",
|
||||||
|
"graph",
|
||||||
|
"vector_stores",
|
||||||
|
"llms",
|
||||||
|
"extras",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.hatch.envs.default.scripts]
|
[tool.hatch.envs.default.scripts]
|
||||||
format = [
|
format = [
|
||||||
"ruff format",
|
"ruff format",
|
||||||
|
|||||||
Reference in New Issue
Block a user