From 33ea9742b26c9c809a7a877c5cb16030cec228e0 Mon Sep 17 00:00:00 2001 From: Colin Goutte Date: Fri, 25 Aug 2023 15:11:51 +0200 Subject: [PATCH] Add directiv in normal makefile for venv --- Makefile | 7 +++++++ requirements.txt | 15 +++++++++++++++ requirements_dev.txt | 22 ++++++++++++++++++++++ test_sql_database.py | 1 - 4 files changed, 44 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d2b2955..8912cc5 100644 --- a/Makefile +++ b/Makefile @@ -31,3 +31,10 @@ docs: cd docs && firefox ./_build/html/README.html ./_build/html/index.html & .PHONY: docs + +venv_install: + make -f MakefileVenv install_dev + + +venv_test: + make -f MakefileVenv test diff --git a/requirements.txt b/requirements.txt index e4f81fa..2c80ff2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,16 @@ -i https://pypi.org/simple +annotated-types==0.5.0 ; python_version >= '3.7' +anyio==3.7.1 ; python_version >= '3.7' +click==8.1.7 ; python_version >= '3.7' +fastapi==0.101.1 +greenlet==2.0.2 ; python_version >= '3' and platform_machine == 'aarch64' or (platform_machine == 'ppc64le' or (platform_machine == 'x86_64' or (platform_machine == 'amd64' or (platform_machine == 'AMD64' or (platform_machine == 'win32' or platform_machine == 'WIN32'))))) +h11==0.14.0 ; python_version >= '3.7' +idna==3.4 ; python_version >= '3.5' +pydantic==2.3.0 ; python_version >= '3.7' +pydantic-core==2.6.3 ; python_version >= '3.7' +sniffio==1.3.0 ; python_version >= '3.7' +sqlalchemy==1.4.49 +starlette==0.27.0 ; python_version >= '3.7' +typing-extensions==4.7.1 ; python_version >= '3.7' +uvicorn==0.23.2 +wheel==0.41.2 diff --git a/requirements_dev.txt b/requirements_dev.txt index f9e31e3..8edcb73 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,5 +1,27 @@ -i https://pypi.org/simple +anyio==3.7.1 ; python_version >= '3.7' +attrs==23.1.0 ; python_version >= '3.7' +certifi==2023.7.22 ; python_version >= '3.6' +exceptiongroup==1.1.3 ; python_version >= '3.7' +fancycompleter==0.9.1 +h11==0.14.0 ; python_version >= '3.7' +httpcore==0.17.3 ; python_version >= '3.7' +httpx==0.24.1 +idna==3.4 ; python_version >= '3.5' iniconfig==2.0.0 ; python_version >= '3.7' +outcome==1.2.0 ; python_version >= '3.7' packaging==23.1 ; python_version >= '3.7' +pdbpp==0.10.3 pluggy==1.2.0 ; python_version >= '3.7' +pygments==2.16.1 ; python_version >= '3.7' +pyrepl==0.9.0 +pysocks==1.7.1 pytest==7.4.0 +selenium==4.11.2 +sniffio==1.3.0 ; python_version >= '3.7' +sortedcontainers==2.4.0 +trio==0.22.2 ; python_version >= '3.7' +trio-websocket==0.10.3 ; python_version >= '3.7' +urllib3[socks]==2.0.4 ; python_version >= '3.7' +wmctrl==0.4 +wsproto==1.2.0 ; python_full_version >= '3.7.0' diff --git a/test_sql_database.py b/test_sql_database.py index a368476..81a73a0 100644 --- a/test_sql_database.py +++ b/test_sql_database.py @@ -7,7 +7,6 @@ from database import Base from dev import app, get_db from models import Movie -import pytest SQLALCHEMY_DATABASE_URL = "sqlite://"