mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-02 13:48:09 +00:00
fix: keep json crew scaffolds python-free
This commit is contained in:
committed by
Vinicius Brasil
parent
0bdf9ebf26
commit
ce3e94fe74
@@ -97,7 +97,7 @@ requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
only-include = ["agents", "crew.jsonc", "tools", "knowledge", "skills", "src"]
|
||||
only-include = ["agents", "crew.jsonc", "tools", "knowledge", "skills"]
|
||||
|
||||
[tool.crewai]
|
||||
type = "crew"
|
||||
@@ -1138,10 +1138,6 @@ def create_json_crew(
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
from crewai_cli.deploy.archive import add_json_crew_deploy_wrapper
|
||||
|
||||
add_json_crew_deploy_wrapper(folder_path)
|
||||
|
||||
# Write .gitignore
|
||||
(folder_path / ".gitignore").write_text(_GITIGNORE, encoding="utf-8")
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ def _stage_project(root: Path, files: list[Path]) -> Path:
|
||||
shutil.copy2(source, destination)
|
||||
|
||||
if _is_json_crew_project(staging_root):
|
||||
add_json_crew_deploy_wrapper(staging_root)
|
||||
_add_json_crew_deploy_wrapper(staging_root)
|
||||
except Exception:
|
||||
shutil.rmtree(staging_root, ignore_errors=True)
|
||||
raise
|
||||
@@ -212,7 +212,7 @@ def _class_name(package_name: str) -> str:
|
||||
return class_name
|
||||
|
||||
|
||||
def add_json_crew_deploy_wrapper(root: Path) -> None:
|
||||
def _add_json_crew_deploy_wrapper(root: Path) -> None:
|
||||
"""Add Python wrapper files required to deploy a JSON crew project."""
|
||||
package_name = _package_name(root)
|
||||
if package_name is None:
|
||||
|
||||
Reference in New Issue
Block a user