Added make file and pyproject.toml

This commit is contained in:
SwiftyOS
2023-09-11 17:27:22 +02:00
committed by Merwane Hamadi
parent ef2107d9c2
commit d56b4d3368
2 changed files with 35 additions and 0 deletions

21
Makefile Normal file
View File

@@ -0,0 +1,21 @@
install:
@echo "Installing dependencies..."
@command -v poetry >/dev/null 2>&1 || { echo >&2 "Poetry not found, installing..."; curl -sSL https://install.python-poetry.org | python3 - ; }
poetry install
list_agents:
@echo "Listing all agents in autogpts..."
@for agent in $$(ls autogpts); do \
echo \\t$$agent; \
done
@echo \\t"forge"
benchmark_%:
@echo "Running benchmark for $*"
poetry run sh -c 'export PYTHONPATH=$$PYTHONPATH:./benchmark:./autogpts/$*; echo $$PYTHONPATH; python -m benchmark start --agent-config autogpts/$*/benchmark_config.json'
run:
python main.py

14
pyproject.toml Normal file
View File

@@ -0,0 +1,14 @@
[tool.poetry]
name = "auto-gpt"
version = "0.1.0"
description = ""
authors = ["SwiftyOS <craigswift13@gmail.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"