File python-django-htmx.spec of Package python-django-htmx
#
# spec file for package python-django-htmx
#
# Copyright (c) 2022 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/
#
%define appname django-htmx
%define appname2 django_htmx
%{?sle15_python_module_pythons}
Name: python-%{appname}
Version: 1.18.0
Release: 0
Summary: Extensions for using Django with htmx
License: MIT
Group: Development/Languages/Python
URL: https://github.com/adamchainz/django-htmx/
Source: https://github.com/adamchainz/django-htmx/archive/%{version}.tar.gz#/django-htmx-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Extensions for using Django with htmx.
%prep
%setup -q -n %{appname}-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc HISTORY.rst README.rst
%license LICENSE
%dir %{python_sitelib}/%{appname2}
%{python_sitelib}/%{appname2}/static
%{python_sitelib}/%{appname2}/templatetags
%{python_sitelib}/%{appname2}/py.typed
%{python_sitelib}/%{appname2}/*.py
%{python_sitelib}/%{appname2}-%{version}.dist-info
%pycache_only %{python_sitelib}/%{appname2}/__pycache__/
%changelog