mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-12 09:38:31 +00:00
Fix Python 3.13 compatibility (issue #2794)
- Update Python version constraint from '>=3.10,<3.13' to '>=3.10,<3.14' in all relevant files - Add test to verify Python version compatibility - Update GitHub Actions workflow to include Python 3.13 testing - Add Docker test to verify installation on Python 3.13 Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
18
tests/test_python_compatibility.py
Normal file
18
tests/test_python_compatibility.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Tests for Python version compatibility."""
|
||||
import sys
|
||||
import pytest
|
||||
|
||||
|
||||
def test_python_version_compatibility():
|
||||
"""Test that the package supports the current Python version."""
|
||||
# This test will fail if the package doesn't support the current Python version
|
||||
import crewai
|
||||
|
||||
# Print the Python version for debugging
|
||||
print(f"Python version: {sys.version}")
|
||||
|
||||
# Print the crewai version for debugging
|
||||
print(f"CrewAI version: {crewai.__version__}")
|
||||
|
||||
# If we got here, the import worked, which means the package supports this Python version
|
||||
assert True
|
||||
Reference in New Issue
Block a user