From e1c387742158767e7f2f2dccf1b98d287c15a4f12590dcdb476db10a7167053e Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 7 Jan 2025 12:23:47 +0000 Subject: [PATCH] Accepting request 1235534 from home:mcalabkova:branches:devel:languages:python needed by Weblate OBS-URL: https://build.opensuse.org/request/show/1235534 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-drf-spectacular?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + drf_spectacular-0.28.0.tar.gz | 3 ++ python-drf-spectacular.changes | 4 ++ python-drf-spectacular.spec | 77 ++++++++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 drf_spectacular-0.28.0.tar.gz create mode 100644 python-drf-spectacular.changes create mode 100644 python-drf-spectacular.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/drf_spectacular-0.28.0.tar.gz b/drf_spectacular-0.28.0.tar.gz new file mode 100644 index 0000000..6d2b8a0 --- /dev/null +++ b/drf_spectacular-0.28.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c778a47a40ab2f5078a7c42e82baba07397bb35b074ae4680721b2805943061 +size 237849 diff --git a/python-drf-spectacular.changes b/python-drf-spectacular.changes new file mode 100644 index 0000000..123e4e2 --- /dev/null +++ b/python-drf-spectacular.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Jan 6 13:46:49 UTC 2025 - Markéta Machová + +- Initial packaging (v0.28.0), needed by Weblate diff --git a/python-drf-spectacular.spec b/python-drf-spectacular.spec new file mode 100644 index 0000000..7e9393f --- /dev/null +++ b/python-drf-spectacular.spec @@ -0,0 +1,77 @@ +# +# spec file for package python-drf-spectacular +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# python 3.13 not supported yet +%define skip_python313 1 +Name: python-drf-spectacular +Version: 0.28.0 +Release: 0 +Summary: Sane and flexible OpenAPI 3 schema generation for Django REST framework +License: BSD-3-Clause +URL: https://github.com/tfranzel/drf-spectacular +Source: https://files.pythonhosted.org/packages/source/d/drf-spectacular/drf_spectacular-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module Django >= 2.2} +BuildRequires: %{python_module djangorestframework >= 3.10.3} +BuildRequires: %{python_module django-oauth-toolkit} +BuildRequires: %{python_module inflection >= 0.3.1} +BuildRequires: %{python_module jsonschema >= 2.6.0} +BuildRequires: %{python_module PyYAML >= 5.1} +BuildRequires: %{python_module psycopg} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-django} +BuildRequires: %{python_module uritemplate >= 2.0.0} +# /SECTION +BuildRequires: fdupes +Requires: python-Django >= 2.2 +Requires: python-djangorestframework >= 3.10.3 +Requires: python-inflection >= 0.3.1 +Requires: python-jsonschema >= 2.6.0 +Requires: python-PyYAML >= 5.1 +Requires: python-uritemplate >= 2.0.0 +Suggests: python-drf-spectacular-sidecar +BuildArch: noarch +%python_subpackages + +%description +Sane and flexible OpenAPI 3 schema generation for Django REST framework + +%prep +%autosetup -p1 -n drf_spectacular-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# contrib tests are largely broken or need some modules which are not packaged yet +rm -r tests/contrib +%pytest + +%files %{python_files} +%{python_sitelib}/drf_spectacular +%{python_sitelib}/drf_spectacular-%{version}.*info + +%changelog