forked from pool/python-django-bootstrap4
- Switch to a CalVer YY.MINOR versioning scheme. MINOR is
the number of the release in the given year. This is the
first release in 2021 using this scheme, so its version is
21.1. The next version this year will be 21.2. The first
version in 2022 will be 22.1.
- Add support for Django 4.0 and Python 3.10 (#349).
- Fix faulty example code
- No line break in FileInput in horizontal layout.
- Actually use the bundles JavaScript.
- Drop support for Django 3.0, extended support stopped on
2021-04-01.
- Add support for Django 3.2.
- Use bundled Bootstrap JavaScript, no need for separate popper.js.
- Updated default Bootstrap to 4.6.0.
- Add Dependabot for updates to dependencies.
- Rename AUTHORS.md to AUTHORS, remove authors section from
documentation.
- Revert to setuptools for packaging.
- Add docs and tests to sdist.
- Fix example by not installing editable version.
- Add skip-failing-tests.patch skipping failing tests
(gh#zostera/django-bootstrap4#439).
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-bootstrap4?expand=0&rev=4
71 lines
2.3 KiB
RPMSpec
71 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-django-bootstrap4
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-django-bootstrap4
|
|
Version: 21.2
|
|
Release: 0
|
|
Summary: Bootstrap support for Django projects
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/zostera/django-bootstrap4
|
|
Source: https://github.com/zostera/django-bootstrap4/archive/v%{version}.tar.gz#/django-bootstrap4-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM skip-failing-tests.patch gh#zostera/django-bootstrap4#439 mcepl@suse.com
|
|
# Skip failing tests.
|
|
Patch0: skip-failing-tests.patch
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module poetry}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-Django
|
|
Requires: python-beautifulsoup4
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module Django}
|
|
BuildRequires: %{python_module beautifulsoup4}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Bootstrap support for Django projects.
|
|
|
|
%prep
|
|
%autosetup -p1 -n django-bootstrap4-%{version}
|
|
|
|
# Remove need to install gis, as the tests do not exercise this yet
|
|
sed -i '/django.contrib.gis/d' tests/app/settings.py
|
|
sed -Ei '/(gisform|polygon)/d' tests/test_templates.py
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python manage.py test -v2 --noinput
|
|
|
|
%files %{python_files}
|
|
%doc AUTHORS README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|