[python-wtf-peewee] Update to 0.2.3
Matej Stuchlik
mstuchli at fedoraproject.org
Mon Jun 9 08:42:54 UTC 2014
commit 2b4b133413a487783f88cafc9d52b1d4851840c0
Author: Matej Stuchlik <mstuchli at redhat.com>
Date: Mon Jun 9 10:41:28 2014 +0200
Update to 0.2.3
Empty-String-considered-False.patch | 12 ++++++++++++
python-wtf-peewee.spec | 18 ++++++++++++++----
2 files changed, 26 insertions(+), 4 deletions(-)
---
diff --git a/Empty-String-considered-False.patch b/Empty-String-considered-False.patch
new file mode 100644
index 0000000..ca20a6f
--- /dev/null
+++ b/Empty-String-considered-False.patch
@@ -0,0 +1,12 @@
+diff -up wtf-peewee-0.2.3/wtfpeewee/tests.py.orig wtf-peewee-0.2.3/wtfpeewee/tests.py
+--- wtf-peewee-0.2.3/wtfpeewee/tests.py.orig 2014-06-09 10:32:49.233124865 +0200
++++ wtf-peewee-0.2.3/wtfpeewee/tests.py 2014-06-09 10:32:59.865181586 +0200
+@@ -345,7 +345,7 @@ class WTFPeeweeTestCase(unittest.TestCas
+
+ # again, this is for the purposes of documenting behavior -- nullable
+ # booleanfields won't work without a custom field class
+- self.assertEqual(nfm.b, True)
++ self.assertEqual(nfm.b, False)
+
+ form = NullFieldsModelForm(FakePost({'c': 'test'}))
+ self.assertTrue(form.validate())
diff --git a/python-wtf-peewee.spec b/python-wtf-peewee.spec
index 9dc7b0f..fba8b63 100644
--- a/python-wtf-peewee.spec
+++ b/python-wtf-peewee.spec
@@ -1,17 +1,23 @@
%global srcname wtf-peewee
Name: python-wtf-peewee
-Version: 0.2.2
-Release: 2%{?dist}
+Version: 0.2.3
+Release: 1%{?dist}
Summary: WTForms integration for peewee models
License: MIT
URL: https://github.com/coleifer/wtf-peewee/
Source0: https://pypi.python.org/packages/source/w/%{srcname}/%{srcname}-%{version}.tar.gz
+Patch0: Empty-String-considered-False.patch
+
BuildArch: noarch
-BuildRequires: python2-devel python-setuptools python-peewee python-wtforms
-Requires: python-wtforms python-peewee
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+BuildRequires: python-peewee
+BuildRequires: python-wtforms
+Requires: python-wtforms
+Requires: python-peewee
%description
Wtf-peewee, based on the code found in wtforms.ext, provides a bridge between
@@ -19,6 +25,7 @@ peewee models and wtforms, mapping model fields to form fields.
%prep
%setup -q -n %{srcname}-%{version}
+%patch0 -p1
%build
%{__python} setup.py build
@@ -37,6 +44,9 @@ peewee models and wtforms, mapping model fields to form fields.
%{python_sitelib}/*.egg-info
%changelog
+* Mon Jun 09 2014 Matej Stuchlik <mstuchli at redhat.com> - 0.2.3-1
+- Update to 0.2.3
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list