Logoj0ke.net Open Build Service > Projects > devel:python > python-formencode > Changes
Sign Up | Log In

Changes of Revision 4

[-] Added python-formencode.spec
x
 
1
@@ -0,0 +1,136 @@
2
+%define modname FormEncode
3
+Name:           python-formencode
4
+URL:            http://formencode.org/
5
+Summary:        HTML form validation, generation, and conversion package
6
+Version:        1.0
7
+Release:        1
8
+License:        PSF
9
+Group:          Development/Libraries/Python
10
+Source:         %{modname}-%{version}.tar.bz2
11
+Patch0:         python-formencode-0.5.1-badurl.patch
12
+Patch1:         formencode-python-path.diff
13
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
14
+%{py_requires}
15
+BuildRequires:  python-devel python-setuptools
16
+Requires:       python-setuptools
17
+
18
+%description
19
+FormEncode validates and converts nested structures. It allows for a
20
+declarative form of defining the validation, and decoupled processes for
21
+filling and generating forms.
22
+
23
+Authors:
24
+--------
25
+    Ian Bicking <ianb@colorstudy.com>
26
+
27
+%prep
28
+%setup -q -n %{modname}-%{version}
29
+%patch0
30
+%patch1
31
+
32
+%build
33
+export CFLAGS="$RPM_OPT_FLAGS"
34
+python setup.py build
35
+
36
+%install
37
+rm -rf %{buildroot}
38
+python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
39
+
40
+%clean
41
+rm -rf %{buildroot}
42
+
43
+%files -f INSTALLED_FILES
44
+%defattr(-,root,root)
45
+%doc docs examples
46
+
47
+%changelog
48
+
49
+* Tue Nov 11 2008 - Ciaran Farrell <cfarrell1980@gmail.com>
50
+- try building with --record-rpm instead of --record - 1.0-1
51
+
52
+* Wed Mar 19 2008 - James Oakley <jfunk@funktronics.ca> - 1.0-1
53
+- Update to 1.0
54
+
55
+* Thu Dec 27 2007 - James Oakley <jfunk@funktronics.ca> - 0.9-1
56
+- Fix bad python interpreter path
57
+
58
+* Tue Dec 18 2007 - James Oakley <jfunk@funktronics.ca> - 0.9-1
59
+- Update to 0.9:
60
+  - Backward incompatible changes
61
+    * The notion of "empty" has changed to include empty lists,
62
+      dictionaries, and tuples.  If you get one of these values passed
63
+      into (or generated by) a validator with ``not_empty=True`` you can
64
+      get exceptions where you didn't previously.
65
+  - Enhancements
66
+    * Added support for Paste's MultiDict dictionary as input to
67
+      Schema.to_python, by converting it to a normal dict via MultiDict.mixed.
68
+      Previously MultiDicts wouldn't work with CompoundValidators (like
69
+      ForEach)
70
+    * Added encoding parameter to htmlfill, which will handle cases when mixed
71
+      str and unicode objects are used (turning all str objects into unicode)
72
+    * Include ``formencode.validators.InternationalPhoneNumber`` from
73
+      W-Mark Kubacki.
74
+    * ``validators.Int`` takes ``min`` and ``max`` options (from Felix
75
+      Schwarz).
76
+    * You can control the missing message (which by default is just
77
+      "Missing Value") using the message ``"missing"`` in a validator
78
+      (also from James Gardner).
79
+    * Added ``validators.CADR`` (for IP addresses with an optional range)
80
+      and ``validators.MACAddress`` (from Christoph Haas).
81
+  - Bug Fixes
82
+    * Be friendlier when loaded from a zip file (as with py2exe);
83
+      previously only egg zip files would work.
84
+    * Fixed bug in htmlfill when a document ends with no trailing text
85
+      after the last tag.
86
+    * Fix problem with HTMLParser's default unescaping routing, which only
87
+      understood a very limited number of entities in attribute values.
88
+    * Fix problem with looking up A records for email addresses.
89
+    * ``validators.String`` now always returns strings.  It also converts
90
+      lists to comma-separated strings (no ``[...]``), and can encode
91
+      unicode if an ``encoding`` parameter is given.  Empty values are
92
+      handled better.
93
+    * ``validators.UnicodeString`` properly handles non-Unicode inputs.
94
+    * Make ``validators.DateConverter`` serialize dates properly
95
+      (from James Gardner).
96
+    * Minor fix to setup.py to make FormEncode more friendly with
97
+      zc.buildout.
98
+
99
+
100
+* Mon Apr 23 2007 - James Oakley <jfunk@funktronics.ca> - 0.7.1-1
101
+- Update to 0.7.1:
102
+  From 0.7.1:
103
+    * Set ``if_missing=()`` on ``validators.Set``, as a missing value
104
+      usually means empty for this value.
105
+    * Fix for ``Email`` validator that searches A records in addition to
106
+      MX records (from Jacob Smullyan).
107
+    * Fixes for the ``es`` locale.
108
+  From 0.7:
109
+    * **Backward compatibility issue**: Due to the addition of i18n
110
+      (internationalization) to FormEncode, Invalid exceptions now have
111
+      unicode messages.  You may encounter unicode-related errors if you
112
+      are mixing these messages with non-ASCII ``str`` strings.
113
+    * gettext-enabled branch merged in
114
+    * Fixes `#1457145: Fails on URLs with port numbers
115
+      <http://sourceforge.net/tracker/index.php?func=detail&aid=1457145&group_id=91231&atid=596416>`_
116
+    * Fixes `#1559918 Schema fails to accept unicode errors
117
+      <http://sourceforge.net/tracker/index.php?func=detail&aid=1559918&group_id=91231&atid=596416>`_
118
+    * ``from formencode.validators import *`` will import the ``Invalid``
119
+      exception now.
120
+    * ``Invalid().unpack_errors(encode_variables=True)`` now filters out
121
+      None values (which ``ForEach`` can produce even for keys with no
122
+      errors).
123
+
124
+* Mon Jan 08 2007 - poeml@suse.de
125
+- update to 0.6
126
+
127
+* Mon Jun 26 2006 - James Oakley <jfunk@funktronics.ca> - 0.4-3
128
+- Remove noarch
129
+
130
+* Fri Jun 23 2006 - James Oakley <jfunk@funktronics.ca> - 0.4-2
131
+- No longer need pth kludge
132
+
133
+* Thu Jun 22 2006 - James Oakley <jfunk@funktronics.ca> - 0.4-1
134
+- Update
135
+
136
+* Thu Oct 13 2005 - James Oakley <jfunk@funktronics.ca> - 0.2.2-1
137
+- Initial release
138