summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 09:16:43 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 09:16:43 +0000
commit45a2e01aeafdfada684e5a68ac4fa1992d4586c1 (patch)
treeb4b82616573319b22230d8a87b138b2cc537cc8f
parent48f3e7ef22dddb1bed80fa315cff9cba6f347c2a (diff)
automatic import of python-django-turbo-responseopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-django-turbo-response.spec702
-rw-r--r--sources1
3 files changed, 704 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..eca89b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-turbo-response-0.0.52.tar.gz
diff --git a/python-django-turbo-response.spec b/python-django-turbo-response.spec
new file mode 100644
index 0000000..5285f6e
--- /dev/null
+++ b/python-django-turbo-response.spec
@@ -0,0 +1,702 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-turbo-response
+Version: 0.0.52
+Release: 1
+Summary: Hotwired/Turbo response helpers for Django
+License: MIT
+URL: https://github.com/hotwire-django/django-turbo-response
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/40/35/d06cd2e5f713af983b3001f4245b2dd7604c029d30653cfe401cb980780b/django-turbo-response-0.0.52.tar.gz
+BuildArch: noarch
+
+
+%description
+This package provides helpers for server-side rendering of [Hotwired/Turbo](https://hotwired.dev/) streams and frames.
+
+**Disclaimer**: the Hotwired/Turbo client libraries are, at time of writing, still in Beta. We expect there will be breaking changes until the first stable release. This package, and the Turbo client, should therefore be used with caution in a production environment. The version used in testing is *@hotwired/turbo==7.0.0-beta.8*.
+
+
+## Requirements
+
+This library requires Python 3.8+ and Django 3.0+.
+
+## Installation
+
+> pip install django-turbo-response
+
+To install from Git:
+
+> git clone https://github.com/hotwire-django/django-turbo-response
+
+> cd django-turbo-response
+
+> python setup.py install
+
+Make sure to add *turbo_response* to **INSTALLED_APPS**.
+
+**Note**: This library does not include any client libraries (Turbo or Stimulus). You may wish to add these yourself using your preferred Javascript build tool, or use a CDN. Please refer to the Hotwire documentation on installing these libraries.
+
+Full documentation on ReadTheDocs:
+
+https://django-turbo-response.readthedocs.io/en/latest/
+
+## License
+
+This project is covered by the MIT license.
+
+
+# Changelog
+
+## [0.0.52] - 2021-9-6
+
+Support multiple targets
+
+## [0.0.51] - 2021-8-20
+
+TurboCreateView/TurboUpdateView inheritance fix
+
+## [0.0.50] - 2021-7-5
+
+Add BEFORE and AFTER actions
+
+## [0.0.49] - 2021-5-12
+
+Use format_html for rendering
+
+## [0.0.48] - 2021-4-9
+
+Add support for Django 3.2
+
+Add rendering options to mixin classes
+
+## [0.0.47] - 2021-4-4
+
+Removing support for Python 3.7
+
+## [0.0.46] - 2021-4-2
+
+Remove tests dir from distribution
+
+## [0.0.45] - 2021-4-2
+
+Refactor renderers and remove dependency on form widget renderer classes
+
+## [0.0.44] - 2021-4-2
+
+Allow renderer as arg for all stream and frame mixins/classes
+
+## [0.0.40] - 2021-4-2
+
+Use file-based templates for rendering streams/frames
+
+## [0.0.39] - 2021-4-2
+
+Fix for https://github.com/hotwire-django/django-turbo-response/issues/5
+
+## [0.0.36] - 2021-3-30
+
+**render_form_response** adds turbo_stream_template name to context
+
+**turbo_stream_response** decorator
+
+## [0.0.35] - 2021-2-17
+
+**render_form_response** can optionally re-render form as turbo stream
+
+## [0.0.34] - 2021-2-13
+
+Tidy up argument parsing in API
+
+## [0.0.33] - 2021-2-4
+
+Mixin **TurboFormAdapterMixin** added
+
+## [0.0.32] - 2021-2-2
+
+Refactoring modules
+
+## [0.0.31] - 2021-2-2
+
+Refactoring mixin classes
+
+## [0.0.30] - 2021-2-1
+
+**TurboStreamIterableResponse** removed
+
+**TurboStreamFormMixin** and turbo-stream form views added
+
+## [0.0.29] - 2021-1-27
+
+**TurboStreamIterableResponse** deprecated
+
+**TurboStreamMiddleware** removed
+
+## [0.0.28] - 2021-1-22
+
+Support for Python 3.7
+
+## [0.0.27] - 2021-1-21
+
+Bugfix for Turbo-Frame header in middleware
+
+## [0.0.26] - 2021-1-17
+
+Added **TurboMiddleware** (replacing **TurboStreamMiddleware**).
+
+Removed **TemplateFormResponse**.
+
+## [0.0.24] - 2021-1-17
+
+Added **render_form_response** shortcut.
+
+## [0.0.23] - 2021-1-14
+
+Added **TurboStreamIterableResponse** class.
+
+## [0.0.22] - 2021-1-14
+
+Added **TemplateFormResponse** class which automatically sets correct status based on form error state.
+
+## [0.0.21] - 2021-1-13
+
+Middleware now accepts content type **text/vnd.turbo-stream.html*.
+
+## [0.0.20] - 2021-1-13
+
+Deprecated mixin methods removed.
+
+Update response content type from *text/html; turbo-stream* to *text/vnd.turbo-stream.html*:
+
+https://github.com/hotwired/turbo/releases/tag/v7.0.0-beta.3
+
+## [0.0.19] - 2021-1-13
+
+Changes to mixin APIs.
+
+## [0.0.18] - 2021-1-12
+
+**TurboStreamDeleteView** automatically resolves target based on model name+PK.
+
+## [0.0.17] - 2021-1-7
+
+Added **HttpResponseSeeOther** class and **redirect_303** shortcut function.
+
+## [0.0.16] - 2021-1-7
+
+Ensure all form mixins/views return a 303 on redirect as per Turbo docs.
+
+## [0.0.15] - 2021-1-7
+
+Removed protocol classes and mypy pre-commit requirement
+
+## [0.0.14] - 2021-1-6
+
+Dependency bugfix
+
+## [0.0.13] - 2021-1-6
+
+Added type hinting, tidy up of mixin class inheritance.
+
+## [0.0.12] - 2021-1-5
+
+Update form handling for changes in @hotwired/turbo 7.0.0-beta.2:
+
+ - **TurboStreamFormMixin** class and supporting classes removed
+ - **TurboFormMixin** class added that just returns a 422 response on invalid
+ - **TurboStreamFormView**, **TurboStreamCreateView** and **TurboStreamUpdateView** classes removed
+ - **TurboFormView**, **TurboCreateView** and **TurboUpdateView** classes added, using new **TurboFormMixin**
+
+## [0.0.10] - 2020-12-30
+
+Remove __str__ methods from TurboStream and TurboFrame classes
+
+## [0.0.9] - 2020-12-30
+
+Add render() method to template proxies
+
+## [0.0.8] - 2020-12-30
+
+### Added
+
+TurboStream and TurboFrame classes
+
+
+
+
+%package -n python3-django-turbo-response
+Summary: Hotwired/Turbo response helpers for Django
+Provides: python-django-turbo-response
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-turbo-response
+This package provides helpers for server-side rendering of [Hotwired/Turbo](https://hotwired.dev/) streams and frames.
+
+**Disclaimer**: the Hotwired/Turbo client libraries are, at time of writing, still in Beta. We expect there will be breaking changes until the first stable release. This package, and the Turbo client, should therefore be used with caution in a production environment. The version used in testing is *@hotwired/turbo==7.0.0-beta.8*.
+
+
+## Requirements
+
+This library requires Python 3.8+ and Django 3.0+.
+
+## Installation
+
+> pip install django-turbo-response
+
+To install from Git:
+
+> git clone https://github.com/hotwire-django/django-turbo-response
+
+> cd django-turbo-response
+
+> python setup.py install
+
+Make sure to add *turbo_response* to **INSTALLED_APPS**.
+
+**Note**: This library does not include any client libraries (Turbo or Stimulus). You may wish to add these yourself using your preferred Javascript build tool, or use a CDN. Please refer to the Hotwire documentation on installing these libraries.
+
+Full documentation on ReadTheDocs:
+
+https://django-turbo-response.readthedocs.io/en/latest/
+
+## License
+
+This project is covered by the MIT license.
+
+
+# Changelog
+
+## [0.0.52] - 2021-9-6
+
+Support multiple targets
+
+## [0.0.51] - 2021-8-20
+
+TurboCreateView/TurboUpdateView inheritance fix
+
+## [0.0.50] - 2021-7-5
+
+Add BEFORE and AFTER actions
+
+## [0.0.49] - 2021-5-12
+
+Use format_html for rendering
+
+## [0.0.48] - 2021-4-9
+
+Add support for Django 3.2
+
+Add rendering options to mixin classes
+
+## [0.0.47] - 2021-4-4
+
+Removing support for Python 3.7
+
+## [0.0.46] - 2021-4-2
+
+Remove tests dir from distribution
+
+## [0.0.45] - 2021-4-2
+
+Refactor renderers and remove dependency on form widget renderer classes
+
+## [0.0.44] - 2021-4-2
+
+Allow renderer as arg for all stream and frame mixins/classes
+
+## [0.0.40] - 2021-4-2
+
+Use file-based templates for rendering streams/frames
+
+## [0.0.39] - 2021-4-2
+
+Fix for https://github.com/hotwire-django/django-turbo-response/issues/5
+
+## [0.0.36] - 2021-3-30
+
+**render_form_response** adds turbo_stream_template name to context
+
+**turbo_stream_response** decorator
+
+## [0.0.35] - 2021-2-17
+
+**render_form_response** can optionally re-render form as turbo stream
+
+## [0.0.34] - 2021-2-13
+
+Tidy up argument parsing in API
+
+## [0.0.33] - 2021-2-4
+
+Mixin **TurboFormAdapterMixin** added
+
+## [0.0.32] - 2021-2-2
+
+Refactoring modules
+
+## [0.0.31] - 2021-2-2
+
+Refactoring mixin classes
+
+## [0.0.30] - 2021-2-1
+
+**TurboStreamIterableResponse** removed
+
+**TurboStreamFormMixin** and turbo-stream form views added
+
+## [0.0.29] - 2021-1-27
+
+**TurboStreamIterableResponse** deprecated
+
+**TurboStreamMiddleware** removed
+
+## [0.0.28] - 2021-1-22
+
+Support for Python 3.7
+
+## [0.0.27] - 2021-1-21
+
+Bugfix for Turbo-Frame header in middleware
+
+## [0.0.26] - 2021-1-17
+
+Added **TurboMiddleware** (replacing **TurboStreamMiddleware**).
+
+Removed **TemplateFormResponse**.
+
+## [0.0.24] - 2021-1-17
+
+Added **render_form_response** shortcut.
+
+## [0.0.23] - 2021-1-14
+
+Added **TurboStreamIterableResponse** class.
+
+## [0.0.22] - 2021-1-14
+
+Added **TemplateFormResponse** class which automatically sets correct status based on form error state.
+
+## [0.0.21] - 2021-1-13
+
+Middleware now accepts content type **text/vnd.turbo-stream.html*.
+
+## [0.0.20] - 2021-1-13
+
+Deprecated mixin methods removed.
+
+Update response content type from *text/html; turbo-stream* to *text/vnd.turbo-stream.html*:
+
+https://github.com/hotwired/turbo/releases/tag/v7.0.0-beta.3
+
+## [0.0.19] - 2021-1-13
+
+Changes to mixin APIs.
+
+## [0.0.18] - 2021-1-12
+
+**TurboStreamDeleteView** automatically resolves target based on model name+PK.
+
+## [0.0.17] - 2021-1-7
+
+Added **HttpResponseSeeOther** class and **redirect_303** shortcut function.
+
+## [0.0.16] - 2021-1-7
+
+Ensure all form mixins/views return a 303 on redirect as per Turbo docs.
+
+## [0.0.15] - 2021-1-7
+
+Removed protocol classes and mypy pre-commit requirement
+
+## [0.0.14] - 2021-1-6
+
+Dependency bugfix
+
+## [0.0.13] - 2021-1-6
+
+Added type hinting, tidy up of mixin class inheritance.
+
+## [0.0.12] - 2021-1-5
+
+Update form handling for changes in @hotwired/turbo 7.0.0-beta.2:
+
+ - **TurboStreamFormMixin** class and supporting classes removed
+ - **TurboFormMixin** class added that just returns a 422 response on invalid
+ - **TurboStreamFormView**, **TurboStreamCreateView** and **TurboStreamUpdateView** classes removed
+ - **TurboFormView**, **TurboCreateView** and **TurboUpdateView** classes added, using new **TurboFormMixin**
+
+## [0.0.10] - 2020-12-30
+
+Remove __str__ methods from TurboStream and TurboFrame classes
+
+## [0.0.9] - 2020-12-30
+
+Add render() method to template proxies
+
+## [0.0.8] - 2020-12-30
+
+### Added
+
+TurboStream and TurboFrame classes
+
+
+
+
+%package help
+Summary: Development documents and examples for django-turbo-response
+Provides: python3-django-turbo-response-doc
+%description help
+This package provides helpers for server-side rendering of [Hotwired/Turbo](https://hotwired.dev/) streams and frames.
+
+**Disclaimer**: the Hotwired/Turbo client libraries are, at time of writing, still in Beta. We expect there will be breaking changes until the first stable release. This package, and the Turbo client, should therefore be used with caution in a production environment. The version used in testing is *@hotwired/turbo==7.0.0-beta.8*.
+
+
+## Requirements
+
+This library requires Python 3.8+ and Django 3.0+.
+
+## Installation
+
+> pip install django-turbo-response
+
+To install from Git:
+
+> git clone https://github.com/hotwire-django/django-turbo-response
+
+> cd django-turbo-response
+
+> python setup.py install
+
+Make sure to add *turbo_response* to **INSTALLED_APPS**.
+
+**Note**: This library does not include any client libraries (Turbo or Stimulus). You may wish to add these yourself using your preferred Javascript build tool, or use a CDN. Please refer to the Hotwire documentation on installing these libraries.
+
+Full documentation on ReadTheDocs:
+
+https://django-turbo-response.readthedocs.io/en/latest/
+
+## License
+
+This project is covered by the MIT license.
+
+
+# Changelog
+
+## [0.0.52] - 2021-9-6
+
+Support multiple targets
+
+## [0.0.51] - 2021-8-20
+
+TurboCreateView/TurboUpdateView inheritance fix
+
+## [0.0.50] - 2021-7-5
+
+Add BEFORE and AFTER actions
+
+## [0.0.49] - 2021-5-12
+
+Use format_html for rendering
+
+## [0.0.48] - 2021-4-9
+
+Add support for Django 3.2
+
+Add rendering options to mixin classes
+
+## [0.0.47] - 2021-4-4
+
+Removing support for Python 3.7
+
+## [0.0.46] - 2021-4-2
+
+Remove tests dir from distribution
+
+## [0.0.45] - 2021-4-2
+
+Refactor renderers and remove dependency on form widget renderer classes
+
+## [0.0.44] - 2021-4-2
+
+Allow renderer as arg for all stream and frame mixins/classes
+
+## [0.0.40] - 2021-4-2
+
+Use file-based templates for rendering streams/frames
+
+## [0.0.39] - 2021-4-2
+
+Fix for https://github.com/hotwire-django/django-turbo-response/issues/5
+
+## [0.0.36] - 2021-3-30
+
+**render_form_response** adds turbo_stream_template name to context
+
+**turbo_stream_response** decorator
+
+## [0.0.35] - 2021-2-17
+
+**render_form_response** can optionally re-render form as turbo stream
+
+## [0.0.34] - 2021-2-13
+
+Tidy up argument parsing in API
+
+## [0.0.33] - 2021-2-4
+
+Mixin **TurboFormAdapterMixin** added
+
+## [0.0.32] - 2021-2-2
+
+Refactoring modules
+
+## [0.0.31] - 2021-2-2
+
+Refactoring mixin classes
+
+## [0.0.30] - 2021-2-1
+
+**TurboStreamIterableResponse** removed
+
+**TurboStreamFormMixin** and turbo-stream form views added
+
+## [0.0.29] - 2021-1-27
+
+**TurboStreamIterableResponse** deprecated
+
+**TurboStreamMiddleware** removed
+
+## [0.0.28] - 2021-1-22
+
+Support for Python 3.7
+
+## [0.0.27] - 2021-1-21
+
+Bugfix for Turbo-Frame header in middleware
+
+## [0.0.26] - 2021-1-17
+
+Added **TurboMiddleware** (replacing **TurboStreamMiddleware**).
+
+Removed **TemplateFormResponse**.
+
+## [0.0.24] - 2021-1-17
+
+Added **render_form_response** shortcut.
+
+## [0.0.23] - 2021-1-14
+
+Added **TurboStreamIterableResponse** class.
+
+## [0.0.22] - 2021-1-14
+
+Added **TemplateFormResponse** class which automatically sets correct status based on form error state.
+
+## [0.0.21] - 2021-1-13
+
+Middleware now accepts content type **text/vnd.turbo-stream.html*.
+
+## [0.0.20] - 2021-1-13
+
+Deprecated mixin methods removed.
+
+Update response content type from *text/html; turbo-stream* to *text/vnd.turbo-stream.html*:
+
+https://github.com/hotwired/turbo/releases/tag/v7.0.0-beta.3
+
+## [0.0.19] - 2021-1-13
+
+Changes to mixin APIs.
+
+## [0.0.18] - 2021-1-12
+
+**TurboStreamDeleteView** automatically resolves target based on model name+PK.
+
+## [0.0.17] - 2021-1-7
+
+Added **HttpResponseSeeOther** class and **redirect_303** shortcut function.
+
+## [0.0.16] - 2021-1-7
+
+Ensure all form mixins/views return a 303 on redirect as per Turbo docs.
+
+## [0.0.15] - 2021-1-7
+
+Removed protocol classes and mypy pre-commit requirement
+
+## [0.0.14] - 2021-1-6
+
+Dependency bugfix
+
+## [0.0.13] - 2021-1-6
+
+Added type hinting, tidy up of mixin class inheritance.
+
+## [0.0.12] - 2021-1-5
+
+Update form handling for changes in @hotwired/turbo 7.0.0-beta.2:
+
+ - **TurboStreamFormMixin** class and supporting classes removed
+ - **TurboFormMixin** class added that just returns a 422 response on invalid
+ - **TurboStreamFormView**, **TurboStreamCreateView** and **TurboStreamUpdateView** classes removed
+ - **TurboFormView**, **TurboCreateView** and **TurboUpdateView** classes added, using new **TurboFormMixin**
+
+## [0.0.10] - 2020-12-30
+
+Remove __str__ methods from TurboStream and TurboFrame classes
+
+## [0.0.9] - 2020-12-30
+
+Add render() method to template proxies
+
+## [0.0.8] - 2020-12-30
+
+### Added
+
+TurboStream and TurboFrame classes
+
+
+
+
+%prep
+%autosetup -n django-turbo-response-0.0.52
+
+%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-turbo-response -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.52-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..f973f5e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1cacf73d45b7f3cee8520e7246481e95 django-turbo-response-0.0.52.tar.gz