Skip to content

Commit

Permalink
Merge pull request #106 from aitomatic/py3.11-min
Browse files Browse the repository at this point in the history
set minimum Python version as 3.11
  • Loading branch information
TheVinhLuong102 authored Mar 7, 2024
2 parents 9bc1db4 + 48ab372 commit f7e36d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
6 changes: 1 addition & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
from collections.abc import Sequence
from datetime import date
from pathlib import Path
from sys import version_info
if version_info < (3, 11):
import tomli as tomllib
else:
import tomllib
import tomllib


# pylint: disable=invalid-name
Expand Down
6 changes: 1 addition & 5 deletions openssa/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
from importlib.metadata import version, PackageNotFoundError
from pathlib import Path
from sys import version_info
if version_info < (3, 11):
import tomli as tomllib
else:
import tomllib
import tomllib

# pylint: disable=wrong-import-position
from openssa.core.ooda_rag.heuristic import TaskDecompositionHeuristic
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pydocstyle = ">=6.3"
pytest = ">=8.0"

[tool.poetry.dependencies]
python = ">=3.10,<3.12"
python = ">=3.11,<3.12"
# OpenAI interface
openai = ">=1.13"
# LlamaIndex & related
Expand All @@ -86,7 +86,6 @@ loguru = ">=0.7"
pydantic = "1.10.9"
python-dotenv = ">=1.0"
tqdm = ">=4.66"
tomli = { version = ">=2.0", python = "<3.11" }

# optional dependencies required by extras
streamlit = {version = ">=1.31", optional = true}
Expand Down

0 comments on commit f7e36d2

Please sign in to comment.