diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:13:04 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:13:04 +0000 |
commit | 272496d0f8aa09d2ce64dbc7b543c13ae8f640cd (patch) | |
tree | 44a2815287f4320e360499ae2f212cddd6d50be7 | |
parent | 0dacae485f1a6655d0affc2b625d69dee98dc4d4 (diff) |
automatic import of python-django-bulmaopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-django-bulma.spec | 340 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 342 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-bulma-0.8.3.tar.gz diff --git a/python-django-bulma.spec b/python-django-bulma.spec new file mode 100644 index 0000000..2a6dfa3 --- /dev/null +++ b/python-django-bulma.spec @@ -0,0 +1,340 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-bulma +Version: 0.8.3 +Release: 1 +Summary: Bulma CSS Framework for Django projects +License: MIT +URL: https://timonweb.com +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/92/85/d1528add4988af9d4660feb4f1b17fb4f5f8a5e0e182f60ae835bc23b02a/django-bulma-0.8.3.tar.gz +BuildArch: noarch + +Requires: python3-django + +%description +# A Bulma Theme for Django Projects + + + +A Django base theme based on Bulma ([bulma.io](https://bulma.io/)). Bulma is a modern CSS framework based on Flexbox. + +*** work in progress *** + +## Installation + +1. Install the python package django-bulma from pip + + ``pip install django-bulma`` + + Alternatively, you can install download or clone this repo and call ``pip install -e .``. + +2. Add to INSTALLED_APPS in your **settings.py**: + + `'bulma',` + +3. If you want to use the provided base template, extend from **bulma/base.html**: + + ``` + {% extends 'bulma/base.html' %} + + {% block title %}Bulma Site{% endblock %} + + {% block content %} + Content goes here... + {% endblock content %} + + ``` + +4. If you want to customize bulma sass and your own components: + + 4.1 Copy bulma static files into your project's **STATIC_ROOT**: + + ``` + python manage.py copy_bulma_static_into_project + ``` + You should see **bulma** dir appeared in your **STATIC_ROOT**. It contains + two dirs: + * **sass** - this is the place where you can put your own sass code and customize + bulma variables + * **css** - this is where compiled sass output goes, you should link this file + in your base.html + + 4.2 Install npm packages for sass compilation to work: + + ``` + python manage.py bulma install + ``` + + 4.3 Start sass watch mode: + ``` + python manage.py bulma start + ``` + +5. For forms, in your templates, load the `bulma_tags` library and use the `|bulma` filters: + + ##### Example template + + ```django + + {% load bulma_tags %} + + {# Display a form #} + + <form action="/url/to/submit/" method="post"> + {% csrf_token %} + {{ form|bulma }} + <div class="field"> + <button type="submit" class="button is-primary">Login</button> + </div> + <input type="hidden" name="next" value="{{ next }}"/> + </form> + ``` + +## Included templates + +**django-bulma** comes with: +* a base template, +* django core registration templates, + +## 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/timonweb/django-bulma/issues](https://github.com/timonweb/django-bulma/issues) + + +%package -n python3-django-bulma +Summary: Bulma CSS Framework for Django projects +Provides: python-django-bulma +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-bulma +# A Bulma Theme for Django Projects + + + +A Django base theme based on Bulma ([bulma.io](https://bulma.io/)). Bulma is a modern CSS framework based on Flexbox. + +*** work in progress *** + +## Installation + +1. Install the python package django-bulma from pip + + ``pip install django-bulma`` + + Alternatively, you can install download or clone this repo and call ``pip install -e .``. + +2. Add to INSTALLED_APPS in your **settings.py**: + + `'bulma',` + +3. If you want to use the provided base template, extend from **bulma/base.html**: + + ``` + {% extends 'bulma/base.html' %} + + {% block title %}Bulma Site{% endblock %} + + {% block content %} + Content goes here... + {% endblock content %} + + ``` + +4. If you want to customize bulma sass and your own components: + + 4.1 Copy bulma static files into your project's **STATIC_ROOT**: + + ``` + python manage.py copy_bulma_static_into_project + ``` + You should see **bulma** dir appeared in your **STATIC_ROOT**. It contains + two dirs: + * **sass** - this is the place where you can put your own sass code and customize + bulma variables + * **css** - this is where compiled sass output goes, you should link this file + in your base.html + + 4.2 Install npm packages for sass compilation to work: + + ``` + python manage.py bulma install + ``` + + 4.3 Start sass watch mode: + ``` + python manage.py bulma start + ``` + +5. For forms, in your templates, load the `bulma_tags` library and use the `|bulma` filters: + + ##### Example template + + ```django + + {% load bulma_tags %} + + {# Display a form #} + + <form action="/url/to/submit/" method="post"> + {% csrf_token %} + {{ form|bulma }} + <div class="field"> + <button type="submit" class="button is-primary">Login</button> + </div> + <input type="hidden" name="next" value="{{ next }}"/> + </form> + ``` + +## Included templates + +**django-bulma** comes with: +* a base template, +* django core registration templates, + +## 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/timonweb/django-bulma/issues](https://github.com/timonweb/django-bulma/issues) + + +%package help +Summary: Development documents and examples for django-bulma +Provides: python3-django-bulma-doc +%description help +# A Bulma Theme for Django Projects + + + +A Django base theme based on Bulma ([bulma.io](https://bulma.io/)). Bulma is a modern CSS framework based on Flexbox. + +*** work in progress *** + +## Installation + +1. Install the python package django-bulma from pip + + ``pip install django-bulma`` + + Alternatively, you can install download or clone this repo and call ``pip install -e .``. + +2. Add to INSTALLED_APPS in your **settings.py**: + + `'bulma',` + +3. If you want to use the provided base template, extend from **bulma/base.html**: + + ``` + {% extends 'bulma/base.html' %} + + {% block title %}Bulma Site{% endblock %} + + {% block content %} + Content goes here... + {% endblock content %} + + ``` + +4. If you want to customize bulma sass and your own components: + + 4.1 Copy bulma static files into your project's **STATIC_ROOT**: + + ``` + python manage.py copy_bulma_static_into_project + ``` + You should see **bulma** dir appeared in your **STATIC_ROOT**. It contains + two dirs: + * **sass** - this is the place where you can put your own sass code and customize + bulma variables + * **css** - this is where compiled sass output goes, you should link this file + in your base.html + + 4.2 Install npm packages for sass compilation to work: + + ``` + python manage.py bulma install + ``` + + 4.3 Start sass watch mode: + ``` + python manage.py bulma start + ``` + +5. For forms, in your templates, load the `bulma_tags` library and use the `|bulma` filters: + + ##### Example template + + ```django + + {% load bulma_tags %} + + {# Display a form #} + + <form action="/url/to/submit/" method="post"> + {% csrf_token %} + {{ form|bulma }} + <div class="field"> + <button type="submit" class="button is-primary">Login</button> + </div> + <input type="hidden" name="next" value="{{ next }}"/> + </form> + ``` + +## Included templates + +**django-bulma** comes with: +* a base template, +* django core registration templates, + +## 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/timonweb/django-bulma/issues](https://github.com/timonweb/django-bulma/issues) + + +%prep +%autosetup -n django-bulma-0.8.3 + +%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-bulma -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.3-1 +- Package Spec generated @@ -0,0 +1 @@ +34a226328f3b97f06f1cefb0395a22fd django-bulma-0.8.3.tar.gz |