Miro Hrončok
b52ff10153
Travis CI: Run tests on Python 3.7
...
Also, switch to wheel, because eggs caused problems on 3.7:
ValueError: bad marshal data (unknown type code)
2018-05-18 12:12:09 +02:00
Daniele Varrazzo
90b26c3e23
Merge branch 'fix-679'
2018-02-21 12:05:06 +00:00
Daniele Varrazzo
ea923b63a4
Allow strings subclasses in ensure_bytes
...
Fix #679
2018-02-21 10:27:28 +00:00
Daniele Varrazzo
0a5db6ecf5
Merge branch 'expand-version'
2018-02-19 13:54:11 +00:00
Daniele Varrazzo
ede418a009
Report MSYS2 build probably fixed
2018-02-19 13:53:50 +00:00
Daniele Varrazzo
32f5a9fc1d
Avoid quoting the string in the psycopg version macro
...
Use a macro trick to add the quotes. This seems more portable than
passing the quotes to the command line (see #658 ).
https://gcc.gnu.org/onlinedocs/cpp/Stringizing.html
2018-02-19 13:53:50 +00:00
Daniele Varrazzo
750ececf08
Merge branch 'fix-solaris-11'
2018-02-19 11:43:59 +00:00
Daniele Varrazzo
8670287928
Added Solaris 11 fix to news file
2018-02-19 11:43:37 +00:00
Mike Gerdts
f766d90704
Fixed building on SmartOS
...
timeradd is missing on Solaris 10, but is present as a macro in
<sys/time.h> on SmartOS, illumos, and likely Solaris 11.
2018-02-19 11:40:05 +00:00
Daniele Varrazzo
df952c149d
Fixed pip invocation example to skip binary packages
...
Close #673
2018-02-09 16:12:29 +00:00
Daniele Varrazzo
5309da117d
Autocommit shouldn't change deferrable on servers not supporting it
...
Regression on unsupported Postgres versions after fixing bug #580
2018-02-08 15:00:38 +00:00
Daniele Varrazzo
c52e49a9da
Report Python 2.6 wheels no more available
...
[skip ci]
2018-01-29 12:58:28 +00:00
Daniele Varrazzo
1436ee308c
Link psycopg2-binary package to PyPI in readme
...
Note: the package doesn't exist yet...
2018-01-29 03:31:49 +00:00
Daniele Varrazzo
9e6b22cc3b
Merge branch 'namedtuple-invalid-identifiers'
2018-01-29 03:31:10 +00:00
Daniele Varrazzo
ddb87b7727
Convert fields names into valid Python identifiers in NamedTupleCursor
...
Close #211 .
2018-01-29 03:30:46 +00:00
Daniele Varrazzo
3354bbd1b6
Merge branch 'openssl-1.0.2n'
2018-01-29 03:27:31 +00:00
Daniele Varrazzo
957fd79a27
Build using OpenSSL 1.0.2n
2018-01-29 03:27:08 +00:00
Daniele Varrazzo
8cc0d06e65
Define openssl and libpq versions in vars in appveyor build
2018-01-29 03:27:08 +00:00
Daniele Varrazzo
4845393c15
Build env vars on windows less verbose
...
Copied from psycopg2-wheels
2018-01-29 03:27:08 +00:00
Daniele Varrazzo
f85e405605
Merge branch 'separate-binary'
2018-01-29 03:24:45 +00:00
Daniele Varrazzo
f976c428d2
Mention new wheel packages in news file
...
Close #543 .
2018-01-29 03:23:59 +00:00
Daniele Varrazzo
76f3e196d3
Silence warning on import failing a test
2018-01-29 03:23:59 +00:00
Daniele Varrazzo
5b69adf797
Document the psycopg2-binary package
2018-01-29 03:23:59 +00:00
Daniele Varrazzo
aa2c172706
Print info about the binary package on build failed
...
The idea is to release a package 'psycopg2-binary' to allow installing
binary, and leave the psycopg2 package to be source only, to avoid
pushing the unreliability of the wheel pacakge by default (see issue #543 ).
Version number bumped to test with new packages.
2018-01-29 03:22:59 +00:00
Daniele Varrazzo
8decf34ad7
Dropped warning about unsafe cursor names
...
It was long made secure
2018-01-25 22:00:40 +00:00
Daniele Varrazzo
da2aba1595
Merge branch 'fix-idempotence-check'
2018-01-11 02:41:38 +00:00
Daniele Varrazzo
74d2c4bef9
Fixed idempotence check changing connection characteristics
2018-01-11 02:23:27 +00:00
Daniele Varrazzo
6da3e7ee69
Merge branch 'mogrify-on-closed-cursor'
2018-01-11 00:16:01 +00:00
Daniele Varrazzo
ddef2e30cd
'key' docs in getconn() improved
...
Fix #569 .
2018-01-11 00:14:36 +00:00
Daniele Varrazzo
a78ac3c125
Fixed test in asian time zones
...
Fix #652
2018-01-10 23:58:28 +00:00
Daniele Varrazzo
e0226fc46a
'cursor.mogrify()' can be called on closed cursors
...
Fix #579 .
2018-01-11 08:55:31 +09:00
Daniele Varrazzo
04f1f06b9f
Fixed stitch_text on Python 2
2018-01-10 22:49:00 +00:00
Daniele Varrazzo
bad9b8b383
Merge branch 'macro-accessors'
2018-01-10 22:47:59 +00:00
Daniele Varrazzo
b3a70e09e9
pypi3 fix noted in the news file
2018-01-10 22:44:37 +00:00
Daniele Varrazzo
77c703395b
Moved datatime compatibility macros with others
2018-01-10 22:29:16 +00:00
Daniele Varrazzo
e50f3129c2
Merge pull request #651 from ronnix/patch-1
...
Fix typo in comment in utils.c
2017-12-14 13:45:09 +00:00
Ronan Amicel
b8f2f71819
Fix typo in comment in utils.c
2017-12-14 14:00:36 +01:00
Glyph
3fcb035126
define a "polyfill" inline for python 2 compatibility
2017-12-12 03:15:21 -08:00
Glyph
852884e086
use accessor macros for pypy3 compatibility
2017-12-12 03:06:18 -08:00
Daniele Varrazzo
2cd9a78a97
Gitignore env2/env3 envs too
2017-12-11 02:25:13 +00:00
Daniele Varrazzo
4be2b75816
Dropped PYTHONPATH propagation in 'make check'
...
Psycopg doesn't have other dependencies outside the stdlib so what's
there is probably just noise.
2017-12-11 02:22:02 +00:00
Daniele Varrazzo
f3d21c24fc
Merge pull request #644 from jdufresne/noinstall-tests
...
Avoid installing tests to site-packages
2017-12-11 02:20:56 +00:00
Jon Dufresne
389f6c08d9
Avoid installing tests to site-packages
...
For library end users, there is no need to install tests alongside the
package itself. This keeps the tests available for development without
adding extra packages to user's site-packages directory. Reduces the
size of the installed package. Avoids accidental execution of test code
by an installed package.
2017-12-10 10:55:58 -08:00
Jon Dufresne
c86e682153
Skip register_hstore(..., unicode=True) tests on Python 3
...
Per the functions documentation, this argument is not supported on
Python 3. Skip it during tests.
> :param unicode: if `!True`, keys and values returned from the database
> will be `!unicode` instead of `!str`. The option is not available on
> Python 3
Work towards moving tests outside of the installed package.
2017-12-10 10:51:07 -08:00
Jon Dufresne
1a8e992fcc
Use relative imports throughout tests
...
The tests relied on Python2 relative import semantics. Python3 changed
import semantics to always search sys.path by default. To import using a
relative path it must have a leading dot.
Forward compatible with newer Pythons.
Works towards the goal of moving tests outside of the installed package.
For more information, see PEP-328:
https://www.python.org/dev/peps/pep-0328/
2017-12-10 10:51:07 -08:00
Jon Dufresne
9de46e416e
Use print() function instead of print statement throughout project
...
Forward compatible with newer Pythons.
2017-12-10 10:51:07 -08:00
Jon Dufresne
ef64493b89
Fix use of "async" in test_cursor.py
...
"async" will be a keyword starting with Python 3.7. On Python 3.6, use
of "async" causes a deprecation warning. Use the alias "async_" instead.
2017-12-10 10:49:04 -08:00
Daniele Varrazzo
b42c35849b
Merge pull request #647 from jdufresne/drop-unused-scripts
...
Remove unused scripts maketypes.sh & buildtypes.py
2017-12-10 18:26:29 +00:00
Jon Dufresne
1047af03da
Remove unused scripts maketypes.sh & buildtypes.py
...
Refs #645
2017-12-10 09:57:43 -08:00
Daniele Varrazzo
afd7c6c284
Merge pull request #646 from jdufresne/drop-deprecated
...
Drop long deprecated function register_tstz_w_secs()
2017-12-10 17:43:01 +00:00