diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index dbbdd83..40c4e27 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,6 +13,6 @@ jobs: uses: epam/ai-dial-ci/.github/workflows/python_package_pr.yml@3.1.1 secrets: inherit with: - python-version: 3.9 - poetry-version: 1.8.5 - code-checks-python-versions: '["3.9", "3.10", "3.11", "3.12"]' + python-version: "3.10" + poetry-version: "1.8.5" + code-checks-python-versions: '["3.10", "3.11", "3.12", "3.13"]' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dda0c26..5b9c60d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,6 @@ jobs: uses: epam/ai-dial-ci/.github/workflows/python_package_release.yml@3.1.1 secrets: inherit with: - python-version: 3.9 - poetry-version: 1.8.5 - code-checks-python-versions: '["3.9", "3.10", "3.11", "3.12"]' + python-version: "3.10" + poetry-version: "1.8.5" + code-checks-python-versions: '["3.10", "3.11", "3.12", "3.13"]' diff --git a/.ort.yml b/.ort.yml index bda6993..5f381aa 100644 --- a/.ort.yml +++ b/.ort.yml @@ -14,4 +14,7 @@ resolutions: comment: "BSD 3-Clause New or Revised License: https://github.com/encode/httpcore/blob/1.0.9/LICENSE.md" - message: ".*PyPI::httpx:0\\.25\\.2.*" reason: "CANT_FIX_EXCEPTION" - comment: "BSD 3-Clause New or Revised License: https://github.com/encode/httpx/blob/0.25.0/LICENSE.md" \ No newline at end of file + comment: "BSD 3-Clause New or Revised License: https://github.com/encode/httpx/blob/0.25.0/LICENSE.md" + - message: ".*PyPI::typing-extensions:4\\.15\\.0.*" + reason: "CANT_FIX_EXCEPTION" + comment: "Same License as CPython: https://github.com/python/typing_extensions/blob/4.15.0/LICENSE" diff --git a/noxfile.py b/noxfile.py index 7bcd0f3..8acf624 100644 --- a/noxfile.py +++ b/noxfile.py @@ -53,7 +53,7 @@ def format(session: nox.Session): format_with_args(session, SRC) -@nox.session(python=["3.9", "3.10", "3.11", "3.12"]) +@nox.session(python=["3.10", "3.11", "3.12", "3.13"]) @nox.parametrize("pydantic", ["1.10.17", "2.8.2"]) @nox.parametrize("httpx", ["0.25.0", "0.27.0"]) @nox.parametrize("openai", ["1.1.0", "1.51.0"]) diff --git a/poetry.lock b/poetry.lock index 6939aa7..d496a0f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.2.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.1.1 and should not be changed by hand. [[package]] name = "aiofiles" @@ -310,7 +310,7 @@ version = "0.3.8" description = "Distribution utilities" optional = false python-versions = "*" -groups = ["dev", "test"] +groups = ["test"] files = [ {file = "distlib-0.3.8-py2.py3-none-any.whl", hash = "sha256:034db59a0b96f8ca18035f36290806a9a6e6bd9d1ff91e45a7f172eb17e51784"}, {file = "distlib-0.3.8.tar.gz", hash = "sha256:1530ea13e350031b6312d8580ddb6b27a104275a31106523b8f123787f494f64"}, @@ -344,27 +344,13 @@ files = [ [package.extras] test = ["pytest (>=6)"] -[[package]] -name = "filelock" -version = "3.19.1" -description = "A platform independent file lock." -optional = false -python-versions = ">=3.9" -groups = ["dev", "test"] -markers = "python_version == \"3.9\"" -files = [ - {file = "filelock-3.19.1-py3-none-any.whl", hash = "sha256:d38e30481def20772f5baf097c122c3babc4fcdb7e14e57049eb9d88c6dc017d"}, - {file = "filelock-3.19.1.tar.gz", hash = "sha256:66eda1888b0171c998b35be2bcc0f6d75c388a7ce20c3f3f37aa8e96c2dddf58"}, -] - [[package]] name = "filelock" version = "3.20.3" description = "A platform independent file lock." optional = false python-versions = ">=3.10" -groups = ["dev", "test"] -markers = "python_version >= \"3.10\"" +groups = ["test"] files = [ {file = "filelock-3.20.3-py3-none-any.whl", hash = "sha256:4b0dda527ee31078689fc205ec4f1c1bf7d56cf88b6dc9426c4f230e46c2dce1"}, {file = "filelock-3.20.3.tar.gz", hash = "sha256:18c57ee915c7ec61cff0ecf7f0f869936c7c30191bb0cf406f1341778d0834e1"}, @@ -670,7 +656,7 @@ version = "4.2.2" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." optional = false python-versions = ">=3.8" -groups = ["dev", "lint", "test"] +groups = ["lint", "test"] files = [ {file = "platformdirs-4.2.2-py3-none-any.whl", hash = "sha256:2d7a1657e36a80ea911db832a8a6ece5ee53d8de21edd5cc5879af6530b1bfee"}, {file = "platformdirs-4.2.2.tar.gz", hash = "sha256:38b7b51f512eed9e84a22788b4bce1de17c0adb134d6becb09836e37d8654cd3"}, @@ -725,8 +711,8 @@ files = [ annotated-types = ">=0.4.0" pydantic-core = "2.20.1" typing-extensions = [ - {version = ">=4.6.1", markers = "python_version < \"3.13\""}, {version = ">=4.12.2", markers = "python_version >= \"3.13\""}, + {version = ">=4.6.1", markers = "python_version < \"3.13\""}, ] [package.extras] @@ -972,31 +958,18 @@ notebook = ["ipywidgets (>=6)"] slack = ["slack-sdk"] telegram = ["requests"] -[[package]] -name = "typing-extensions" -version = "4.12.2" -description = "Backported and Experimental Type Hints for Python 3.8+" -optional = false -python-versions = ">=3.8" -groups = ["main"] -markers = "python_version >= \"3.13\"" -files = [ - {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, - {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, -] - [[package]] name = "typing-extensions" version = "4.15.0" description = "Backported and Experimental Type Hints for Python 3.9+" optional = false python-versions = ">=3.9" -groups = ["main", "dev", "lint", "test"] +groups = ["main", "lint", "test"] files = [ {file = "typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548"}, {file = "typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466"}, ] -markers = {main = "python_version < \"3.13\"", dev = "python_version < \"3.11\"", lint = "python_version < \"3.11\"", test = "python_version < \"3.11\""} +markers = {lint = "python_version < \"3.11\"", test = "python_version < \"3.11\""} [[package]] name = "virtualenv" @@ -1004,7 +977,7 @@ version = "20.36.1" description = "Virtual Python Environment builder" optional = false python-versions = ">=3.8" -groups = ["dev", "test"] +groups = ["test"] files = [ {file = "virtualenv-20.36.1-py3-none-any.whl", hash = "sha256:575a8d6b124ef88f6f51d56d656132389f961062a9177016a50e4f507bbcc19f"}, {file = "virtualenv-20.36.1.tar.gz", hash = "sha256:8befb5c81842c641f8ee658481e42641c68b5eab3521d8e092d18320902466ba"}, @@ -1012,10 +985,7 @@ files = [ [package.dependencies] distlib = ">=0.3.7,<1" -filelock = [ - {version = ">=3.16.1,<4", markers = "python_version < \"3.10\""}, - {version = ">=3.20.1,<4", markers = "python_version >= \"3.10\""}, -] +filelock = {version = ">=3.20.1,<4", markers = "python_version >= \"3.10\""} platformdirs = ">=3.9.1,<5" typing-extensions = {version = ">=4.13.2", markers = "python_version < \"3.11\""} @@ -1025,5 +995,5 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess [metadata] lock-version = "2.1" -python-versions = ">=3.9,<4.0" -content-hash = "643da6d9d34da90ce9587e4c27c975926e49ad58c404fcd6a7c69f99631f6354" +python-versions = ">=3.10,<4.0" +content-hash = "4219233c94f0a43d22424667aa17e3702edeadba1c441a1343a6f3838cbd17b5" diff --git a/pyproject.toml b/pyproject.toml index 2809368..d8831af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ repository = "https://github.com/epam/ai-dial-client-python" packages = [{ include = "aidial_client" }] [tool.poetry.dependencies] -python = ">=3.9,<4.0" +python = ">=3.10,<4.0" openai = ">=1.1.0,<2.0.0" httpx = ">=0.25.0,<1.0" pydantic = ">=1.10,<3"