Hugo
ffcc65d4f0
Drop support for EOL Python 2.6
2017-11-28 16:02:12 +00:00
Daniele Varrazzo
e7529e4823
Merge remote-tracking branch 'jdufresne/json-docs'
2017-11-28 15:22:09 +00:00
Daniele Varrazzo
f77057dd43
Merge remote-tracking branch 'jdufresne/with-statement'
2017-11-28 15:20:24 +00:00
Jon Dufresne
c1d3948be9
Update documentation to reflect JSON import behavior
...
The docs don't need to describe what will happen on Python versions
before 2.6 as they are unsupported by psycopg2.
Should have been included in commit
d58844e548
, but was missed.
2017-11-28 06:38:44 -08:00
Jon Dufresne
4c95668c72
Remove "from __future__ import with_statement"
...
All versions of Python supported by psycopg2 have builtin support for
the with statement. The import is unnecessary noise.
2017-11-28 06:03:46 -08:00
Daniele Varrazzo
914ccbacb5
Merge branch 'python3_mintimeloggingconnection'
2017-11-28 03:23:42 +00:00
Daniele Varrazzo
b4f066bd43
Mention MinTimeLoggingCursor fix in NEWS file
2017-11-28 03:22:53 +00:00
Daniele Varrazzo
1959d2403f
Merge branch 'solaris-support'
2017-11-28 03:16:04 +00:00
Daniele Varrazzo
a1831ef498
Mention solaris support in NEWS
...
Close #532 .
2017-11-28 03:13:25 +00:00
Daniele Varrazzo
fc8574fdd8
Merge remote-tracking branch 'jdufresne/decimal'
2017-11-28 03:05:06 +00:00
Daniele Varrazzo
06d4788811
Merge remote-tracking branch 'jdufresne/json'
2017-11-28 03:04:59 +00:00
Daniele Varrazzo
e0ce35ef72
Merge remote-tracking branch 'jdufresne/skip-before'
2017-11-28 03:04:44 +00:00
Daniele Varrazzo
db0c081d03
Merge remote-tracking branch 'jdufresne/uuid'
2017-11-28 03:04:26 +00:00
Daniele Varrazzo
a39d794308
Merge remote-tracking branch 'jdufresne/iobase'
2017-11-28 03:04:03 +00:00
Daniele Varrazzo
7855f28785
Merge remote-tracking branch 'jdufresne/namedtuple'
2017-11-28 03:02:56 +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
Daniele Varrazzo
afb42e7625
Merge remote-tracking branch 'jdufresne/py2'
2017-11-28 02:59:17 +00:00
Daniele Varrazzo
b4e658d29b
Merge remote-tracking branch 'jdufresne/license'
2017-11-28 02:39:54 +00:00
Jon Dufresne
296abf735e
Add some missing trove classifiers for general Python support
2017-11-27 07:30:50 -08:00
Jon Dufresne
048f1bb95a
Remove workaround for decimal module
...
The decimal module is available on all Python versions supported by
psycopg2. It has been available since Python 2.4. No need to catch an
ImportError.
https://docs.python.org/2/library/decimal.html
2017-11-26 17:55:24 -08:00
Jon Dufresne
d58844e548
Clean up JSON workarounds for unsupported Python versions
...
All Python versions supported by psycopg2 have the json module. It was
added in Python 2.6. Can remove checks for availability, slightly
simplifying the code.
2017-11-26 17:11:27 -08:00
Jon Dufresne
dfc9932f27
Remove use of skip_before_python for unsupported Python versions
...
psycopg2 does not support Python < 2.6, remove all test guards for these
versions.
2017-11-26 16:43:18 -08:00
Jon Dufresne
582ec189cc
Remove uuid workaround for older Pythons
...
uuid is available on all Python versions supported by psycopg2.
2017-11-26 14:46:53 -08:00
Jon Dufresne
f7d5d25651
Remove io.TextIOBase workaround for Python <= 2.5
...
io.TextIOBase is available on all Python versions supported by psycopg2.
Can remove all workarounds.
2017-11-26 14:32:35 -08:00
Jon Dufresne
05c28cce78
Remove workarounds for namedtuple on Python <= 2.5
...
namedtuple is available on all Python versions supported by psycopg2. It
was first introduced in Python 2.6. Can remove all workarounds and
special documentation.
2017-11-26 13:55:30 -08:00
Jon Dufresne
5ddac80cec
Include license file in the generated wheel package
...
The wheel package format supports including the license file. This is
done using the [metadata] section in the setup.cfg file. For additional
information on this feature, see:
https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file
2017-11-26 10:42:30 -08:00
Daniele Varrazzo
858bc3d42a
Merge pull request #616 from jdufresne/modern-exceptions
...
Use modern except syntax throughout project
2017-11-21 11:45:34 +00:00
Jon Dufresne
390e43fcb1
Use modern except syntax throughout project
...
The syntax "except Exception, exc:" is deprecated. All Python versions
supported by psycopg2 support the newer, modern syntax. Forward
compatible with future Python versions.
2017-11-20 20:00:35 -08:00
Daniele Varrazzo
7a2dd85caa
NEWS updated after last bugfix.
2017-11-16 16:07:34 +00:00
Federico Di Gregorio
13b0b9d3e3
Merge pull request #614 from fogzot/fix-613
...
Don't cast point arrays to float arrays (fixes : #613 )
2017-11-16 10:09:28 +01:00
Federico Di Gregorio
5983b96c55
Don't cast point arrays to float arrays ( fixes : #613 )
2017-11-16 10:07:27 +01:00
Daniele Varrazzo
d88d8f9619
Added PostgreSQL 10 in the list of supported servers
2017-11-06 18:38:22 +00:00
Daniele Varrazzo
9614e7241b
Further docs cleanup
...
Recent Sphinx versions seem overly aggressive in autodetecting python,
or I just didn't notice the errors, so be explicit in what language to
use with code examples.
2017-11-06 18:34:23 +00:00
Daniele Varrazzo
4f1505857b
Parameters passing docs improved
...
Every point has an example and all the example show wrong/correct. Nice
rhythm.
Among the improvements, added point saying explicitly "thou shall not
quote placeholders". Quoted placeholders will just fail except in the
most contrived cases (a statement raising an exception with all the
strings except with the attack ones...), and an example in the following
section explicitly notes "no quotes", but apparenty someone still thinks
this is not documented enough? (see issue #611 ) so let's just write it
plain and clear into the list of commandments.
2017-11-06 17:31:35 +00:00
Kevin Campbell
b804c092ac
Patch for issue #609 for MinTimeLoggingConnection
...
On Python3 MinTimeLoggingConnection raises an exception as it tries to
mix strings and bytes
2017-11-03 17:30:06 +08:00
Daniele Varrazzo
dfee199351
Dropped suggestion for --no-binary :all: to skip wheels
...
:all: applies to the entire file. --no-binary psycopg2 is the solution.
See issue #543
2017-10-27 12:34:00 +01: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
46d8529dde
Merge branch 'libpq-10-wheels'
2017-10-24 11:52:02 +01:00
Daniele Varrazzo
980145eaee
Preparing release 2.7.3.2
...
Close #601 , close #602 .
2017-10-24 11:43:26 +01:00
Daniele Varrazzo
c6e90766e1
Merge branch 'libpq-10'
...
Fix #604
2017-10-24 11:31:26 +01:00
Daniele Varrazzo
f3f394ced9
Import recipe to build PG 10 libpq on win from wheel repos
...
Also build pg_config so the libpq version is correct at compile time
too.
2017-10-24 11:26:14 +01:00
Daniele Varrazzo
552e49a11d
Test building PG 10 using the solution provided by Jason Erickson
...
https://github.com/psycopg/psycopg2-wheels/pull/3/
2017-10-24 11:26:14 +01:00
Daniele Varrazzo
0d90c173fb
Test against PG 10.0 on Travis
2017-10-24 11:26:14 +01:00
Daniele Varrazzo
f1461d2d7e
Parse PG 10 error codes from final version
2017-10-19 02:28:52 +01:00
Daniele Varrazzo
6ee8b4c9aa
Bumping version to test libpq 10 wheel package
2017-10-18 22:25:42 +01:00
Daniele Varrazzo
582fd95986
Merge branch 'sphinx-1.6'
2017-10-18 21:58:08 +01:00
Daniele Varrazzo
e7587caee3
Dropped doc building warning
...
doctests have sure completely rotten however.
2017-10-18 21:57:17 +01:00
Daniele Varrazzo
4d68f6e414
Sphinx version do build docs updated to 1.6
2017-10-18 21:56:48 +01:00
Dmitry Shachnev
1ccb61fe18
Make dbapi_extension.py compatible with Sphinx 1.6
...
In Sphinx commit 1a821b89e9952fc2, the deprecated make_admonition()
function was removed. This commit updates the code to use the modern
API instead.
2017-10-12 13:10:41 +03:00
Daniele Varrazzo
3ec06b88f0
Construct proper human sentences to describe execute_values()
...
With bonus typos dropped.
2017-08-31 16:34:04 +01:00