diff --git a/Makefile b/Makefile index f8c4666..34b36a2 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,10 @@ clean: ## Removing cached python compiled files find . -name .ruff_cache | xargs rm -rfv install:clean ## Install dependencies + pip install -r requirements.txt flit install --deps develop --symlink + +install-full:install ## Install dependencies with pre-commit pre-commit install -f lint:fmt ## Run code linters diff --git a/pyproject.toml b/pyproject.toml index e796c78..8cf1bde 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,6 +34,8 @@ classifiers = [ "Framework :: Django :: 3.2", "Framework :: Django :: 4.1", "Framework :: Django :: 4.2", + "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", "Framework :: AsyncIO", "Topic :: Internet :: WWW/HTTP :: HTTP Servers", "Topic :: Internet :: WWW/HTTP", @@ -51,23 +53,6 @@ requires-python = ">=3.8" [tool.flit.metadata.urls] Documentation = "https://github.com/eadwinCode/ninja-schema" -[tool.flit.metadata.requires-extra] -test = [ - "pytest", - "pytest-cov", - "pytest-django", - "pytest-asyncio", - "mypy == 1.13.0", - "ruff == 0.7.4", - "django-stubs", -] -dev = [ - "pre-commit" -] -doc = [] - - - [tool.ruff] select = [ "E", # pycodestyle errors diff --git a/requirements-tests.txt b/requirements-tests.txt new file mode 100644 index 0000000..25b4ed3 --- /dev/null +++ b/requirements-tests.txt @@ -0,0 +1,7 @@ +django-stubs +mypy == 1.13.0 +pytest +pytest-asyncio +pytest-cov +pytest-django +ruff == 0.7.4 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..9b746e4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +-e . +-r requirements-tests.txt + +pre-commit