mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-18 05:05:16 +01:00
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,6 +13,7 @@ build/
|
||||
|
||||
# Virtual environments
|
||||
.env
|
||||
.env.sh
|
||||
venv/
|
||||
ENV/
|
||||
|
||||
|
||||
53
Makefile
Normal file
53
Makefile
Normal file
@@ -0,0 +1,53 @@
|
||||
SHELL := /bin/bash
|
||||
|
||||
# Color codes
|
||||
COLOR_RESET=\033[0m
|
||||
COLOR_CYAN=\033[1;36m
|
||||
COLOR_GREEN=\033[1;32m
|
||||
|
||||
.PHONY: help install dev-install run
|
||||
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
.SILENT:
|
||||
|
||||
name := $(word 2,$(MAKECMDGOALS))
|
||||
|
||||
help:
|
||||
@echo "Please use 'make <target>' where <target> is one of the following:"
|
||||
@echo " help Return this message with usage instructions."
|
||||
@echo " install Will install the dependencies and create a virtual environment."
|
||||
@echo " dev-install Will install the dev dependencies too."
|
||||
@echo " run <folder_name> Runs GPT Engineer on the folder with the given name."
|
||||
|
||||
dev-install: create-venv upgrade-pip install-dependencies install-pre-commit farewell
|
||||
|
||||
install: create-venv upgrade-pip install-dependencies farewell
|
||||
|
||||
create-venv:
|
||||
@echo -e "$(COLOR_CYAN)Creating virtual environment...$(COLOR_RESET)" && \
|
||||
python -m venv venv
|
||||
|
||||
upgrade-pip:
|
||||
@echo -e "$(COLOR_CYAN)Upgrading pip...$(COLOR_RESET)" && \
|
||||
source venv/bin/activate && \
|
||||
pip install --upgrade pip >> /dev/null
|
||||
|
||||
install-dependencies:
|
||||
@echo -e "$(COLOR_CYAN)Installing dependencies...$(COLOR_RESET)" && \
|
||||
source venv/bin/activate && \
|
||||
pip install -r requirements.txt >> /dev/null
|
||||
|
||||
install-pre-commit:
|
||||
@echo -e "$(COLOR_CYAN)Installing pre-commit hooks...$(COLOR_RESET)" && \
|
||||
source venv/bin/activate && \
|
||||
pre-commit install
|
||||
|
||||
farewell:
|
||||
@echo -e "$(COLOR_GREEN)All done!$(COLOR_RESET)"
|
||||
|
||||
run:
|
||||
@echo -e "$(COLOR_CYAN)Running GPT Engineer on $(COLOR_GREEN)$(name)$(COLOR_CYAN) folder...$(COLOR_RESET)" && \
|
||||
source venv/bin/activate && \
|
||||
python -m gpt_engineer.main $(name)
|
||||
|
||||
Reference in New Issue
Block a user