forked from pool/python-drf-spectacular
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
drf_spectacular-0.28.0.tar.gz
Normal file
3
drf_spectacular-0.28.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2c778a47a40ab2f5078a7c42e82baba07397bb35b074ae4680721b2805943061
|
||||
size 237849
|
||||
4
python-drf-spectacular.changes
Normal file
4
python-drf-spectacular.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 6 13:46:49 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Initial packaging (v0.28.0), needed by Weblate
|
||||
77
python-drf-spectacular.spec
Normal file
77
python-drf-spectacular.spec
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user