Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/full-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [Windows, macOS] # exclude Ubuntu as it is available in pr-tests
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: Windows
image: windows-2022
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/latest-deps-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
jobs:
call-tests:
strategy:
matrix: #
os: [Ubuntu, macOS, Windows]
python-version: ["3.9", "3.10", "3.11"]
matrix:
os: [Ubuntu]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: Ubuntu
image: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [Ubuntu]
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: Ubuntu
image: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-and-build-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Set up Python
uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-published-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Set up Python
uses: actions/setup-python@v5
Expand Down
549 changes: 269 additions & 280 deletions poetry.lock

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "NeMo Guardrails is an open-source toolkit for easily adding progr
authors = ["NVIDIA <nemoguardrails@nvidia.com>"]
license = "LICENSE.md"
readme = "README.md"
version = "0.12.0"
version = "1.0.0-rc1"
packages = [{ include = "nemoguardrails" }]


Expand All @@ -30,6 +30,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

[tool.poetry.urls]
Expand All @@ -44,7 +45,7 @@ repository = "https://github.com/NVIDIA/NeMo-Guardrails"
nemoguardrails = "nemoguardrails.__main__:app"

[tool.poetry.dependencies]
python = ">=3.9,!=3.9.7,<3.12"
python = ">=3.9,!=3.9.7,<3.13"
aiohttp = ">=3.10.11"
annoy = ">=1.17.3"
fastapi = ">=0.103.0,"
Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ log_level = DEBUG
# phase, which will cause tests to fail or "magically" ignored.
log_cli = False

asyncio_default_fixture_loop_scope = function

testpaths =
tests
docs/colang-2/examples
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# > pyenv local 3.9 3.10 3.11

[tox]
envlist = py39, py310, py311
envlist = py39, py310, py311, py312

[testenv]
description = Run tests with pytest under different Python versions using Poetry
Expand All @@ -18,3 +18,6 @@ commands_pre =
poetry install
commands =
poetry run pytest tests/ --import-mode importlib

[pytest]
asyncio_default_fixture_loop_scope = function
Loading