summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 10:46:27 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 10:46:27 +0000
commitdfe4ef0402ea3c0e121dae42f12955df8dbfce55 (patch)
tree22c2e9767fdd0c86b2bb888feec0e8f0f64201d5
parent0c715b9b4cf9f448f365ee18e7227271c19561ce (diff)
automatic import of python-crispy-bootstrap5
-rw-r--r--.gitignore1
-rw-r--r--python-crispy-bootstrap5.spec310
-rw-r--r--sources1
3 files changed, 312 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ef5cc9a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/crispy-bootstrap5-0.7.tar.gz
diff --git a/python-crispy-bootstrap5.spec b/python-crispy-bootstrap5.spec
new file mode 100644
index 0000000..7f0dfe4
--- /dev/null
+++ b/python-crispy-bootstrap5.spec
@@ -0,0 +1,310 @@
+%global _empty_manifest_terminate_build 0
+Name: python-crispy-bootstrap5
+Version: 0.7
+Release: 1
+Summary: Bootstrap5 template pack for django-crispy-forms
+License: MIT
+URL: https://github.com/django-crispy-forms/crispy-bootstrap5
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/14/8f/dd83bc88f2af7e53dd87e291a30aa01e4664a305f738a2e9e74f7db693e5/crispy-bootstrap5-0.7.tar.gz
+BuildArch: noarch
+
+Requires: python3-django-crispy-forms
+Requires: python3-django
+Requires: python3-pytest
+Requires: python3-pytest-django
+
+%description
+# crispy-bootstrap5
+
+[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/smithdc1/crispy-bootstrap5/blob/main/LICENSE)
+
+Bootstrap5 template pack for django-crispy-forms
+
+## Installation
+
+Install this plugin using `pip`:
+
+ $ pip install crispy-bootstrap5
+
+## Usage
+
+You will need to update your project's settings file to add ``crispy_forms``
+and ``crispy_bootstrap5`` to your projects ``INSTALLED_APPS``. Also set
+``bootstrap5`` as and allowed template pack and as the default template pack
+for your project::
+
+ INSTALLED_APPS = (
+ ...
+ "crispy_forms",
+ "crispy_bootstrap5",
+ ...
+ )
+
+ CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
+
+ CRISPY_TEMPLATE_PACK = "bootstrap5"
+
+## What's new?
+
+Bootstrap 5 introduces [floating labels](https://getbootstrap.com/docs/5.0/forms/floating-labels/).
+This template pack include a layout object to use this input type::
+
+ from crispy_bootstrap5.bootstrap5 import FloatingField
+
+ # then in your Layout
+ ... Layout(
+ FloatingField("first_name"),
+ )
+
+Accordions also have new features, such as [Accordion flush](https://getbootstrap.com/docs/5.0/components/accordion/#flush) and [Always open](https://getbootstrap.com/docs/5.0/components/accordion/#always-open).
+There is a new layout object to use them::
+
+ from crispy_bootstrap5.bootstrap5 import BS5Accordion
+
+ # then in your Layout
+ # if not informed, flush and always_open default to False
+ ... Layout(
+ BS5Accordion(
+ AccordionGroup("group name", "form_field_1", "form_field_2"),
+ AccordionGroup("another group name", "form_field"),
+ flush=True,
+ always_open=True
+ )
+ )
+
+
+## Development
+
+To contribute to this library, first checkout the code. Then create a new virtual environment:
+
+ cd crispy-bootstrap5
+ python -mvenv venv
+ source venv/bin/activate
+
+Or if you are using `pipenv`:
+
+ pipenv shell
+
+Now install the dependencies and tests:
+
+ pip install -e '.[test]'
+
+To run the tests:
+
+ pytest
+
+
+%package -n python3-crispy-bootstrap5
+Summary: Bootstrap5 template pack for django-crispy-forms
+Provides: python-crispy-bootstrap5
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-crispy-bootstrap5
+# crispy-bootstrap5
+
+[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/smithdc1/crispy-bootstrap5/blob/main/LICENSE)
+
+Bootstrap5 template pack for django-crispy-forms
+
+## Installation
+
+Install this plugin using `pip`:
+
+ $ pip install crispy-bootstrap5
+
+## Usage
+
+You will need to update your project's settings file to add ``crispy_forms``
+and ``crispy_bootstrap5`` to your projects ``INSTALLED_APPS``. Also set
+``bootstrap5`` as and allowed template pack and as the default template pack
+for your project::
+
+ INSTALLED_APPS = (
+ ...
+ "crispy_forms",
+ "crispy_bootstrap5",
+ ...
+ )
+
+ CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
+
+ CRISPY_TEMPLATE_PACK = "bootstrap5"
+
+## What's new?
+
+Bootstrap 5 introduces [floating labels](https://getbootstrap.com/docs/5.0/forms/floating-labels/).
+This template pack include a layout object to use this input type::
+
+ from crispy_bootstrap5.bootstrap5 import FloatingField
+
+ # then in your Layout
+ ... Layout(
+ FloatingField("first_name"),
+ )
+
+Accordions also have new features, such as [Accordion flush](https://getbootstrap.com/docs/5.0/components/accordion/#flush) and [Always open](https://getbootstrap.com/docs/5.0/components/accordion/#always-open).
+There is a new layout object to use them::
+
+ from crispy_bootstrap5.bootstrap5 import BS5Accordion
+
+ # then in your Layout
+ # if not informed, flush and always_open default to False
+ ... Layout(
+ BS5Accordion(
+ AccordionGroup("group name", "form_field_1", "form_field_2"),
+ AccordionGroup("another group name", "form_field"),
+ flush=True,
+ always_open=True
+ )
+ )
+
+
+## Development
+
+To contribute to this library, first checkout the code. Then create a new virtual environment:
+
+ cd crispy-bootstrap5
+ python -mvenv venv
+ source venv/bin/activate
+
+Or if you are using `pipenv`:
+
+ pipenv shell
+
+Now install the dependencies and tests:
+
+ pip install -e '.[test]'
+
+To run the tests:
+
+ pytest
+
+
+%package help
+Summary: Development documents and examples for crispy-bootstrap5
+Provides: python3-crispy-bootstrap5-doc
+%description help
+# crispy-bootstrap5
+
+[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/smithdc1/crispy-bootstrap5/blob/main/LICENSE)
+
+Bootstrap5 template pack for django-crispy-forms
+
+## Installation
+
+Install this plugin using `pip`:
+
+ $ pip install crispy-bootstrap5
+
+## Usage
+
+You will need to update your project's settings file to add ``crispy_forms``
+and ``crispy_bootstrap5`` to your projects ``INSTALLED_APPS``. Also set
+``bootstrap5`` as and allowed template pack and as the default template pack
+for your project::
+
+ INSTALLED_APPS = (
+ ...
+ "crispy_forms",
+ "crispy_bootstrap5",
+ ...
+ )
+
+ CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
+
+ CRISPY_TEMPLATE_PACK = "bootstrap5"
+
+## What's new?
+
+Bootstrap 5 introduces [floating labels](https://getbootstrap.com/docs/5.0/forms/floating-labels/).
+This template pack include a layout object to use this input type::
+
+ from crispy_bootstrap5.bootstrap5 import FloatingField
+
+ # then in your Layout
+ ... Layout(
+ FloatingField("first_name"),
+ )
+
+Accordions also have new features, such as [Accordion flush](https://getbootstrap.com/docs/5.0/components/accordion/#flush) and [Always open](https://getbootstrap.com/docs/5.0/components/accordion/#always-open).
+There is a new layout object to use them::
+
+ from crispy_bootstrap5.bootstrap5 import BS5Accordion
+
+ # then in your Layout
+ # if not informed, flush and always_open default to False
+ ... Layout(
+ BS5Accordion(
+ AccordionGroup("group name", "form_field_1", "form_field_2"),
+ AccordionGroup("another group name", "form_field"),
+ flush=True,
+ always_open=True
+ )
+ )
+
+
+## Development
+
+To contribute to this library, first checkout the code. Then create a new virtual environment:
+
+ cd crispy-bootstrap5
+ python -mvenv venv
+ source venv/bin/activate
+
+Or if you are using `pipenv`:
+
+ pipenv shell
+
+Now install the dependencies and tests:
+
+ pip install -e '.[test]'
+
+To run the tests:
+
+ pytest
+
+
+%prep
+%autosetup -n crispy-bootstrap5-0.7
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-crispy-bootstrap5 -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..155b63d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5a187cb1747f63303cf6a3794cb0bac9 crispy-bootstrap5-0.7.tar.gz