diff --git a/Flask-WTF-0.15.1.tar.gz b/Flask-WTF-0.15.1.tar.gz deleted file mode 100644 index 4c3bfc2..0000000 --- a/Flask-WTF-0.15.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ff177185f891302dc253437fe63081e7a46a4e99aca61dfe086fb23e54fff2dc -size 45540 diff --git a/Flask-WTF-1.0.0.tar.gz b/Flask-WTF-1.0.0.tar.gz new file mode 100644 index 0000000..d095bf6 --- /dev/null +++ b/Flask-WTF-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:872fbb17b5888bfc734edbdcf45bc08fb365ca39f69d25dc752465a455517b28 +size 45365 diff --git a/fix-ModuleNotFoundError-wtforms-compat.patch b/fix-ModuleNotFoundError-wtforms-compat.patch deleted file mode 100644 index 4f357b2..0000000 --- a/fix-ModuleNotFoundError-wtforms-compat.patch +++ /dev/null @@ -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 diff --git a/fix-ModuleNotFoundError-wtforms-widgets-html5.patch b/fix-ModuleNotFoundError-wtforms-widgets-html5.patch deleted file mode 100644 index 5366f85..0000000 --- a/fix-ModuleNotFoundError-wtforms-widgets-html5.patch +++ /dev/null @@ -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 * diff --git a/python-Flask-WTF.changes b/python-Flask-WTF.changes index 2d3e70f..ef61ebc 100644 --- a/python-Flask-WTF.changes +++ b/python-Flask-WTF.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Sun Feb 20 17:13:05 UTC 2022 - Arun Persaud + +- 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 diff --git a/python-Flask-WTF.spec b/python-Flask-WTF.spec index 96327de..c5bd4e3 100644 --- a/python-Flask-WTF.spec +++ b/python-Flask-WTF.spec @@ -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