forked from pool/python-WTForms
Accepting request 719691 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/719691 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-WTForms?expand=0&rev=5
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ffdf10bd1fa565b8233380cb77a304cd36fd55c73023e91d4b803c96bc11d46f
|
||||
size 553644
|
||||
3
WTForms-2.2.1.tar.gz
Normal file
3
WTForms-2.2.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0cdbac3e7f6878086c334aa25dc5a33869a3954e9d1e015130d65a69309b3b61
|
||||
size 156904
|
||||
@@ -1,3 +1,44 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 29 12:02:19 UTC 2019 - pgajdos@suse.com
|
||||
|
||||
- version update to 2.2.1
|
||||
* :class:`~fields.StringField` only sets ``data = ''` when form data
|
||||
is empty and an initial value was not provided. This fixes an issue
|
||||
where the default value wasn't rendered with the initial form.
|
||||
(`#291`_, `#355`_, `#401`_)
|
||||
* Merged new and updated translations from the community.
|
||||
* Passing ``data_`` args to render a field converts all the
|
||||
underscores to hyphens when rendering the HTML attribute, not just
|
||||
the first one. ``data_foo_bar`` becomes ``data-foo-bar``. (`#248`_)
|
||||
* The :class:`~validators.UUID` validator uses the :class:`uuid.UUID`
|
||||
class instead of a regex. (`#251`_)
|
||||
* :class:`~fields.SelectField` copies the list of ``choices`` passed
|
||||
to it so modifying an instance's choices will not modify the global
|
||||
form definition. (`#286`_)
|
||||
* Fields call :meth:`~fields.Field.process_formdata` even if the raw
|
||||
data is empty. (`#280`_)
|
||||
* Added a :class:`~fields.MultipleFileField` to handle a multi-file
|
||||
input. :class:`~fields.FileField` continues to handle only one
|
||||
value. The underlying :class:`~widgets.FileInput` widget gained a
|
||||
``multiple`` argument. (`#281`_)
|
||||
* :class:`~fields.SelectField` choices can contain HTML (MarkupSafe
|
||||
``Markup`` object or equivalent API) and will be rendered properly.
|
||||
(`#302`_)
|
||||
* :class:`~fields.TimeField` and
|
||||
:class:`html5.TimeField <fields.html5.TimeField>` were added.
|
||||
(`#254`_)
|
||||
* Improved :class:`~validators.Email`. Note that it is still
|
||||
unreasonable to validate all emails with a regex and you should
|
||||
prefer validating by actually sending an email. (`#294`_)
|
||||
* Widgets render the ``required`` attribute when using a validator
|
||||
that provides the ``'required'`` flag, such as
|
||||
:class:`~validators.DataRequired`. (`#361`_)
|
||||
* Fix a compatibility issue with SQLAlchemy 2.1 that caused
|
||||
:class:`~ext.sqlalchemy.fields.QuerySelectField` to fail with
|
||||
``ValueError: too many values to unpack``. (`#391`_)
|
||||
- drop lang packages
|
||||
- test package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:56:14 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-WTForms
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -17,30 +17,30 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_with test
|
||||
Name: python-WTForms
|
||||
Version: 2.1
|
||||
Version: 2.2.1
|
||||
Release: 0
|
||||
Summary: A flexible forms validation and rendering library for Python web development
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: http://wtforms.simplecodes.com/
|
||||
Source: https://files.pythonhosted.org/packages/source/W/WTForms/WTForms-%{version}.zip
|
||||
Source: https://files.pythonhosted.org/packages/source/W/WTForms/WTForms-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
Recommends: python-Babel
|
||||
Recommends: python-Django
|
||||
Recommends: python-SQLAlchemy
|
||||
Recommends: python-python-dateutil
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: python3-Babel
|
||||
BuildRequires: python3-Django
|
||||
BuildRequires: python3-SQLAlchemy
|
||||
BuildRequires: python3-python-dateutil
|
||||
%endif
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Babel}
|
||||
BuildRequires: %{python_module SQLAlchemy}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-dateutil}
|
||||
# /SECTION
|
||||
Provides: python-WTForms-lang
|
||||
Obsoletes: python-WTForms-lang
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -57,53 +57,31 @@ Requires: %{name} = %{version}
|
||||
%description -n %{name}-doc
|
||||
Documentation for WTForms, which is a forms validation and rendering library for Python web development.
|
||||
|
||||
%package lang
|
||||
# FIXME: consider using %%lang_package macro
|
||||
Summary: Languages for package %{name}
|
||||
Group: System/Localization
|
||||
Requires: %{name} = %{version}
|
||||
Supplements: packageand(bundle-lang-other:%{name})
|
||||
Provides: %{name}-lang-all = %{version}
|
||||
|
||||
%description lang
|
||||
Provides translations to the package %{name}
|
||||
|
||||
%prep
|
||||
%setup -q -n WTForms-%{version}
|
||||
sed -i "s/\r//" CHANGES.rst docs/html/_static/jquery.js # Fix wrong EOL-encoding
|
||||
rm -rf docs/html/.buildinfo # Remove junk
|
||||
|
||||
%build
|
||||
%python_build
|
||||
# Fix wrong EOL-encoding
|
||||
sed -i "s/\r//" CHANGES.rst
|
||||
# remove reference to ../CHANGES.rst
|
||||
rm docs/changes.rst
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%find_lang wtforms
|
||||
%python_expand grep -F "%{$python_sitelib}" wtforms.lang > wtforms_%{$python_bin_suffix}.lang
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
pushd tests
|
||||
%python_expand $python runtests.py
|
||||
popd
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc AUTHORS.txt CHANGES.rst README.md
|
||||
%license LICENSE.rst
|
||||
%doc AUTHORS.rst CHANGES.rst README.rst
|
||||
%{python_sitelib}/*
|
||||
%exclude %{python_sitelib}/wtforms/locale
|
||||
|
||||
%files -n %{name}-doc
|
||||
%doc docs/html
|
||||
|
||||
%if %{have_python2} && ! 0%{?skip_python2}
|
||||
%files -n %{python2_prefix}-WTForms-lang -f wtforms_%{python2_bin_suffix}.lang
|
||||
%{python2_sitelib}/wtforms/locale
|
||||
%endif
|
||||
|
||||
%if %{have_python2} && ! 0%{?skip_python3}
|
||||
%files -n %{python3_prefix}-WTForms-lang -f wtforms_%{python3_bin_suffix}.lang
|
||||
%{python3_sitelib}/wtforms/locale
|
||||
%endif
|
||||
%doc docs/*.rst
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user