diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-12 02:03:52 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 02:03:52 +0000 |
commit | ea10dea1c1e3f1041cb806fbec95f3ca087fcf42 (patch) | |
tree | 9cccdc0810b1d3ac5e683f4b5c00790d4d54e256 | |
parent | d9559afd1fc288ab6627d6c99341a456ea33cb32 (diff) |
automatic import of python-django-bootstrap5
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-django-bootstrap5.spec | 337 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 339 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-bootstrap5-23.1.tar.gz diff --git a/python-django-bootstrap5.spec b/python-django-bootstrap5.spec new file mode 100644 index 0000000..3fa94d0 --- /dev/null +++ b/python-django-bootstrap5.spec @@ -0,0 +1,337 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-bootstrap5 +Version: 23.1 +Release: 1 +Summary: Bootstrap 5 for Django +License: BSD-3-Clause +URL: https://github.com/zostera/django-bootstrap5 +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c5/28/1cc009670ad78eb88f496c622bf4aebbaedc08ecea802e1e66277dd1fc00/django-bootstrap5-23.1.tar.gz +BuildArch: noarch + +Requires: python3-Django + +%description +# django-bootstrap5 + +[](https://github.com/zostera/django-bootstrap5/actions?workflow=CI) +[](https://coveralls.io/github/zostera/django-bootstrap5?branch=main) +[](https://pypi.python.org/pypi/django-bootstrap5) +[](https://github.com/ambv/black) + +Bootstrap 5 for Django. + +## Goal + +The goal of this project is to seamlessly blend Django and Bootstrap 5. + +## Status + +Ready for production. Issues and pull requests welcome, see [CONTRIBUTING.md](CONTRIBUTING.md). + +## Requirements + +Python 3.7 or newer with Django 3.2 or newer. + +## Documentation + +The full documentation is at https://django-bootstrap5.readthedocs.io/ + +## Installation + +1. Install using pip: + + ```bash + pip install django-bootstrap5 + ``` + +2. Add to `INSTALLED_APPS` in your `settings.py`: + + ```python + INSTALLED_APPS = ( + # ... + "django_bootstrap5", + # ... + ) + ``` + +3. In your templates, load the `django_bootstrap5` library and use the `bootstrap_*` tags. See example below. + +## Example template + +```jinja2 +{% load django_bootstrap5 %} + +<form action="/url/to/submit/" method="post" class="form"> + {% csrf_token %} + + {% bootstrap_form form %} + + {% bootstrap_button button_type="submit" content="OK" %} + {% bootstrap_button button_type="reset" content="Cancel" %} +</form> +``` + +## Example app + +An example app is provided in the folder `example`. You can run it with `python manage.py runserver`. + +```bash +cd example +python manage.py runserver +``` + +## Bugs and suggestions + +If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub. + +https://github.com/zostera/django-bootstrap5/issues + +## License + +You can use this under BSD-3-Clause. See [LICENSE](LICENSE) file for details. + +## Author + +Developed and maintained by [Zostera](https://zostera.nl). + +Original author: [Dylan Verheul](https://github.com/dyve). + +Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words. + +Please see [AUTHORS](AUTHORS) for a list of contributors. + + +%package -n python3-django-bootstrap5 +Summary: Bootstrap 5 for Django +Provides: python-django-bootstrap5 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-bootstrap5 +# django-bootstrap5 + +[](https://github.com/zostera/django-bootstrap5/actions?workflow=CI) +[](https://coveralls.io/github/zostera/django-bootstrap5?branch=main) +[](https://pypi.python.org/pypi/django-bootstrap5) +[](https://github.com/ambv/black) + +Bootstrap 5 for Django. + +## Goal + +The goal of this project is to seamlessly blend Django and Bootstrap 5. + +## Status + +Ready for production. Issues and pull requests welcome, see [CONTRIBUTING.md](CONTRIBUTING.md). + +## Requirements + +Python 3.7 or newer with Django 3.2 or newer. + +## Documentation + +The full documentation is at https://django-bootstrap5.readthedocs.io/ + +## Installation + +1. Install using pip: + + ```bash + pip install django-bootstrap5 + ``` + +2. Add to `INSTALLED_APPS` in your `settings.py`: + + ```python + INSTALLED_APPS = ( + # ... + "django_bootstrap5", + # ... + ) + ``` + +3. In your templates, load the `django_bootstrap5` library and use the `bootstrap_*` tags. See example below. + +## Example template + +```jinja2 +{% load django_bootstrap5 %} + +<form action="/url/to/submit/" method="post" class="form"> + {% csrf_token %} + + {% bootstrap_form form %} + + {% bootstrap_button button_type="submit" content="OK" %} + {% bootstrap_button button_type="reset" content="Cancel" %} +</form> +``` + +## Example app + +An example app is provided in the folder `example`. You can run it with `python manage.py runserver`. + +```bash +cd example +python manage.py runserver +``` + +## Bugs and suggestions + +If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub. + +https://github.com/zostera/django-bootstrap5/issues + +## License + +You can use this under BSD-3-Clause. See [LICENSE](LICENSE) file for details. + +## Author + +Developed and maintained by [Zostera](https://zostera.nl). + +Original author: [Dylan Verheul](https://github.com/dyve). + +Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words. + +Please see [AUTHORS](AUTHORS) for a list of contributors. + + +%package help +Summary: Development documents and examples for django-bootstrap5 +Provides: python3-django-bootstrap5-doc +%description help +# django-bootstrap5 + +[](https://github.com/zostera/django-bootstrap5/actions?workflow=CI) +[](https://coveralls.io/github/zostera/django-bootstrap5?branch=main) +[](https://pypi.python.org/pypi/django-bootstrap5) +[](https://github.com/ambv/black) + +Bootstrap 5 for Django. + +## Goal + +The goal of this project is to seamlessly blend Django and Bootstrap 5. + +## Status + +Ready for production. Issues and pull requests welcome, see [CONTRIBUTING.md](CONTRIBUTING.md). + +## Requirements + +Python 3.7 or newer with Django 3.2 or newer. + +## Documentation + +The full documentation is at https://django-bootstrap5.readthedocs.io/ + +## Installation + +1. Install using pip: + + ```bash + pip install django-bootstrap5 + ``` + +2. Add to `INSTALLED_APPS` in your `settings.py`: + + ```python + INSTALLED_APPS = ( + # ... + "django_bootstrap5", + # ... + ) + ``` + +3. In your templates, load the `django_bootstrap5` library and use the `bootstrap_*` tags. See example below. + +## Example template + +```jinja2 +{% load django_bootstrap5 %} + +<form action="/url/to/submit/" method="post" class="form"> + {% csrf_token %} + + {% bootstrap_form form %} + + {% bootstrap_button button_type="submit" content="OK" %} + {% bootstrap_button button_type="reset" content="Cancel" %} +</form> +``` + +## Example app + +An example app is provided in the folder `example`. You can run it with `python manage.py runserver`. + +```bash +cd example +python manage.py runserver +``` + +## Bugs and suggestions + +If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub. + +https://github.com/zostera/django-bootstrap5/issues + +## License + +You can use this under BSD-3-Clause. See [LICENSE](LICENSE) file for details. + +## Author + +Developed and maintained by [Zostera](https://zostera.nl). + +Original author: [Dylan Verheul](https://github.com/dyve). + +Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words. + +Please see [AUTHORS](AUTHORS) for a list of contributors. + + +%prep +%autosetup -n django-bootstrap5-23.1 + +%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-django-bootstrap5 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 23.1-1 +- Package Spec generated @@ -0,0 +1 @@ +7808f9053abf6951bcfb476fe80ca0f6 django-bootstrap5-23.1.tar.gz |