From bfb1413301f9c4b730e9560f1e3bb430528210ff Mon Sep 17 00:00:00 2001 From: Gian Date: Sun, 28 Apr 2024 11:12:09 +0100 Subject: [PATCH 1/2] Update README --- README.md | 7 ++++++- pyproject.toml | 7 +++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f74f8ff..c4d9e3c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,13 @@ # Django Rest Framework Simple API Errors +![PyPI](https://img.shields.io/pypi/v/drf-simple-api-errors) +![test workflow](https://github.com/gripep/drf-simple-api-errors/actions/workflows/build.yaml/badge.svg) +[![codecov](https://codecov.io/gh/gripep/drf-simple-api-errors/graph/badge.svg?token=1LJV518KMD)](https://codecov.io/gh/gripep/drf-simple-api-errors) +![pyversions](https://img.shields.io/pypi/pyversions/drf-simple-api-errors.svg) + ## What is this? -A library for [Django Rest Framework](https://www.django-rest-framework.org/) returning **consistent and easy-to-parse API error messages**. +A library for [Django Rest Framework](https://www.django-rest-framework.org/) returning **consistent, predictable and easy-to-parse API error messages**. This library was built with [RFC7807](https://tools.ietf.org/html/rfc7807) guidelines in mind, but with a small twist: it defines a "problem detail" as a `list` but it still serves as a way to include errors in a predictable and easy-to-parse format for any API consumer. diff --git a/pyproject.toml b/pyproject.toml index 88eb3e1..2efbc95 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,9 @@ classifiers = [ 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Framework :: Django', "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules", ] @@ -35,8 +38,8 @@ include = ["drf_simple_api_errors", "LICENSE.md"] [tool.poetry.dependencies] python = ">=3.8.1,<4.0" -Django = { version = ">=2.2" } -djangorestframework = { version = ">=3.0" } +Django = ">=2.2" +djangorestframework = ">=3.0" [build-system] From e970544e8cb4fdf7bfe2ea68a2982784e9405e4b Mon Sep 17 00:00:00 2001 From: Gian Date: Sun, 28 Apr 2024 11:17:08 +0100 Subject: [PATCH 2/2] Run poetry lock --- poetry.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index 3103cf5..79f1f9f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -599,4 +599,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = ">=3.8.1,<4.0" -content-hash = "740c7f66574443b9b0ebe11d5bc3620b3c3d4aa972813c9719d75823cdaaffa1" +content-hash = "482e22805e132d94ee0a867504dbcd9e2f311de7a169519fc5cd4e01d1e2c117"