restrict python version compatibility (#1731)

* drop 3.13

* revert

* Drop test cassette that was causing error

* trying to fix failing test

* adding thiago changes

* resolve final tests

* Drop skip
This commit is contained in:
Brandon Hancock (bhancock_ai)
2024-12-09 14:00:18 -05:00
committed by GitHub
parent 6b87d22a70
commit 54ebd6cf90
19 changed files with 243 additions and 796 deletions

View File

@@ -228,17 +228,18 @@ class TestDeployCommand(unittest.TestCase):
"builtins.open",
new_callable=unittest.mock.mock_open,
read_data="""
[project]
name = "test_project"
version = "0.1.0"
requires-python = ">=3.10,<=3.13"
dependencies = ["crewai"]
""",
[project]
name = "test_project"
version = "0.1.0"
requires-python = ">=3.10,<=3.12"
dependencies = ["crewai"]
""",
)
def test_get_project_name_python_310(self, mock_open):
from crewai.cli.utils import get_project_name
project_name = get_project_name()
print("project_name", project_name)
self.assertEqual(project_name, "test_project")
@unittest.skipIf(sys.version_info < (3, 11), "Requires Python 3.11+")
@@ -249,7 +250,7 @@ class TestDeployCommand(unittest.TestCase):
[project]
name = "test_project"
version = "0.1.0"
requires-python = ">=3.10,<=3.13"
requires-python = ">=3.10,<=3.12"
dependencies = ["crewai"]
""",
)