Steve Lacy
f3526d0630
Refactoring of the pg_config detection code in setup.py
...
Pull all state and path searching into it's own class.
2011-06-07 08:40:19 +01:00
Daniele Varrazzo
dcc9e84a68
Don't encode the pg_config path on Python 3 on Windows
...
It can deal with unicode ok, and fails if it gets bytes.
2011-06-04 22:26:21 +01:00
Daniele Varrazzo
c8ec747903
Don't fail import if mx.DateTime module is not found at import time
...
A better fix for ticket #53 .
2011-06-04 14:16:24 +01:00
Daniele Varrazzo
531292bca5
Merge branch 'neg-escape' into devel
2011-05-30 22:09:23 +01:00
Daniele Varrazzo
281427f450
Fixed escape for negative numbers prefixed by minus operator
...
Closes ticket #57 .
2011-05-30 22:00:20 +01:00
Daniele Varrazzo
af424821b7
Don't build mx.DateTime support if the module can't be imported
...
Previously we only checked for the existence of the include files, but this
doesn't imply the presence of the module. Particularly true in restricted
environments such as virtualenv.
Closes ticket #53 .
2011-05-11 12:59:31 +01:00
Daniele Varrazzo
c687f1d816
Bump to next development release
2011-05-11 12:59:31 +01:00
Federico Di Gregorio
9080b30741
Preparing release 2.4.1
2011-05-11 09:58:34 +02:00
Daniele Varrazzo
7716cc6a0c
Allow to specify --static-libpq on setup.py command line
...
Patch provided by Matthew Ryan (ticket #48 ).
2011-03-26 13:48:37 +00:00
Daniele Varrazzo
4a8b5f98f3
Bump to work on 2.4.1
2011-03-04 20:18:22 +00:00
Federico Di Gregorio
2212ea96a6
Preparing release 2.4
...
* NEWS file now uses 72 columns (better in emails and posts)
* Bumped versions
* Updated MonoDevelop file
2011-02-27 12:52:00 +01:00
Jason Erickson
2997c0eb6c
Windows MSVC: 64bit compiler sees 2 export symbols
...
The MSVC compiler sees a request for the main symbol (init__pyscopg) to be
exported twice during the build process and issues a warning in 64bit mode.
One symbol is from distutils exporting the library with the
build_ext.get_export_symbols() function, the other is from the #define
PyMODINIT_FUNC (define in pyport.h) that begins the main _psycopg module.
This patch overrides the get_export_symbols function and returns an empty
array of symbols to export if the compiler is MSVC.
2011-02-25 10:25:12 +00:00
Jason Erickson
6f0dfe6d2d
Windows MSVC: Remove /Wp64 compiler flag
...
Remove the /Wp64 flag since it is deprecated starting in Visual Studio 2008.
2011-02-23 14:29:44 -07:00
Daniele Varrazzo
8530ef1793
Download url set to the sdist location.
2011-02-18 13:53:57 +00:00
Daniele Varrazzo
7756eae573
Merge remote branch 'jason/devel' into devel
2011-02-17 11:50:14 +00:00
Daniele Varrazzo
84352e8cfb
Bump version number
2011-02-15 10:26:48 +00:00
Jason Erickson
7dfb40ce43
Windows manifest check now checks compiler type
...
Initial compiler check was only checking two python versions. Changed the
check not to check python version, but compiler version, to be compatible
with more versions of python.
2011-02-14 16:03:38 -07:00
Daniele Varrazzo
3842026bed
Bumped to 2.4 beta2
...
We may release a Windows package to let people test if ticket #20 is
fixed.
2011-02-12 20:19:14 +00:00
Jason Erickson
560f52106c
Windows manifest changes based upon architecture
...
Apparently, using * for the architecture has the potential to not work on
on some amd64 systems. Added checks and split the manifest based upon
architecture.
2011-02-11 10:01:38 -07:00
Jason Erickson
da68119f7c
MSVC manifest change to work with buildbot
...
The buildbot does not seem to like the checks for if the source has
changed, forced build, etc. Removed to work with buildbot.
2011-02-10 22:55:33 -07:00
Jason Erickson
502d8e120e
Fix manifest insertion checks for MSVC py2.6/2.7
...
The manifest was never inserted because the checks were failing. Assuming
build_extension was clearing out some of the checked values.
2011-02-10 22:28:27 -07:00
Jason Erickson
f2c0a01db1
Modified code to conform to python coding standard
...
Change indention from 2 spaces to 4 spaces with recent changes.
2011-02-10 21:50:33 -07:00
Jason Erickson
68ccac1766
Fixed linefeeds on merged files to unix linefeeds
...
Merge utility changed the linefeeds from unix to windows. Changed the
linefeeds back to unix linefeeds.
2011-02-10 17:16:10 -07:00
Jason Erickson
b075017ad9
Pulled down changes from dvarrazzo branch on gh
...
Pulled the master branch from of Daniele's psycopg branch on github and
merged the changes.
2011-02-10 15:59:31 -07:00
Jason Erickson
8d28509f49
Change win32 build to reinsert VC Library Manifest
...
Added a change at the end of the build process that would reinsert the VC library manifest. This patch will fix issues when an embedded program does not have a manifest pointing to the VC 2008 runtime library, such as in an apache/mod_python situation.
Signed-off-by: Jason Erickson <jerickso@stickpeople.com>
2011-02-10 13:17:14 -07:00
Daniele Varrazzo
d08bfcbee5
Refuse to build if pg_config is not found.
...
I think half of the problems in OS X setup are due to setup going ahead
even when the pg_config is not found. We are now only building with PG
version that make the tool available.
2011-01-02 02:01:53 +01:00
Daniele Varrazzo
506ce93a5b
Bump to the next dev version.
2011-01-01 12:55:41 +01:00
Federico Di Gregorio
69c66a3a3f
Preparing release 2.3.2
2010-12-20 13:33:21 +01:00
Daniele Varrazzo
5a0cfad95f
Bump to next dev version.
2010-12-18 15:25:53 +00:00
Daniele Varrazzo
9e9933faed
Update classifier URLs for PyPI.
2010-12-04 23:14:03 +00:00
Federico Di Gregorio
ee5015a30b
Preparing release 2.3.1
2010-12-04 21:24:02 +01:00
Daniele Varrazzo
ebd73c14a8
Going to dev version for 2.3.1.
2010-12-04 13:43:28 +00:00
Federico Di Gregorio
2dae07a796
Preparing release 2.3.0
2010-12-02 14:41:58 +01:00
Daniele Varrazzo
1fd6b84068
Added test suite to the distributed package.
2010-11-24 03:36:57 +00:00
Daniele Varrazzo
6f51eefac3
Dropped references to psycopg 1 from readme and install.
...
Nowaday not many remember it: I think it's useless to make comparisons.
2010-11-20 01:14:05 +00:00
Daniele Varrazzo
a88d7ab424
Dropped support for protocol 2.
...
Dropped both the setup constant allowing conditional compiling and the
code specific to V2 protocol (mostly COPY and error handling).
2010-11-16 01:08:50 +00:00
Federico Di Gregorio
cf07af5ff5
Version bump to 2.3.0-beta2
2010-11-09 18:51:46 +01: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
40377a18af
Updated classifier to make the upload work.
2010-11-05 10:06:54 +00:00
Daniele Varrazzo
d6cdc1c7b6
Bump to 2.3.dev0
2010-11-05 09:34:53 +00:00
Daniele Varrazzo
0021e56d80
Added connection.xid() and related objects.
...
By James Henstridge on 2008-07-23.
Merged from lp:~jamesh/psycopg/two-phase-commit/revision/356
* psycopg/connection_type.c (psyco_conn_xid): add a
Connection.xid() method that instantiates Xid objects.
* psycopg/psycopgmodule.c (init_psycopg): initialise the Xid
object type.
* psycopg/xid.h:
* psycopg/xid_type.c: Implement a basic transaction ID object for
use in two phase commit.
2010-11-05 09:34:47 +00:00
Daniele Varrazzo
f435d15c95
Adding Notify object with payload.
2010-11-05 09:34:46 +00:00
Daniele Varrazzo
cb1ef242a0
Bump to version 2.2.3-devel.
2010-09-23 23:27:55 +01:00
Federico Di Gregorio
c3b835929b
Preparing release 2.2.2
2010-07-18 12:32:45 +02:00
Federico Di Gregorio
557608f715
Applied spelling fixes patch from Peter Eisentraut
2010-07-18 12:14:46 +02:00
Daniele Varrazzo
e3d489f701
Bump to version 2.2.2-devel.
...
The -devel suffix appears in the docs we publish on the website, so it's
clear that they refer to the upcoming version.
2010-05-20 02:03:07 +01:00
Daniele Varrazzo
eacf6febfe
Warn on declarations not at beginning of the block.
...
They are accepted by gcc but not by MS compilers.
2010-05-19 11:40:38 +01:00
Federico Di Gregorio
23391a3c55
Preparing release 2.2.1
2010-05-17 21:51:25 +02:00
Jason Erickson
069695b4ae
Additional Library for Windows linking and OpenSSL 1.0.0
...
Added the linking of crypt32.lib to the windows SSL build, as it seems that the current version of OpenSSL is looking for crypt32.lib as well.
2010-05-17 09:06:29 +02:00
Federico Di Gregorio
36cbefdee1
Updated project and version for release 2.2.0
2010-05-15 17:51:54 +02:00
Daniele Varrazzo
1446f046e9
Added wait callback and functions to deal with it.
2010-04-21 15:21:32 +01:00
Federico Di Gregorio
012e2e3c72
Preparing 2.2.0 release candidate 1
2010-04-05 17:06:35 +02:00
Federico Di Gregorio
0edd520593
Preparing release 2.0.14 (final)
2010-03-13 21:15:50 +01:00
Federico Di Gregorio
21a6a64fd1
Changed setup.py to detect PostgreSQL "alpha" versions
2010-03-11 22:42:00 +01:00
Federico Di Gregorio
3636bc4201
Release candidate 1
2010-02-22 19:45:48 +01:00
Federico Di Gregorio
fd6d3185b4
Preparing release 2.0.14
2010-02-21 01:26:43 +01:00
Federico Di Gregorio
192034dc38
Fixed problem with decimal.Decimal conversions
2010-02-21 01:04:00 +01:00
Federico Di Gregorio
67de65040c
Fixed license in trove categories
2010-02-14 13:35:49 +01:00
Daniele Varrazzo
f6e87fbb30
Moved status from beta to stable in trove classifier.
2010-02-14 00:35:48 +01:00
Federico Di Gregorio
611606d532
Changes license to LGPL3 + OpenSSL exception on all source files
2010-02-12 23:34:53 +01:00
Jason Erickson
b537404487
Fixed --have_ssl command line parameter
...
Added initialization of have_ssl variable so passing --have_ssl on the
command line works.
2009-10-08 13:18:55 +02:00
Jason Erickson
ac1b5ce68a
Unclear error message when no pg_config found
...
If unable to find pg_config, a warning will be printed instead of stopping
the build process and displaying a generic error message.
2009-10-08 13:17:26 +02:00
Jason Erickson
69a8400e60
Added additional library required for PostgreSQL 8.4.x
...
For MSVC, added an additional library to include that is required for
PostgreSQL 8.4.x.
2009-10-04 23:37:14 +02:00
Federico Di Gregorio
9bd771cda0
Preparing release 2.0.13
2009-10-04 12:53:42 +02:00
Federico Di Gregorio
9670c9eddc
Enabled linking to static libpq
2009-10-04 12:43:30 +02:00
Federico Di Gregorio
0fc94be496
Preparing release 2.0.12
2009-08-09 17:22:18 +02:00
Federico Di Gregorio
a2af059e6c
Fixed PostgreSQL version detection
2009-08-09 16:28:27 +02:00
Federico Di Gregorio
091102a919
Preparing release 2.0.11
2009-05-09 14:52:16 +02:00
Federico Di Gregorio
e1fae0fcac
Fixed bug in RealDictCursor when prefetching
2009-05-09 14:44:59 +02:00
Federico Di Gregorio
5e3fa15091
Better detection of PostgreSQL version
2009-04-21 00:38:09 +02:00
Federico Di Gregorio
d621c02e58
Preparing release 2.0.10
2009-04-20 20:34:06 +02:00
Federico Di Gregorio
e3a5ae8e20
Added a couple of test scripts to sandbox
2009-04-19 16:25:49 +02:00
Federico Di Gregorio
850423d8fc
Fixed setup script to handle PostgreSQL devel version strings
2009-03-21 12:54:44 +01:00
Federico Di Gregorio
49bdaf92f6
Merge from trunk
2009-02-22 23:39:13 +01:00
Federico Di Gregorio
a6dff6c82a
Preparing release 2.0.9
2009-02-22 23:37:34 +01:00
James Henstridge
9067bde803
* psycopg/utils.c (psycopg_escape_string): same here.
...
* psycopg/adapter_binary.c (binary_escape): simplify PostgreSQL
version check.
* setup.py (psycopg_build_ext.finalize_options): use a single
define of the PostgreSQL version in a form that can easily be used
by #ifdefs.
2009-02-17 16:00:52 +09:00
Federico Di Gregorio
eb25f9f154
Added adapter to handle float('inf') and float('nan')
2009-01-23 00:09:20 +01:00
James Henstridge
83b03e5e36
If we are depending on Python 2.4, we don't need to make decimal module
...
support conditional.
2008-12-27 00:03:11 +09:00
James Henstridge
345a254ca0
Remove conditionals on support for booleans and datetimes, since they
...
are guaranteed to be available in Python 2.4.
2008-12-26 23:46:35 +09:00
Federico Di Gregorio
c1d6073531
Applied COPY patch from Alejandro Dubrovsky
2008-11-25 17:45:22 +01:00
Federico Di Gregorio
b92601306e
Added suppport for UUID and related test.
2008-09-19 21:25:16 +02:00
Federico Di Gregorio
a5e01ef0df
Fixed spaces in pg_config path
2008-06-28 18:34:57 +02:00
James Henstridge
938c456cee
Merge changes from psycopg2/trunk via psycopg2.r243.
2008-05-05 10:37:24 +08:00
James Henstridge
31ef9355c2
Merge psycopg2/trunk into psycopg2/branches/2_0_x r243 (which is the
...
last revision merged into trunk). Where file ID conflicts exist, but
the content was equivalent, I've picked the 2_0_x version.
2008-05-05 10:22:22 +08:00
Federico Di Gregorio
8103f44a12
Fixed test segfault due to double decref.
2008-03-17 08:13:16 +00:00
Federico Di Gregorio
d6e232e2b9
Various fixes, now all examples work.
2007-04-13 14:07:11 +00:00
Federico Di Gregorio
ee44315ff2
Appliet Jasons patch to fix win32 build glitches.
2007-04-13 01:14:01 +00:00
Federico Di Gregorio
f57920b0dd
Release 2.0.6b2.
2007-04-11 07:12:16 +00:00
Federico Di Gregorio
2a6b523506
Fixed crash and win32 patches.
2007-04-11 04:16:00 +00:00
Federico Di Gregorio
2883428791
Lets do a beta release.
2007-01-19 03:40:27 +00:00
Federico Di Gregorio
b651781f63
Added note about missign pg headers to INSTALL.
2007-01-16 10:11:28 +00:00
Federico Di Gregorio
616a1c2042
Preparing 2.0.5.1.
2006-09-02 01:09:31 +00:00
Federico Di Gregorio
0b9d13455d
Missing file.
2006-09-01 16:44:07 +00:00
Federico Di Gregorio
b8f3cef62f
psycopg is enlarging..
2006-09-01 16:27:02 +00:00
Federico Di Gregorio
64933f2004
Merge from 2_0_x branch up to r814.
2006-09-01 13:46:57 +00:00
Federico Di Gregorio
4138409ab6
Fixed use of use_pydatetime in setup.cfg.
2006-09-01 08:44:57 +00:00
Federico Di Gregorio
d7100abbbe
Changing version numbers for 2.0.5.
2006-09-01 08:33:01 +00:00
Federico Di Gregorio
f202c7fc81
Preparing release 2.0.4.
2006-08-01 23:36:50 +00:00
Federico Di Gregorio
14805a5311
Preparing release 2.0.3.
2006-07-31 00:22:13 +00:00
Federico Di Gregorio
8d8bfe969b
Preparing 2.0.2.
2006-06-11 05:15:27 +00:00
Federico Di Gregorio
ba3361a7a6
Fixing ZPsycopgDA glitches of 2.0.
2006-06-09 00:05:42 +00:00
Federico Di Gregorio
429fd4f1d7
Zope DA fixes and preparing 2.0.
2006-06-07 23:33:47 +00:00
Federico Di Gregorio
ec877b0ef9
Final of 8.1.4 securiy patch.
2006-05-24 10:29:35 +00:00
Federico Di Gregorio
750806c806
Fixed setup.py buglet.
2006-04-27 14:20:11 +00:00
Federico Di Gregorio
bf52a9ac21
Preparing 2.0 beta 8.
2006-02-11 11:02:02 +00:00
Federico Di Gregorio
8db642945c
MSVC build fixes.
2006-02-11 06:51:38 +00:00
Federico Di Gregorio
791a728c01
Applied patch #87 to make setup.py to not depend but just use pg_config.
2006-01-10 16:23:03 +00:00
Federico Di Gregorio
5871596eda
Some more tests in sandbox.
2006-01-10 16:13:37 +00:00
Daniele Varrazzo
3076046b3f
* libpq.dll not used anymore. win32 setup uses pg_config too.
...
* Some typo fixed.
2006-01-05 16:56:40 +00:00
Federico Di Gregorio
d5674253ca
We now use pg_config in setup.py ( closes : #70 ).
2006-01-05 04:19:01 +00:00
Federico Di Gregorio
73846966a2
We now distribute documentation.
2006-01-01 11:14:48 +00:00
Federico Di Gregorio
7db16edad3
Connection encoding case fix ( closes : #83 ).
2006-01-01 09:10:17 +00:00
Federico Di Gregorio
31d85750b0
mx_include_dir in setup.cfg.
2005-12-11 08:05:49 +00:00
Federico Di Gregorio
4316ddf30a
Applied Darwin patch from #70 .
2005-11-17 13:37:47 +00:00
Federico Di Gregorio
c5bc1a3b9a
Small changes to interval parsing.
2005-11-03 16:03:06 +00:00
Federico Di Gregorio
f03b94d84b
Run-time check for Decimal on Python 2.3.
2005-11-03 01:35:17 +00:00
Federico Di Gregorio
8d4607ebbd
Releasing 2.0 beta 5.
2005-10-18 14:20:27 +00:00
Federico Di Gregorio
e1688431e0
Isolation level changes.
2005-10-08 03:04:40 +00:00
Federico Di Gregorio
8d3fd21280
mingw fixes.
2005-08-23 10:38:36 +00:00
Federico Di Gregorio
4d536c1f12
psycopg -> psycopg2 name change.
2005-08-22 01:49:18 +00:00
Federico Di Gregorio
c281a38236
Releasing 2.0b4.
2005-07-17 04:26:27 +00:00
Federico Di Gregorio
7d2109f979
Don't segfault on empty queries anymore ( closes : #24 ).
2005-06-13 03:54:24 +00:00
Federico Di Gregorio
8a6c55a342
About to release.. *grin*
2005-05-26 07:38:56 +00:00
Federico Di Gregorio
367f7b92f4
setup.py improvements.
2005-05-17 23:32:26 +00:00
Federico Di Gregorio
d57ceaadc6
Release 2.0 beta 1.
2005-05-09 09:48:40 +00:00
Federico Di Gregorio
48d8bd39a1
Array support completed ( closes : #1 ).
2005-04-10 05:38:34 +00:00
Federico Di Gregorio
1430849c81
Better error message about missing headers ( Closes : #9 ).
2005-04-10 03:36:39 +00:00
Federico Di Gregorio
4805a93569
mingw patch from Daniele Varazzo.
2005-04-10 03:05:39 +00:00
Federico Di Gregorio
19cb161d27
Array tokenization seems working.
2005-03-23 10:32:30 +00:00
Federico Di Gregorio
9316c6af53
Optimizations to type casting (in preparation to array support.)
2005-03-12 06:39:47 +00:00
Federico Di Gregorio
a61f715b46
Bumped up version to 1.99.12.1.
2005-03-04 03:36:23 +00:00
Federico Di Gregorio
e8e6c0ada3
Preparing release 1.99.12.
2005-03-02 14:16:55 +00:00
Federico Di Gregorio
e5f558a6be
COPY FROM works.
2005-03-01 16:41:02 +00:00
Federico Di Gregorio
cd672525e1
Adaptation fixes (a lot.)
2005-02-28 15:50:55 +00:00
Federico Di Gregorio
bbb6c8f22c
MacOS X build patch.
2005-02-07 02:42:33 +00:00
Federico Di Gregorio
818caa5637
Fixes to row_factory.
2004-11-19 15:30:07 +00:00
Federico Di Gregorio
c904d97f69
Initial psycopg 2 import after SVN crash.
2004-10-19 03:17:12 +00:00