File python-django-cors-headers.spec of Package python-django-cors-headers
#
# spec file for package python-django-cors-headers
#
# 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/
#
Name: python-django-cors-headers
Version: 4.7.0
Release: 0
Summary: django-cors-headers is a Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS)
License: MIT
URL: https://github.com/adamchainz/django-cors-headers
Source: https://files.pythonhosted.org/packages/source/d/django-cors-headers/django_cors_headers-%{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 asgiref >= 3.6}
BuildRequires: %{python_module django >= 4.2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-django}
BuildRequires: %{python_module pytest-randomly}
BuildRequires: %{python_module coverage}
# /SECTION
BuildRequires: fdupes
Requires: python-asgiref >= 3.6
Requires: python-Django >= 4.2
BuildArch: noarch
%python_subpackages
%description
django-cors-headers is a Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS).
%prep
%autosetup -p1 -n django_cors_headers-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/corsheaders
%{python_sitelib}/django_cors_headers-%{version}.dist-info
%changelog