Commit Graph

905 Commits

Author SHA1 Message Date
Daniele Varrazzo
58079c6c91 Fixed dependencies of the sdist target 2010-11-15 09:35:28 +00:00
Daniele Varrazzo
0a2856477c The Makefile can receive the pg_config location. 2010-11-14 18:23:09 +00:00
Daniele Varrazzo
b25af6311c Makefile included in sdist. 2010-11-14 02:18:57 +00:00
Daniele Varrazzo
78dfbfb94a Fixed dependencies to build the docs. 2010-11-13 20:31:53 +00:00
Daniele Varrazzo
d07791cfe9 Fixed setuptools installation from scratch. 2010-11-13 20:01:48 +00:00
Daniele Varrazzo
988861a2d8 runtests.py script dropped.
It was broken as the distutils changed the name of the build dir
somewhere along the way. Use ``make runtests`` instead.
2010-11-13 19:50:25 +00:00
Daniele Varrazzo
9ffcb90038 Added flesh to the Makefile.
Now it can be used to build, make the docs (including installing
dependencies), run the tests, build the sdist.
2010-11-13 19:45:45 +00:00
Jean-Baptiste Quenot
b8ce51d9c2 Mention connection object in debug logs 2010-11-13 03:56:23 +00:00
Daniele Varrazzo
cd19f9115d Fixed notices order (ticket #9). 2010-11-11 11:54:43 +00:00
Daniele Varrazzo
3cae0f3f5d NamedTupleCursor doesn't change exception when fetching with no result. 2010-11-11 10:39:42 +00:00
Daniele Varrazzo
ef7a5ee8a9 Build the namedtuple only once per execution, not once per fetch. 2010-11-11 10:39:42 +00:00
Daniele Varrazzo
11c021cb21 Fixed tests to run on Windows. 2010-11-11 10:39:35 +00:00
Daniele Varrazzo
92ee893f0f Functions unused outside the module marked static. 2010-11-10 15:50:05 +00:00
Federico Di Gregorio
cf07af5ff5 Version bump to 2.3.0-beta2 2010-11-09 18:51:46 +01:00
Daniele Varrazzo
a39e98f9e5 Check the presence of a mro.
The mere presence of the Py_TPFLAGS_HAVE_CLASS doesn't ensure it is
there.
2010-11-09 14:28:00 +00:00
Daniele Varrazzo
f0773d5682 Avoid pointless string manipulation in NamedTupleCursor.
Closes ticket #10. Reported by Marko Kreen.
2010-11-09 11:17:02 +00:00
Daniele Varrazzo
ed6a4c8b1a Dropped PyArg_ParseTuple() calls in functions taking no arguments. 2010-11-09 03:18:54 +00:00
Daniele Varrazzo
2dc28ee7d8 Less lookups and more efficient calls in microprotocols_adapt().
Also more explicit handling of the exception indicator.
2010-11-09 02:41:43 +00:00
Daniele Varrazzo
753b580d72 Less lookups and more efficient calls in microprotocols_getquoted(). 2010-11-09 02:21:21 +00:00
Daniele Varrazzo
422fede38e Replaced PyObject_CallFunction() with *ObjArgs() where more efficient. 2010-11-09 01:49:22 +00:00
Daniele Varrazzo
9fe0511711 Silencing other 2 tests failures due to 2pc disabled in the server. 2010-11-09 01:44:42 +00:00
Jason Erickson
c79d20855a Win32 *time_r fix
Fixed the thread safetyness of the Windows *time_r functions.
2010-11-09 00:20:58 +00:00
Daniele Varrazzo
d601ab8239 fixed crash in pdecimal_str with a few Python 2.5.x releases.
is_finite() is not available in 2.5.1, it is in 2.5.5 but is officially
supported only since 2.6.
2010-11-09 00:14:22 +00:00
Daniele Varrazzo
0d318179a9 Fixed test syntax for py 2.4. 2010-11-09 00:09:32 +00:00
Daniele Varrazzo
af3681cc1c Fixed repr for Decimal wrapper. 2010-11-09 00:09:19 +00:00
Daniele Varrazzo
916c172cf7 Dropped file imported by mistake. 2010-11-09 00:09:09 +00:00
Daniele Varrazzo
62d3a1533b Use the adapter of an object superclass if available. 2010-11-08 01:35:06 +00:00
Daniele Varrazzo
225b276de5 Use faster function to build tuples in adaptation.
Fixed a refcount bug too.
2010-11-08 01:28:01 +00:00
Daniele Varrazzo
df05ea7a33 Py_TYPE defined as it is in Python 2.6. 2010-11-08 01:28:01 +00:00
Daniele Varrazzo
b9e96dbbd2 Added version info to Xid object docs. 2010-11-08 01:28:01 +00:00
Daniele Varrazzo
2f582da1f0 Notifcation example improved. 2010-11-08 01:28:00 +00:00
Daniele Varrazzo
7276c4a6b1 Tests fail gracefully if tpc is supported but disabled by the server. 2010-11-08 01:28:00 +00:00
Federico Di Gregorio
645ab521f3 Preparing release 2.3.0-beta1
* Merged NEWS-2.3 and NEWS-2.2: 2.0 (pre-async) still makes sense in case
  someone has horrible problems with the new code but 2.3 will just
  substitute 2.2 so having a separated NEWS file doesn't make sense.

* Moved authors and contributors to AUHTORS file.

* README now has pointers to web site and bug tracker.

* Updated MonoDevelop project.
2010-11-06 15:50:39 +01:00
Daniele Varrazzo
4ea9dbdcf0 Typo fixed 2010-11-06 04:40:47 +00:00
Daniele Varrazzo
abad3127ca Added NamedTupleCursor. 2010-11-06 04:33:44 +00:00
Daniele Varrazzo
985425fb38 Added test to verify the ticket #7 is fixed. 2010-11-06 02:24:28 +00:00
Daniele Varrazzo
5b65e75122 Docs expansions about thread/processes safety. 2010-11-05 23:58:10 +00:00
Daniele Varrazzo
4125b3fce0 Added compatibility macro for pre 2.6 2010-11-05 12:59:32 +00:00
Daniele Varrazzo
04b4649d03 Updated version 2.2.3 -> 2.3 in the docs. 2010-11-05 12:38:49 +00:00
Daniele Varrazzo
ee71e52269 Added news file for new release. 2010-11-05 10:07:25 +00:00
Daniele Varrazzo
40377a18af Updated classifier to make the upload work. 2010-11-05 10:06:54 +00:00
Daniele Varrazzo
274ff8bb1d Dropped reference to removed TODO file: it breaks 'pip'. 2010-11-05 09:40:02 +00:00
Daniele Varrazzo
d6cdc1c7b6 Bump to 2.3.dev0 2010-11-05 09:34:53 +00:00
Daniele Varrazzo
2480f587e1 Added warning note about equivalence inconsistence between Notify and tuples. 2010-11-05 09:34:52 +00:00
Daniele Varrazzo
77c0ab02d8 The Notify type is hashable.
If there is no payload, hash the same way the equivalent 2-tuple does.
Otherwise hash on the payload too.
2010-11-05 09:34:52 +00:00
Daniele Varrazzo
56ae1fe4bf Payload default is the empty string. 2010-11-05 09:34:52 +00:00
Daniele Varrazzo
9c58c01e0f Added comparison between Notify objects and Notify or tuple.
Explicit comparison with the tuple is required if we want to make
Notify() == (pid, channel) work: item access is not enough (and a test
in the suite fails if we get this wrong).
2010-11-05 09:34:52 +00:00
Daniele Varrazzo
6cb949d371 Try to install the hstore type in the test database. 2010-11-05 09:34:52 +00:00
Daniele Varrazzo
1b100b5cbf Skip tests if the hstore type is not in the test database. 2010-11-05 09:34:52 +00:00
Daniele Varrazzo
01ec120aa8 Hstore documentation improved. 2010-11-05 09:34:52 +00:00