move test_requirements.txt to requirements-dev.txt using project deps

Also add compat symlink for the old txt file and venv_dev makefile target
This commit is contained in:
InsanePrawn 2025-02-25 18:47:36 +01:00
parent 71cfaef537
commit 61da193d90
4 changed files with 16 additions and 6 deletions

View file

@ -4,12 +4,15 @@ PYTHON := python3
INSTALL_BINARY_NAME := kupferbootstrap
INSTALL_TARGET := ${HOME}/.local/bin/$(INSTALL_BINARY_NAME)
.PHONY: KBS_HELP install
.PHONY: KBS_HELP install venv_dev
DEFAULT: KBS_HELP
$(VENV)/bin/pip3:
$(PYTHON) -m venv $(VENV)
venv_dev: $(VENV)/bin/pip3 pyproject.toml requirements.txt requirements-dev.txt
$(VENV)/bin/pip3 install -r requirements-dev.txt
$(KUPFERBOOTSTRAP): $(VENV)/bin/pip3 pyproject.toml requirements.txt
$(VENV)/bin/pip3 install -r requirements.txt

View file

@ -16,6 +16,16 @@ dependencies = [
]
dynamic = ["version"]
[project.optional-dependencies]
all = ["kupferbootstrap[dev]"]
dev = [
"autoflake",
"mypy",
"yapf",
"pytest",
"pytest-cov",
]
[project.scripts]
kupferbootstrap = "kupferbootstrap.main:main"

1
requirements-dev.txt Normal file
View file

@ -0,0 +1 @@
-e .[all]

View file

@ -1,5 +0,0 @@
autoflake
mypy
yapf
pytest
pytest-cov

1
test_requirements.txt Symbolic link
View file

@ -0,0 +1 @@
requirements-dev.txt