mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
feat: move core functionality to lib workspace structure
This commit is contained in:
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@@ -45,7 +45,7 @@ jobs:
|
|||||||
enable-cache: false
|
enable-cache: false
|
||||||
|
|
||||||
- name: Install the project
|
- name: Install the project
|
||||||
run: uv sync --all-packages --all-extras
|
run: uv sync --all-packages --all-extras --no-install-project
|
||||||
|
|
||||||
- name: Restore test durations
|
- name: Restore test durations
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
@@ -75,7 +75,7 @@ jobs:
|
|||||||
# DURATIONS_ARG="--durations-path=${DURATION_FILE}"
|
# DURATIONS_ARG="--durations-path=${DURATION_FILE}"
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
uv run pytest tests/ \
|
cd lib/crewai && uv run pytest . \
|
||||||
--block-network \
|
--block-network \
|
||||||
--timeout=30 \
|
--timeout=30 \
|
||||||
-vv \
|
-vv \
|
||||||
|
|||||||
2
.github/workflows/type-checker.yml
vendored
2
.github/workflows/type-checker.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
|||||||
enable-cache: false
|
enable-cache: false
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: uv sync --all-groups --all-extras
|
run: uv sync --all-packages --all-extras
|
||||||
|
|
||||||
- name: Get changed Python files
|
- name: Get changed Python files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
|
|||||||
@@ -1,56 +0,0 @@
|
|||||||
[project]
|
|
||||||
name = "crewai-core"
|
|
||||||
dynamic = ["version"]
|
|
||||||
description = ""
|
|
||||||
readme = "README.md"
|
|
||||||
authors = [
|
|
||||||
{ name = "Greyson Lalonde", email = "greyson.r.lalonde@gmail.com" }
|
|
||||||
]
|
|
||||||
keywords = [
|
|
||||||
"crewai",
|
|
||||||
"ai",
|
|
||||||
"agents",
|
|
||||||
"framework",
|
|
||||||
"orchestration",
|
|
||||||
"llm",
|
|
||||||
"core",
|
|
||||||
"typed",
|
|
||||||
]
|
|
||||||
classifiers = [
|
|
||||||
"Development Status :: 3 - Alpha",
|
|
||||||
"Intended Audience :: Developers",
|
|
||||||
"Operating System :: OS Independent",
|
|
||||||
"Programming Language :: Python :: 3",
|
|
||||||
"Programming Language :: Python :: 3.12",
|
|
||||||
"Programming Language :: Python :: 3.13",
|
|
||||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
||||||
"Typing :: Typed",
|
|
||||||
]
|
|
||||||
requires-python = ">=3.10, <3.14"
|
|
||||||
dependencies = [
|
|
||||||
"chromadb~=1.1.0",
|
|
||||||
"pydantic-settings>=2.10.1",
|
|
||||||
"uv>=0.4.25",
|
|
||||||
]
|
|
||||||
|
|
||||||
[project.urls]
|
|
||||||
Homepage = "https://crewai.com"
|
|
||||||
Documentation = "https://docs.crewai.com"
|
|
||||||
Repository = "https://github.com/crewAIInc/crewAI"
|
|
||||||
|
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
|
||||||
testpaths = ["tests"]
|
|
||||||
asyncio_mode = "strict"
|
|
||||||
asyncio_default_fixture_loop_scope = "function"
|
|
||||||
|
|
||||||
|
|
||||||
[build-system]
|
|
||||||
requires = ["hatchling"]
|
|
||||||
build-backend = "hatchling.build"
|
|
||||||
|
|
||||||
[tool.hatch.version]
|
|
||||||
path = "src/crewai/core/__init__.py"
|
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
|
||||||
packages = ["src/crewai"]
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
__version__ = "1.0.0a0"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
"""Core utilities for CrewAI."""
|
|
||||||
124
lib/crewai/pyproject.toml
Normal file
124
lib/crewai/pyproject.toml
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
[project]
|
||||||
|
name = "crewai"
|
||||||
|
dynamic = ["version"]
|
||||||
|
description = ""
|
||||||
|
readme = "README.md"
|
||||||
|
authors = [
|
||||||
|
{ name = "Greyson Lalonde", email = "greyson.r.lalonde@gmail.com" }
|
||||||
|
]
|
||||||
|
keywords = [
|
||||||
|
"crewai",
|
||||||
|
"ai",
|
||||||
|
"agents",
|
||||||
|
"framework",
|
||||||
|
"orchestration",
|
||||||
|
"llm",
|
||||||
|
"core",
|
||||||
|
"typed",
|
||||||
|
]
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 3 - Alpha",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
|
"Programming Language :: Python :: 3.13",
|
||||||
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||||
|
"Typing :: Typed",
|
||||||
|
]
|
||||||
|
requires-python = ">=3.10, <3.14"
|
||||||
|
dependencies = [
|
||||||
|
# Core Dependencies
|
||||||
|
"crewai",
|
||||||
|
"pydantic>=2.11.9",
|
||||||
|
"openai>=1.13.3",
|
||||||
|
"litellm==1.74.9",
|
||||||
|
"instructor>=1.3.3",
|
||||||
|
# Text Processing
|
||||||
|
"pdfplumber>=0.11.4",
|
||||||
|
"regex>=2024.9.11",
|
||||||
|
# Telemetry and Monitoring
|
||||||
|
"opentelemetry-api>=1.30.0",
|
||||||
|
"opentelemetry-sdk>=1.30.0",
|
||||||
|
"opentelemetry-exporter-otlp-proto-http>=1.30.0",
|
||||||
|
"tokenizers>=0.20.3",
|
||||||
|
"openpyxl>=3.1.5",
|
||||||
|
"pyvis>=0.3.2",
|
||||||
|
# Authentication and Security
|
||||||
|
"python-dotenv>=1.1.1",
|
||||||
|
"pyjwt>=2.9.0",
|
||||||
|
# Configuration and Utils
|
||||||
|
"click>=8.1.7",
|
||||||
|
"appdirs>=1.4.4",
|
||||||
|
"jsonref>=1.1.0",
|
||||||
|
"json-repair==0.25.2",
|
||||||
|
"tomli-w>=1.1.0",
|
||||||
|
"tomli>=2.0.2",
|
||||||
|
"blinker>=1.9.0",
|
||||||
|
"json5>=0.10.0",
|
||||||
|
"portalocker==2.7.0",
|
||||||
|
"chromadb~=1.1.0",
|
||||||
|
"pydantic-settings>=2.10.1",
|
||||||
|
"uv>=0.4.25",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
tools = [
|
||||||
|
"crewai-tools",
|
||||||
|
]
|
||||||
|
embeddings = [
|
||||||
|
"tiktoken~=0.8.0"
|
||||||
|
]
|
||||||
|
pdfplumber = [
|
||||||
|
"pdfplumber>=0.11.4",
|
||||||
|
]
|
||||||
|
pandas = [
|
||||||
|
"pandas>=2.2.3",
|
||||||
|
]
|
||||||
|
openpyxl = [
|
||||||
|
"openpyxl>=3.1.5",
|
||||||
|
]
|
||||||
|
mem0 = ["mem0ai>=0.1.94"]
|
||||||
|
docling = [
|
||||||
|
"docling>=2.12.0",
|
||||||
|
]
|
||||||
|
aisuite = [
|
||||||
|
"aisuite>=0.1.10",
|
||||||
|
]
|
||||||
|
qdrant = [
|
||||||
|
"qdrant-client[fastembed]>=1.14.3",
|
||||||
|
]
|
||||||
|
aws = [
|
||||||
|
"boto3>=1.40.38",
|
||||||
|
]
|
||||||
|
watson = [
|
||||||
|
"ibm-watsonx-ai>=1.3.39",
|
||||||
|
]
|
||||||
|
voyageai = [
|
||||||
|
"voyageai>=0.3.5",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
crewai = "crewai.cli.cli:crewai"
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
Homepage = "https://crewai.com"
|
||||||
|
Documentation = "https://docs.crewai.com"
|
||||||
|
Repository = "https://github.com/crewAIInc/crewAI"
|
||||||
|
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
testpaths = ["tests"]
|
||||||
|
asyncio_mode = "strict"
|
||||||
|
asyncio_default_fixture_loop_scope = "function"
|
||||||
|
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["hatchling"]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
[tool.hatch.version]
|
||||||
|
path = "src/crewai/__init__.py"
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.wheel]
|
||||||
|
packages = ["src/crewai"]
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user