From 16c19cf2a3e62b054cfe394825376d40990d071a Mon Sep 17 00:00:00 2001 From: lixiaoyong1 Date: Thu, 9 May 2024 14:23:49 +0800 Subject: [PATCH] Drop no longer used runtime dependency on attrs (cherry picked from commit b8c8be55fa9b92828b9c4b8dc303d2c8a96dc180) --- ...ger-used-runtime-dependency-on-attrs.patch | 31 +++++++++++++++++++ openapi-schema-validator.spec | 6 +++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 0001-Drop-no-longer-used-runtime-dependency-on-attrs.patch diff --git a/0001-Drop-no-longer-used-runtime-dependency-on-attrs.patch b/0001-Drop-no-longer-used-runtime-dependency-on-attrs.patch new file mode 100644 index 0000000..22a1564 --- /dev/null +++ b/0001-Drop-no-longer-used-runtime-dependency-on-attrs.patch @@ -0,0 +1,31 @@ +From a37b6f58ce9fa270848bd805f3f05ea03f0ae10e Mon Sep 17 00:00:00 2001 +From: Stanislav Levin +Date: Fri, 30 Sep 2022 14:45:33 +0300 +Subject: [PATCH] Drop no longer used runtime dependency on attrs + +The last usage of attrs has been dropped in 22b12e7, but +attrs is still marked as runtime dependency in pyproject.toml. + +Fixes: https://github.com/p1c2u/openapi-schema-validator/issues/53 +Signed-off-by: Stanislav Levin + +Reference: https://github.com/python-openapi/openapi-schema-validator/commit/a37b6f58ce9fa270848bd805f3f05ea03f0ae10e +--- + pyproject.toml | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 6269156..499fb44 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -56,7 +56,6 @@ jsonschema = "^4.0.0" + rfc3339-validator = {version = "*", optional = true} + strict-rfc3339 = {version = "*", optional = true} + isodate = {version = "*", optional = true} +-attrs = ">=19.2.0" + + [tool.poetry.extras] + rfc3339-validator = ["rfc3339-validator"] +-- +2.18.2 + diff --git a/openapi-schema-validator.spec b/openapi-schema-validator.spec index fe18e8c..fd4fecc 100644 --- a/openapi-schema-validator.spec +++ b/openapi-schema-validator.spec @@ -1,13 +1,14 @@ %global _empty_manifest_terminate_build 0 Name: openapi-schema-validator Version: 0.3.4 -Release: 1 +Release: 2 Summary: OpenAPI schema validation for Python License: BSD-3-Clause URL: https://github.com/p1c2u/openapi-schema-validator Source0: https://files.pythonhosted.org/packages/65/be/7d6fd03612863dd597e6411b8b77593e13f9d33231ac3964342c2715ca80/openapi-schema-validator-0.3.4.tar.gz BuildArch: noarch +Patch0001: 0001-Drop-no-longer-used-runtime-dependency-on-attrs.patch %description Openapi-schema-validator is a Python library that validates schema against the OpenAPI @@ -70,6 +71,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu May 09 2024 lixiaoyong - 0.3.4-2 +- Drop no longer used runtime dependency on attrs + * Mon Nov 21 2022 wangjunqi - 0.3.4-1 - Update package to version 0.3.4 -- Gitee