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

Changes of Revision 2

[-] Added python-sqlobject.spec
x
 
1
@@ -0,0 +1,164 @@
2
+%define modname SQLObject
3
+Name:           python-sqlobject
4
+URL:            http://sqlobject.org/
5
+Summary:        Object-Relational Manager for Python
6
+Version:        0.8.7
7
+Release:        1
8
+License:        LGPL
9
+Group:          Development/Libraries/Python
10
+Source:         %{modname}-%{version}.tar.bz2
11
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
12
+Requires:       python-formencode
13
+%{py_requires}
14
+BuildRequires:  python-devel python-setuptools python-formencode
15
+
16
+%description
17
+SQLObject is an object-relational mapper. It allows you to translate RDBMS
18
+table rows into Python objects, and manipulate those objects to transparently
19
+manipulate the database.
20
+
21
+Authors:
22
+--------
23
+    Ian Bicking <ianb@colorstudy.com>
24
+
25
+%prep
26
+%setup -q -n %{modname}-%{version}
27
+
28
+%build
29
+export CFLAGS="$RPM_OPT_FLAGS"
30
+python setup.py build
31
+
32
+%install
33
+rm -rf %{buildroot}
34
+python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
35
+
36
+%clean
37
+rm -rf %{buildroot}
38
+
39
+%files -f INSTALLED_FILES
40
+%defattr(-,root,root)
41
+%doc docs README.txt
42
+
43
+%changelog
44
+
45
+* Wed Nov 12 2008 - Ciaran Farrell <cfarrell1980@gmail.com> - 0.8.7-1
46
+- Changed --record to --record-rpm as per bnc#441794
47
+
48
+* Mon Jan 21 2008 - James Oakley <jfunk@funktronics.ca> - 0.8.7-1
49
+- Update to 0.8.7:
50
+  - A number of changes ported from SQLObject 0.7.10
51
+
52
+* Wed Oct 31 2007 - James Oakley <jfunk@funktronics.ca> - 0.8.6-1
53
+- Update to 0.8.6
54
+
55
+* Thu Jul 05 2007 - James Oakley <jfunk@funktronics.ca> - 0.8.4-1
56
+- Update to 0.8.4
57
+  - A number of bugfixes forward-ported from 0.7.x
58
+
59
+* Mon Apr 23 2007 - James Oakley <jfunk@funktronics.ca> - 0.8.2-1
60
+- Update to 0.8.2
61
+  - Fixed ConnectionHub.doInTransaction() - if the original connection was
62
+    processConnection - reset processConnection, not threadConnection
63
+
64
+* Tue Mar 20 2007 - James Oakley <jfunk@funktronics.ca> - 0.8.1-1
65
+- Update to 0.8.1:
66
+  - Bug Fixes
67
+    - ID columns are reverted back from INT UNSIGNED to INT for MySQL to be in
68
+      accord with FOREIGN KEYs
69
+    - Fixed return value from Firebird/MaxdbConnection.createTable()
70
+    - Fixed and simplified DatabaseIndex.get()
71
+    - Fixed ConnectionHub.doInTransaction() - close low-level connection on
72
+      commit() to prevent connections leaking
73
+- Changes in 0.8.0:
74
+  - Features & Interface
75
+    - It is now possible to create tables that reference each other.
76
+      Constraints (in the DBMSes that support constraints) are added after the
77
+      tables have been created
78
+    - Added createSQL as an option for sqlmeta. Here you can add related SQL
79
+      you want executed by sqlobject-admin create after table creation
80
+      createSQL expects a string, list, or dictionary. If using a dictionary
81
+      the key should be a dbName value (ex. 'postgres') and the value should be
82
+      a string or list. Examples in sqlobject/tests/test_sqlobject_admin.py or
83
+      at <http://sqlobject.org/sqlobject-admin.html#the-create-command>
84
+    - Added method sqlhub.doInTransaction(callable, *args, **kwargs), to be used like:
85
+         sqlhub.doInTransaction(process_request, os.environ)
86
+      This will run process_request(os.environ). The return value will be preserved
87
+    - Added method .getOne([default]) to SelectResults (these are the objects
88
+      returned by .select() and .selectBy()). This returns a single object,
89
+      when the query is expected to return only one object. The single argument
90
+      is the value to return when zero results are found (more than one result
91
+      is always an error). If no default is given, it is an error if no such
92
+      object exists
93
+    - Added a WSGI middleware (in sqlobject.wsgi_middleware) for configuring
94
+      the database for the request. Also handles transactions. Available as
95
+      egg:SQLObject in Paste Deploy configuration files
96
+    - New joins! ManyToMany and OneToMany; not fully documented yet, but still
97
+      more sensible and smarter
98
+    - SELECT FOR UPDATE
99
+    - New module dberrors.py - a hierarchy of exceptions. Translation of DB API
100
+      module's exceptions to the new hierarchy is performed for SQLite and
101
+      MySQL
102
+    - SQLiteConnection got a new keyword "factory" - a name or a reference to a
103
+      factory function that returns a connection class; useful for implementing
104
+      functions or aggregates. See test_select.py and test_sqlite_factory.py
105
+      for examples
106
+    - SQLObject now disallows columns with names that collide with existing
107
+      variables and methods, such as "_init", "expire", "set" and so on
108
+  - Small Features
109
+    - Configurable client character set (encoding) for MySQL
110
+    - Added a close option to .commit(), so you can close the transaction as
111
+      you commit it
112
+    - DecimalValidator
113
+    - Added .expireAll() methods to sqlmeta and connection objects, to expire
114
+      all instances in those cases
115
+    - String IDs
116
+    - FOREIGN KEY for MySQL
117
+    - Support for sqlite3 (a builtin module in Python 2.5)
118
+    - SelectResults cannot be queried for truth value; in any case it was
119
+      meaningless - the result was always True; now __nonzero__() raises
120
+      NotImplementedError in case one tries bool(MyTable.select()) or "if
121
+      MyTable.select():..."
122
+    - With empty parameters AND() and OR() returns None
123
+    - Allows to use set/frozenset sets/Set/ImmutableSet sets as sequences
124
+      passed to the IN operator
125
+    - ID columns are now INT UNSIGNED for MySQL
126
+  - Bug Fixes
127
+    - Fixed problem with sqlite and threads; connections are no longer shared
128
+      between threads for sqlite (except for :memory:)
129
+    - The reference loop between SQLObject and SQLObjectState eliminated using
130
+      weak references
131
+    - Another round of bugfixes for MySQL errors 2006 and 2013 (SERVER_GONE,
132
+      SERVER_LOST)
133
+    - Fixed a bug in MSSQLConnection caused by column names being unicode
134
+    - Fixed a bug in FirebirdConnection caused by column names having trailing
135
+      spaces
136
+    - Order by several columns with inheritance
137
+    - Fixed aggregators and accumulators with inheritance
138
+
139
+* Sat Jan 20 2007 - judas_iscariote@shorewall.net
140
+- update to version 0.7.2
141
+
142
+* Sun Oct 29 2006 - poeml@suse.de
143
+- remove obsolete SQLObject-0.7rc1-psycopg2.patch
144
+
145
+* Thu Oct 26 2006 - James Oakley <jfunk@funktronics.ca> - 0.7.1-1
146
+- Update to 0.7.1
147
+
148
+* Fri Jun 23 2006 - James Oakley <jfunk@funktronics.ca> - 0.7.0-2
149
+- No longer need pth kludge
150
+
151
+* Thu Jun 22 2006 - James Oakley <jfunk@funktronics.ca> - 0.7.0-1
152
+- Update
153
+
154
+* Wed Oct 19 2005 - James Oakley <jfunk@funktronics.ca> - 0.7-ft.3
155
+- Use psycopg2 for postgresql
156
+
157
+* Thu Oct 13 2005 - James Oakley <jfunk@funktronics.ca> - 0.7-ft.2
158
+- Update
159
+- Build for SL10
160
+
161
+* Wed Sep 21 2005 - James Oakley <jfunk@funktronics.ca> - 0.7-ft.1
162
+- Update
163
+
164
+* Tue Sep 20 2005 - James Oakley <jfunk@funktronics.ca> - 0.6.1-1
165
+- Initial release
166