pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-wtforms py-wtforms: Update to 2.2.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b4493615f8e0
branches:  trunk
changeset: 325216:b4493615f8e0
user:      kleink <kleink%pkgsrc.org@localhost>
date:      Mon Nov 12 12:25:51 2018 +0000

description:
py-wtforms: Update to 2.2.1.


Version 2.2.1
-------------

Released on June 7th, 2018

-   :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`_, `#401`_)

.. _#291: https://github.com/wtforms/wtforms/issues/291
.. _#401: https://github.com/wtforms/wtforms/issues/401


Version 2.2
-----------

Released on June 2nd, 2018

-   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`_)

.. _#248: https://github.com/wtforms/wtforms/pull/248
.. _#251: https://github.com/wtforms/wtforms/pull/251
.. _#254: https://github.com/wtforms/wtforms/pull/254
.. _#280: https://github.com/wtforms/wtforms/pull/280
.. _#281: https://github.com/wtforms/wtforms/pull/281
.. _#286: https://github.com/wtforms/wtforms/pull/286
.. _#294: https://github.com/wtforms/wtforms/pull/294
.. _#302: https://github.com/wtforms/wtforms/pull/302
.. _#361: https://github.com/wtforms/wtforms/pull/361
.. _#391: https://github.com/wtforms/wtforms/pull/391

diffstat:

 www/py-wtforms/Makefile |  16 ++++++++++++----
 www/py-wtforms/PLIST    |  17 ++++++++++++++++-
 www/py-wtforms/distinfo |  10 +++++-----
 3 files changed, 33 insertions(+), 10 deletions(-)

diffs (98 lines):

diff -r d3135ebaf7aa -r b4493615f8e0 www/py-wtforms/Makefile
--- a/www/py-wtforms/Makefile   Mon Nov 12 11:29:27 2018 +0000
+++ b/www/py-wtforms/Makefile   Mon Nov 12 12:25:51 2018 +0000
@@ -1,18 +1,26 @@
-# $NetBSD: Makefile,v 1.13 2016/06/08 17:43:46 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2018/11/12 12:25:51 kleink Exp $
 
-DISTNAME=      WTForms-2.1
+DISTNAME=      WTForms-2.2.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=W/WTForms/}
-EXTRACT_SUFX=  .zip
 
 MAINTAINER=    kleink%NetBSD.org@localhost
-HOMEPAGE=      http://wtforms.simplecodes.com/
+HOMEPAGE=      https://wtforms.readthedocs.io/
 COMMENT=       Flexible forms validation and rendering library
 LICENSE=       modified-bsd
 
 USE_LANGUAGES= # empty
 
+.include "../../lang/python/pyversion.mk"
+
+DEPENDS+=      ${PYPKGPREFIX}-babel>=2.6.0:../../devel/py-babel
+DEPENDS+=      ${PYPKGPREFIX}-email_validator-[0-9]*:../../mail/py-email_validator
+.if ${_PYTHON_VERSION} < 33
+DEPENDS+=      ${PYPKGPREFIX}-ipaddress-[0-9]*:../../net/py-ipaddress
+.endif
+DEPENDS+=      ${PYPKGPREFIX}-markupsafe-[0-9]*:../../textproc/py-markupsafe
+
 post-extract:
        ${FIND} ${WRKSRC} -type f -exec ${CHMOD} -x {} \;
 
diff -r d3135ebaf7aa -r b4493615f8e0 www/py-wtforms/PLIST
--- a/www/py-wtforms/PLIST      Mon Nov 12 11:29:27 2018 +0000
+++ b/www/py-wtforms/PLIST      Mon Nov 12 12:25:51 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2016/01/08 16:56:23 kleink Exp $
+@comment $NetBSD: PLIST,v 1.8 2018/11/12 12:25:51 kleink Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -106,8 +106,11 @@
 ${PYSITELIB}/wtforms/i18n.py
 ${PYSITELIB}/wtforms/i18n.pyc
 ${PYSITELIB}/wtforms/i18n.pyo
+${PYSITELIB}/wtforms/locale/README.md
 ${PYSITELIB}/wtforms/locale/ar/LC_MESSAGES/wtforms.mo
 ${PYSITELIB}/wtforms/locale/ar/LC_MESSAGES/wtforms.po
+${PYSITELIB}/wtforms/locale/bg/LC_MESSAGES/wtforms.mo
+${PYSITELIB}/wtforms/locale/bg/LC_MESSAGES/wtforms.po
 ${PYSITELIB}/wtforms/locale/ca/LC_MESSAGES/wtforms.mo
 ${PYSITELIB}/wtforms/locale/ca/LC_MESSAGES/wtforms.po
 ${PYSITELIB}/wtforms/locale/cs_CZ/LC_MESSAGES/wtforms.mo
@@ -128,8 +131,14 @@
 ${PYSITELIB}/wtforms/locale/et/LC_MESSAGES/wtforms.po
 ${PYSITELIB}/wtforms/locale/fa/LC_MESSAGES/wtforms.mo
 ${PYSITELIB}/wtforms/locale/fa/LC_MESSAGES/wtforms.po
+${PYSITELIB}/wtforms/locale/fi/LC_MESSAGES/wtforms.mo
+${PYSITELIB}/wtforms/locale/fi/LC_MESSAGES/wtforms.po
 ${PYSITELIB}/wtforms/locale/fr/LC_MESSAGES/wtforms.mo
 ${PYSITELIB}/wtforms/locale/fr/LC_MESSAGES/wtforms.po
+${PYSITELIB}/wtforms/locale/he/LC_MESSAGES/wtforms.mo
+${PYSITELIB}/wtforms/locale/he/LC_MESSAGES/wtforms.po
+${PYSITELIB}/wtforms/locale/hu/LC_MESSAGES/wtforms.mo
+${PYSITELIB}/wtforms/locale/hu/LC_MESSAGES/wtforms.po
 ${PYSITELIB}/wtforms/locale/it/LC_MESSAGES/wtforms.mo
 ${PYSITELIB}/wtforms/locale/it/LC_MESSAGES/wtforms.po
 ${PYSITELIB}/wtforms/locale/ja/LC_MESSAGES/wtforms.mo
@@ -146,6 +155,12 @@
 ${PYSITELIB}/wtforms/locale/pt/LC_MESSAGES/wtforms.po
 ${PYSITELIB}/wtforms/locale/ru/LC_MESSAGES/wtforms.mo
 ${PYSITELIB}/wtforms/locale/ru/LC_MESSAGES/wtforms.po
+${PYSITELIB}/wtforms/locale/sk/LC_MESSAGES/wtforms.mo
+${PYSITELIB}/wtforms/locale/sk/LC_MESSAGES/wtforms.po
+${PYSITELIB}/wtforms/locale/sv/LC_MESSAGES/wtforms.mo
+${PYSITELIB}/wtforms/locale/sv/LC_MESSAGES/wtforms.po
+${PYSITELIB}/wtforms/locale/tr/LC_MESSAGES/wtforms.mo
+${PYSITELIB}/wtforms/locale/tr/LC_MESSAGES/wtforms.po
 ${PYSITELIB}/wtforms/locale/uk/LC_MESSAGES/wtforms.mo
 ${PYSITELIB}/wtforms/locale/uk/LC_MESSAGES/wtforms.po
 ${PYSITELIB}/wtforms/locale/wtforms.pot
diff -r d3135ebaf7aa -r b4493615f8e0 www/py-wtforms/distinfo
--- a/www/py-wtforms/distinfo   Mon Nov 12 11:29:27 2018 +0000
+++ b/www/py-wtforms/distinfo   Mon Nov 12 12:25:51 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.9 2016/01/08 16:56:23 kleink Exp $
+$NetBSD: distinfo,v 1.10 2018/11/12 12:25:51 kleink Exp $
 
-SHA1 (WTForms-2.1.zip) = b4fda4793f32bded334cb9f8a9256bde3be411d5
-RMD160 (WTForms-2.1.zip) = 1955efe5d1c55299ab4da3cbb5215c14749b6194
-SHA512 (WTForms-2.1.zip) = 2bdac0a35eca465021df9fb37dc0acd87bf487c6158b782d48870e9d5aab6ed3eb635af89bb38b9e8419688185f7c7b7875e68f7435d94bca8b074b2dddb12a0
-Size (WTForms-2.1.zip) = 553644 bytes
+SHA1 (WTForms-2.2.1.tar.gz) = a871ff785b65da648c162ecbdfccf5d5f95b5d58
+RMD160 (WTForms-2.2.1.tar.gz) = bad93be8a09ac4db57663b4f52143a70cdefc53a
+SHA512 (WTForms-2.2.1.tar.gz) = 06478790a8a4bf728e5436edaa63c7c0e596f71d63b273e1f296f9255d9fa3e31a7bfa95971c214a8cea684034ac3c77b05371f4b4e14da9d9ef2c5afadabde0
+Size (WTForms-2.2.1.tar.gz) = 156904 bytes



Home | Main Index | Thread Index | Old Index