Accepting request 521769 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/521769 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-WTF?expand=0&rev=3
This commit is contained in:
parent
683baf0e86
commit
c00ad719c7
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2f53a4b314ec26824d0b70f0766b7dd74c6df77bcf8b64de88e1354bc900874b
|
||||
size 247005
|
3
Flask-WTF-0.14.2.tar.gz
Normal file
3
Flask-WTF-0.14.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5d14d55cfd35f613d99ee7cba0fc3fbbe63ba02f544d349158c14ca15561cc36
|
||||
size 254903
|
@ -1,3 +1,55 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 31 21:36:07 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Update to Version 0.14.2
|
||||
* Fix bug where ``FlaskForm`` assumed ``meta`` argument was not ``None`` if it
|
||||
was passed. (`#278`_)
|
||||
- Update to Version 0.14.1
|
||||
* Fix bug where the file validators would incorrectly identify an empty file as
|
||||
valid data. (`#276`_, `#277`_)
|
||||
- Update to Version 0.14
|
||||
* Use itsdangerous to sign CSRF tokens and check expiration instead of doing it
|
||||
ourselves. (`#264`_)
|
||||
* Remove the ``app`` attribute from ``CsrfProtect``, use ``current_app``.
|
||||
(`#264`_)
|
||||
* ``CsrfProtect`` protects the ``DELETE`` method by default. (`#264`_)
|
||||
* The same CSRF token is generated for the lifetime of a request. It is exposed
|
||||
as ``request.csrf_token`` for use during testing. (`#227`_, `#264`_)
|
||||
* ``CsrfProtect.error_handler`` is deprecated. (`#264`_)
|
||||
* Use ``Form.Meta`` instead of deprecated ``SecureForm`` for CSRF (and
|
||||
everything else). (`#216`_, `#271`_)
|
||||
* Provide ``WTF_CSRF_FIELD_NAME`` to configure the name of the CSRF token.
|
||||
(`#271`_)
|
||||
* ``validate_csrf`` raises ``wtforms.ValidationError`` with specific messages
|
||||
instead of returning ``True`` or ``False``. This breaks anything that was
|
||||
calling the method directly. (`#239`_, `#271`_)
|
||||
* ``CsrfProtect`` is renamed to ``CSRFProtect``. A deprecation warning is issued
|
||||
when using the old name. ``CsrfError`` is renamed to ``CSRFError`` without
|
||||
deprecation. (`#271`_)
|
||||
* ``FileField`` is deprecated because it no longer provides functionality over
|
||||
the provided validators. Use ``wtforms.FileField`` directly. (`#272`_)
|
||||
- Update to Version 0.13.1
|
||||
* Deprecation warning for ``Form`` is shown during ``__init__`` instead of immediately when subclassing. (`#262`_)
|
||||
* Don't use ``pkg_resources`` to get version, for compatibility with GAE. (`#261`_)
|
||||
- Update to Version 0.13
|
||||
* ``Form`` is renamed to ``FlaskForm`` in order to avoid name collision with WTForms's base class. Using ``Form`` will show a deprecation warning. (`#250`_)
|
||||
* ``hidden_tag`` no longer wraps the hidden inputs in a hidden div. This is valid HTML5 and any modern HTML parser will behave correctly. (`#217`_, `#193`_)
|
||||
* ``flask_wtf.html5`` is deprecated. Import directly from ``wtforms.fields.html5``. (`#251`_)
|
||||
* ``is_submitted`` is true for ``PATCH`` and ``DELETE`` in addition to ``POST`` and ``PUT``. (`#187`_)
|
||||
* ``generate_csrf`` takes a ``token_key`` parameter to specify the key stored in the session. (`#206`_)
|
||||
* ``generate_csrf`` takes a ``url_safe`` parameter to allow the token to be used in URLs. (`#206`_)
|
||||
* ``form.data`` can be accessed multiple times without raising an exception. (`#248`_)
|
||||
* File extension with multiple parts (``.tar.gz``) can be used in the ``FileAllowed`` validator. (`#201`_)
|
||||
- Update to Version 0.12
|
||||
* Abstract protect_csrf() into a separate method
|
||||
* Update reCAPTCHA configuration
|
||||
* Fix reCAPTCHA error handle
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 24 13:38:52 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
- singlespec auto-conversion
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 25 20:03:09 UTC 2015 - aboe76@gmail.com
|
||||
|
||||
@ -34,3 +86,4 @@ Wed Feb 12 22:32:03 UTC 2014 - aboe76@gmail.com
|
||||
- Compatible support for wtforms2
|
||||
- Remove file API for FileField
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Flask-Cache
|
||||
# spec file for package python-Flask-WTF
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -15,38 +15,44 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_with test
|
||||
Name: python-Flask-WTF
|
||||
Version: 0.11
|
||||
Version: 0.14.2
|
||||
Release: 0
|
||||
Url: http://github.com/lepture/flask-wtf
|
||||
Summary: WTForms support for Flask
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/F/Flask-WTF/Flask-WTF-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-WTForms
|
||||
BuildRequires: python-Werkzeug
|
||||
Url: http://github.com/lepture/flask-wtf
|
||||
Source: https://files.pythonhosted.org/packages/source/F/Flask-WTF/Flask-WTF-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
Requires: python-Flask
|
||||
Requires: python-Werkzeug
|
||||
Requires: python-WTForms
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-Sphinx
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module Flask}
|
||||
BuildRequires: %{python_module Flask-Babel}
|
||||
BuildRequires: %{python_module WTForms}
|
||||
BuildRequires: %{python_module Werkzeug}
|
||||
BuildRequires: %{python_module nose}
|
||||
%endif
|
||||
Requires: python-Flask
|
||||
Requires: python-WTForms
|
||||
Requires: python-Werkzeug
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Adds WTForms support to your Flask application
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for python-Flask-WTF
|
||||
%package -n %{name}-doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation/Other
|
||||
Requires: %{name} = %{version}
|
||||
Provides: %{python_module Flask-WTF-doc = %{version}}
|
||||
|
||||
%description doc
|
||||
%description -n %{name}-doc
|
||||
This package contains HTML documentation, including tutorials and API
|
||||
reference for python-Flask-WTF.
|
||||
|
||||
@ -54,19 +60,25 @@ reference for python-Flask-WTF.
|
||||
%setup -q -n Flask-WTF-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
cd docs && make html && rm _build/html/.buildinfo # Generate HTML documentation
|
||||
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
%files
|
||||
%if %{with test}
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%python_expand nosetests-%{$python_bin_suffix} tests
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%doc AUTHORS LICENSE README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%files doc
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root)
|
||||
%doc docs/_build/html
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user