Hugo
53c1c5dcc1
Remove redundant hasattr checks
2017-11-28 16:03:23 +00:00
Hugo
ffcc65d4f0
Drop support for EOL Python 2.6
2017-11-28 16:02:12 +00:00
Daniele Varrazzo
1959d2403f
Merge branch 'solaris-support'
2017-11-28 03:16:04 +00:00
Daniele Varrazzo
dda55dbf36
Moving to next major version on master
...
Opened maintenance branch `maint_2_7`
2017-11-28 03:02:03 +00:00
Jon Dufresne
296abf735e
Add some missing trove classifiers for general Python support
2017-11-27 07:30:50 -08:00
My Karlsson
f54783ae6e
Emulate timeradd and timersub on Solaris
...
Solaris does not have timeradd and timersub. Add solaris_support.c which
provides emulated versions of them on Solaris.
2017-10-26 20:21:30 +02:00
Daniele Varrazzo
df688d6b87
Bump to next development release
2017-07-24 16:25:16 +01:00
Daniele Varrazzo
cd3393b21c
Bumped version number to 2.7.3
2017-07-24 15:06:09 +01:00
Daniele Varrazzo
b7bd5eceed
Bump to next development release
2017-07-22 16:13:10 +01:00
Daniele Varrazzo
791f5fe969
Bump to version 2.7.2
2017-07-22 01:32:25 +01:00
Daniele Varrazzo
8576d43006
Bump version number to test a new build
2017-06-15 23:07:43 +01:00
Jason Erickson
c837261ac1
Remove VC9 runtime dependency
...
Changed check in setup.py to only use vc9 manifest when built against
versions that use the MSVC 2008 compiler. Resolves #541 .
Note that as of VS 2010, a manifest is no longer needed according to this
comment, "...we are no longer deploying the VC dlls as Win32 assemblies.
They are regular dlls that can be loaded without a manifest."
https://connect.microsoft.com/VisualStudio/feedback/details/522121/crtassem-h-missing
2017-06-08 20:11:02 -06:00
Daniele Varrazzo
57b1093b31
Find again mxDateTime includes in default locations
2017-03-22 03:36:08 +00:00
Daniele Varrazzo
8ed0196d02
Bump to next dev release
2017-03-13 11:50:34 +00:00
Daniele Varrazzo
09c48c76c3
Bump to version 2.7.1
2017-03-11 17:03:22 +00:00
Daniele Varrazzo
6f7e570a0a
Bump away from 2.7
...
[skip ci]
2017-03-01 15:56:54 +00:00
Daniele Varrazzo
b0e6045b63
Bump to version 2.7
...
Refer to pep 440 for version numbering, which superseded pep 386. We are
not changing numbering scheme: the version numbers we have used (when we
have been consistent) would have been valid in both schemes.
2017-02-28 11:57:08 +00:00
Daniele Varrazzo
a3193aca2a
Bump version number
2017-02-16 20:25:58 +00:00
Daniele Varrazzo
1cb2721a67
Bumping to 2.7 beta 2
2017-02-16 18:26:37 +00:00
Daniele Varrazzo
4b78ca4405
Fixed generation of download url from beta version
2017-02-08 18:09:15 +00:00
Daniele Varrazzo
b4b8b5f164
Bump version number
2017-02-08 13:56:50 +00:00
Daniele Varrazzo
6f83c9c87a
Bump version to 2.7 beta 1
2017-02-08 10:31:27 +00:00
Daniele Varrazzo
705dda2cba
Dropped support for Python 3.1
2017-02-06 23:03:48 +00:00
Federico Di Gregorio
8b96bcddff
Fixed version regexp to match "10devel"
...
Also normalized the result and made sure that if PostgreSQL ever starts
using just integer version numbers (as in "10") everything still works.
2017-02-04 14:21:07 +01:00
Daniele Varrazzo
8baf6aa372
Convert warnings into errors on test
2017-02-03 04:41:32 +00:00
Daniele Varrazzo
651f1b6c97
Consider Python 3.6 and Postgres 9.6 supported
2017-01-03 19:12:44 +01:00
Daniele Varrazzo
d48d4bab05
Added empty options in setup.cfg
...
Setuptools removes them from the sdist, see #453
2016-12-25 19:46:09 +01:00
Daniele Varrazzo
91d2158de7
Python source cleanup using flake8
2016-10-11 00:11:55 +01:00
Daniele Varrazzo
78649f8e90
Dropped use of b() "macro" and 2to3 fixer
...
Just use the b"" strings syntax supported from python 2.6.
2016-08-15 01:56:36 +01:00
Daniele Varrazzo
3b41c3a6f3
Stop compiling with Python 2.5
2016-08-15 01:06:42 +01:00
Daniele Varrazzo
2a4d6027a4
Merge branch 'master' into replication-protocol
...
Conflicts:
tests/testconfig.py
2016-08-07 01:53:21 +01:00
Daniele Varrazzo
c29b5cd46a
Fixed build on win32
...
Fix #422 .
2016-07-01 02:24:49 +01:00
Daniele Varrazzo
4fb236e688
Start advertising Py 3.5 support
2016-03-10 12:13:57 +00:00
Christian Ullrich
654eeec24c
Work around late initialization in distutils._msvccompiler.
2016-03-10 12:12:19 +00:00
Jason Erickson
22fe6e7aad
Modify setup.py to support setuptools/wheel
...
To support creation of whl files for PyPI, setuptools need to be imported
instead of distutils. Created try/except case to fall back to integrated
distutils if setuptools is not installed.
2016-03-10 12:09:15 +00:00
Oleksandr Shulgin
fbcf99ad07
Move replication connection to C level.
2015-10-27 18:21:24 +01:00
Oleksandr Shulgin
0bb81fc848
Properly subclass ReplicationCursor on C level.
2015-10-19 20:00:39 +02:00
Oleksandr Shulgin
e3c3a2c19e
Merge branch 'master' into feature/replication-message-object
...
Conflicts:
lib/extensions.py
2015-06-30 10:30:32 +02:00
Oleksandr Shulgin
453830f80c
Add ReplicationMessage object
2015-06-05 17:44:09 +02:00
Oleksandr Shulgin
f14521f8cb
Add libpq_support.c and win32_support.c
...
Move libpq-specific code for streaming replication support into a
separate file. Also provide gettimeofday() on Win32, implementation
copied from Postgres core.
2015-06-03 14:10:20 +02:00
Daniele Varrazzo
73d17e3c5e
Dropped PG_VERSION_HEX constant
...
At PostgreSQL 10.0 it would have become awkward.
2015-06-02 10:54:08 +01:00
Oleksandr Shulgin
4bb6f9cef2
Add libpq version discovery
2015-06-01 18:05:11 +02:00
Daniele Varrazzo
c62c292053
Bump to next dev version number for the master branch
2015-04-28 08:38:41 +01:00
Daniele Varrazzo
5efe7131ff
Version bumped for release 2.6
2015-02-09 09:43:55 +00:00
Daniele Varrazzo
6d63973e08
More portable way to establish Python 32/64 build
2015-02-08 22:52:50 +00:00
Daniele Varrazzo
44219bf366
Don't try and compile lo64 support on 32 bits Python
...
We can't fit more than 31 bits in a long anyway.
2014-12-25 15:06:18 +01:00
Daniele Varrazzo
b2327b0fc7
Add the flag 'lo64' to the version if psycopg supports the lo_*64 api
2014-12-25 15:06:18 +01:00
Daniele Varrazzo
0205d6ca2e
Use ifdef instead of if to check LO64
2014-12-25 15:06:18 +01:00
Daniele Varrazzo
91eabf5fcb
Fixed check for PG version
...
It would have failed in PostgreSQL 10.0.
2014-12-25 15:06:18 +01:00
Blake Rouse
cd67d3d2fe
Modify truncate to use lo_truncate64. Use HAVE_LO64 define to use new lo_*64 methods. Check size of offset and length for versions without LO64.
2014-12-25 15:06:18 +01:00
Daniele Varrazzo
37d80f2c03
Use the readme as PyPI desctiption
2014-08-31 02:59:49 +01:00
Daniele Varrazzo
1d729ab40e
Dropped HAVE_PQFREEMEM flag
...
It was necessary before PG 7.4, in versions which have long been unsupported.
2014-08-24 01:43:12 +01:00
Daniele Varrazzo
6e841a41e6
Dropped PSYCOPG_EXTENSIONS flag
...
Building without extensions has been long broken and nobody really cares
about a pure-DBAPI implementation (which could be created using a wrapper
instead).
2014-08-23 19:30:48 +01:00
Daniele Varrazzo
44281d6692
Fix supported Py/PG versions in docs
2014-08-04 22:39:52 +01:00
Chris Mildebrandt
693dedf4da
cleanup remaining GPL license text
2014-05-20 09:50:53 -07:00
Daniele Varrazzo
97290955f6
Python 3.4 declared supported
2014-05-13 14:36:28 +01:00
Daniele Varrazzo
81443c3a65
Work around pip issue #1630 breaking 'pip -e git+url'
...
https://github.com/pypa/pip/issues/1630
Fixes ticket #18 (opened in 2010!)
2014-04-04 18:07:05 +01:00
James Emerton
58c98deebb
Fallback when get_ext_fullpath() is unavailable
2014-01-10 13:41:16 -08:00
James Emerton
9100ad3e8f
Use get_ext_fullpath() for -outputresource
...
The manifest fixup was relying on the extension name being "_psycopg.pyd" which effectively prevents building with --debug as the extension name becomes "_psycopg_d.pyd" in this instance.
2014-01-10 11:56:14 -08:00
Piotr Kasprzyk
31b6ec63f8
Fix multiple misspellings
2013-04-26 09:59:40 +01:00
Daniele Varrazzo
4547753df0
Added explicit Python 2 and Python 3 classifiers
...
Not sure, but I suspect the "python3" page on PyPy in only based
on the Language :: Python :: 3 classifier, not the more specific ones
2013-04-21 21:43:55 +01:00
Saul Shanabrook
4de8b9577e
Explicit Python Version Support
...
Used supported versions from http://initd.org/psycopg/docs/install.html
2013-04-21 21:35:58 +01:00
Daniele Varrazzo
6d2f2676ad
Bump to next dev version
2013-04-07 19:43:52 +01:00
Daniele Varrazzo
b448f822f4
Bump to release 2.5
2013-04-07 17:26:57 +01:00
Daniele Varrazzo
73949cd1b8
Merge branch 'diagnostics' into devel
2013-03-20 01:47:14 +00:00
Daniele Varrazzo
394312939e
Added a C structure to psycopg.Error
...
This will allow to store a PGresult in it.
2013-03-19 12:15:49 +00:00
Daniele Varrazzo
97311967e8
Merge branch 'diagnostics' into devel
2013-03-18 02:21:09 +00:00
Daniele Varrazzo
fe6eb127fc
Fixed bad interaction of setup.py with other dependencies
...
The problem is in Distribute dependencies on Python 3. Create a new command
class instead of changing inplace the one other projects may use.
Close ticket #153 .
2013-03-18 02:18:50 +00:00
Matthew Woodcraft
c75a3bbab4
Work-in-progress support for retrieving PG_DIAG result error fields.
2013-03-17 16:41:15 +00:00
Daniele Varrazzo
16d96fd43c
Merge branch 'py33' into devel
2012-12-22 00:58:17 +01:00
Daniele Varrazzo
02ffb7423a
Splitting the release of new features in version 2.5
2012-12-03 00:39:19 +00:00
Daniele Varrazzo
6d9a25e63a
Deal with sys.platform = "linux"
...
Changed in Python 3.3.
2012-09-21 02:28:52 +01:00
Daniele Varrazzo
241403e7ba
Bump to next dev release
2012-04-11 18:11:59 +01:00
Federico Di Gregorio
037b704e9a
Bumping up versions to prepare 2.4.5
2012-03-28 23:08:59 +02:00
Daniele Varrazzo
7990425801
Bump to next dev version
2011-12-26 20:06:10 +01:00
Federico Di Gregorio
c22e8ef808
Preparing release 2.4.4
2011-12-19 10:57:38 +01:00
Daniele Varrazzo
8606d83507
Bump to next development version
2011-12-11 22:06:15 +00:00
Federico Di Gregorio
2efe3efdfa
Preparing release 2.4.3
2011-12-11 22:17:54 +01:00
Daniele Varrazzo
cdb19a2329
Prepare for Linux 3
2011-11-26 19:08:20 +00:00
Daniele Varrazzo
1861e0010d
Fixed --static-libpq setup option (ticket #64 )
2011-08-09 11:44:30 +01:00
Daniele Varrazzo
e3b32dcee1
Bump to next dev version
2011-08-09 11:44:30 +01:00
Federico Di Gregorio
f8a5dabdc1
Preparing release 2.4.2
2011-06-12 21:40:44 +02:00
Jason Erickson
5ee7bac66b
No manifest reinsertion into 2.4/2.5 with MSVC
...
Python versions 2.4 and 2.5 for MSVC on Windows do not need to manifest file
reinserted into the DLL. The VC compiler for these versions does not have the
mt.exe executable to insert the manifest file.
2011-06-08 08:21:32 +01:00
Daniele Varrazzo
dc92161dda
Delay detection of the compiler in setup.py
...
At init time, build_ext is not configured, so neither the --compiler option
nor settings in setup.cfg/distutil.cfg is effective.
Steve, I told you distutils was a mess :)
2011-06-07 23:28:17 +01:00
Daniele Varrazzo
d0b97feab3
More cleanup in pg_config detection from Windows registry
2011-06-07 22:35:22 +01:00
Steve Lacy
575afa2e0e
Properly detect pg_config.exe on Windows.
...
I'm fairly certain this is correct, submitting so I can pull on my Windows
box and do some testing there.
2011-06-07 22:35:22 +01:00
Steve Lacy
46dc7e66f8
Fix pg_config commandline option broken in a previous change
...
- Make sure to declare self.pg_config in initialize_options.
- Don't declare PostgresConfig in __init__, as its scope is limited.
- Pass build_ext instance to PostgresConfig to avoid having to
call the option parser directly.
2011-06-07 22:22:08 +01:00
Steve Lacy
57a6cf3144
Code to find an executable on the current PATH refactored
2011-06-07 22:18:56 +01:00
Daniele Varrazzo
9a7aee3d05
Fixed compatibility problem in setup for Python 2.4
2011-06-07 08:58:54 +01:00
Steve Lacy
ef18915396
Unify the way the MSVC compiler is detected
...
And do it only once in __init__ instead of different ways
and in different places.
2011-06-07 08:41:57 +01:00
Steve Lacy
c826446ff8
Clean up a bunch of lint from pylint/pyflakes/pep8 checking
...
- Don't override global variable name "ext" (use "extension" as function
argument names)
- Improve function naming (get_compiler -> get_compiler_name)
- Other misc operator spacing and 80-column violation cleanup.
- Remove unneeded import (DistUtilsFileError)
2011-06-07 08:40:40 +01:00
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