From 3dc154ab16cb046059b037cca4b5f8e79cc3bc76 Mon Sep 17 00:00:00 2001 From: retoor Date: Sun, 22 Jun 2025 22:21:30 +0200 Subject: [PATCH] Cleanup. --- Makefile | 18 ++++-------------- requirements.txt | 4 ++++ 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index cd57478..4a65e68 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,11 @@ -# Makefile for Adano Project - -# Variables VENV_DIR := .venv ACTIVATE := source $(VENV_DIR)/bin/activate PYTHON := $(VENV_DIR)/bin/python REQUIREMENTS := requirements.txt -# Default target .PHONY: all all: help -# Create virtual environment and install dependencies .PHONY: install install: @echo "Setting up virtual environment..." @@ -19,31 +14,26 @@ install: $(PYTHON) -m pip install --upgrade pip $(PYTHON) -m pip install -r $(REQUIREMENTS) -# Run the FastAPI app .PHONY: run -run: - @echo "Running the FastAPI server..." +serve: + @echo "Running the server..." $(PYTHON) -m uvicorn main:app -# Run tests (assuming you have tests set up) .PHONY: test test: @echo "Running tests..." - # Add your test command here, e.g., pytest - pytest + $(PYTHON) -m pytest -# Clean up virtual environment and __pycache__ .PHONY: clean clean: @echo "Cleaning up..." rm -rf $(VENV_DIR) find . -type d -name "__pycache__" -exec rm -rf {} + -# Help message .PHONY: help help: @echo "Makefile targets:" @echo " install - Create virtual environment and install dependencies" - @echo " run - Run the FastAPI server" + @echo " serve - Run server" @echo " test - Run tests" @echo " clean - Remove virtual environment and cache files" diff --git a/requirements.txt b/requirements.txt index 7de0f7a..0f44315 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,7 @@ python-multipart fastapi dataset uvicorn +anyio +pytest-asyncio +httpx +