Accepting request 956167 from home:apersaud:branches:devel:languages:python:flask
update to latest version OBS-URL: https://build.opensuse.org/request/show/956167 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-WTF?expand=0&rev=11
This commit is contained in:
parent
ea50f063e3
commit
683eed2902
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ff177185f891302dc253437fe63081e7a46a4e99aca61dfe086fb23e54fff2dc
|
||||
size 45540
|
3
Flask-WTF-1.0.0.tar.gz
Normal file
3
Flask-WTF-1.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:872fbb17b5888bfc734edbdcf45bc08fb365ca39f69d25dc752465a455517b28
|
||||
size 45365
|
@ -1,16 +0,0 @@
|
||||
|
||||
--- a/tests/test_form.py
|
||||
+++ b/tests/test_form.py
|
||||
@@ -2,7 +2,11 @@ from io import BytesIO
|
||||
|
||||
from flask import json, request
|
||||
from wtforms import FileField, HiddenField, IntegerField, StringField
|
||||
-from wtforms.compat import with_metaclass
|
||||
+try:
|
||||
+ from wtforms.compat import with_metaclass
|
||||
+except ImportError:
|
||||
+ def with_metaclass(meta, base=object):
|
||||
+ return meta("NewBase", (base,), {})
|
||||
from wtforms.form import FormMeta
|
||||
from wtforms.validators import DataRequired
|
||||
from wtforms.widgets import HiddenInput
|
@ -1,15 +0,0 @@
|
||||
|
||||
--- a/flask_wtf/html5.py
|
||||
+++ b/flask_wtf/html5.py
|
||||
@@ -8,5 +8,9 @@ warnings.warn(FlaskWTFDeprecationWarning
|
||||
'and "wtforms.widgets.html5".'
|
||||
), stacklevel=2)
|
||||
|
||||
-from wtforms.widgets.html5 import *
|
||||
-from wtforms.fields.html5 import *
|
||||
+try:
|
||||
+ from wtforms.widgets.html5 import *
|
||||
+ from wtforms.fields.html5 import *
|
||||
+except ImportError:
|
||||
+ from wtforms.widgets.core import *
|
||||
+ from wtforms.fields.core import *
|
@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 20 17:13:05 UTC 2022 - Arun Persaud <arun@gmx.de>
|
||||
|
||||
- specfile:
|
||||
* update copyright year
|
||||
* removed patches: fix-ModuleNotFoundError-wtforms-compat.patch
|
||||
fix-ModuleNotFoundError-wtforms-widgets-html5.patch
|
||||
* AUTHORS not packaged anymore, LICENSE->LICENSE.rst
|
||||
|
||||
- update to version 1.0.0:
|
||||
* Deprecated items removal :pr:`484`
|
||||
* Support for alternatives captcha services :pr:`425` :pr:`342`
|
||||
:pr:`387` :issue:`384`
|
||||
|
||||
- changes from version 0.15.1:
|
||||
* Add "python_requires" metadata to avoid installing on unsupported
|
||||
Python versions. :pr:`442`
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 14 11:30:16 UTC 2021 - Fusion Future <qydwhotmail@gmail.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Flask-WTF
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -20,17 +20,14 @@
|
||||
%define skip_python2 1
|
||||
%bcond_without test
|
||||
Name: python-Flask-WTF
|
||||
Version: 0.15.1
|
||||
Version: 1.0.0
|
||||
Release: 0
|
||||
Summary: WTForms support for Flask
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/lepture/flask-wtf
|
||||
Source: https://files.pythonhosted.org/packages/source/F/Flask-WTF/Flask-WTF-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE fix-ModuleNotFoundError-wtforms-compat.patch https://github.com/wtforms/wtforms/commit/a34eb532d3b96ed216f204ed3d22fc9962241446
|
||||
Patch0: fix-ModuleNotFoundError-wtforms-compat.patch
|
||||
# PATCH-FIX-OPENSUSE fix-ModuleNotFoundError-wtforms-widgets-html5.patch https://github.com/wtforms/wtforms/commit/44a1cecc071cfaec4ff60c9e28935d136cc232ca
|
||||
Patch1: fix-ModuleNotFoundError-wtforms-widgets-html5.patch
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@ -56,8 +53,6 @@ Adds WTForms support to your Flask application
|
||||
|
||||
%prep
|
||||
%setup -q -n Flask-WTF-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@ -74,8 +69,8 @@ export LANG=en_US.UTF-8
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc AUTHORS README.rst
|
||||
%license LICENSE.rst
|
||||
%doc README.rst
|
||||
%{python_sitelib}/flask_wtf
|
||||
%{python_sitelib}/Flask_WTF-%{version}-py*.egg-info
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user