From 1c17c509309eeef49e5381eb08971d8793f172c5 Mon Sep 17 00:00:00 2001 From: Cocoon-Break <54054995+kuishou68@users.noreply.github.com> Date: Sun, 26 Apr 2026 08:11:34 +0800 Subject: [PATCH] fix: move test-only deps out of requirements.txt into requirements-dev.txt (#411) * fix: remove test-only deps from requirements.txt, add requirements-dev.txt Test dependencies (pytest, pytest-asyncio, pytest-mock, pytest-benchmark) should not be installed in production. Move them to requirements-dev.txt. Closes #410 Signed-off-by: Cocoon-Break <54054995+kuishou68@users.noreply.github.com> * fix: add requirements-dev.txt with test and dev dependencies Closes #410 Signed-off-by: Cocoon-Break <54054995+kuishou68@users.noreply.github.com> --------- Signed-off-by: Cocoon-Break <54054995+kuishou68@users.noreply.github.com> --- requirements-dev.txt | 13 +++++++++++++ requirements.txt | 15 ++------------- 2 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 requirements-dev.txt diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 00000000..8294526e --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,13 @@ +# Development and testing dependencies +# Install with: pip install -r requirements.txt -r requirements-dev.txt + +# Testing +pytest>=7.0.0 +pytest-asyncio>=0.21.0 +pytest-mock>=3.10.0 +pytest-benchmark>=4.0.0 + +# Linting and formatting +black>=23.0.0 +flake8>=6.0.0 +mypy>=1.0.0 diff --git a/requirements.txt b/requirements.txt index 6e430a52..e990db07 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,14 +4,6 @@ scipy>=1.7.0 torch>=1.12.0 torchvision>=0.13.0 -# Testing dependencies -pytest>=7.0.0 -pytest-asyncio>=0.21.0 -pytest-mock>=3.10.0 -pytest-benchmark>=4.0.0 -httpx>=0.24.0 -pydantic-settings>=2.0.0 - # API dependencies fastapi>=0.95.0 uvicorn>=0.20.0 @@ -20,6 +12,8 @@ pydantic>=1.10.0 python-jose[cryptography]>=3.3.0 python-multipart>=0.0.6 passlib[bcrypt]>=1.7.4 +httpx>=0.24.0 +pydantic-settings>=2.0.0 # Database dependencies sqlalchemy>=2.0.0 @@ -42,8 +36,3 @@ scikit-learn>=1.2.0 # Monitoring dependencies prometheus-client>=0.16.0 - -# Development dependencies -black>=23.0.0 -flake8>=6.0.0 -mypy>=1.0.0 \ No newline at end of file