Daniele Varrazzo
e7ce6761e1
Use Appveyor to build Windows packages
...
The script was executed both by this repos' appveyor config (to run the
tests) and by the psycopg2-wheels config (to build the packages). Now
there are two different workflows to execute for tests and to build packages.
The only way to swap them is to change the project config it seems, in
<https://ci.appveyor.com/project/psycopg/psycopg2/settings >.
2021-05-26 17:26:00 +01:00
Daniele Varrazzo
efae570a07
Build MacOS packages on GitHub Actions
2021-05-26 17:23:40 +01:00
Daniele Varrazzo
d1c7e6a094
Add script to download packages from GitHub
2021-05-26 17:23:40 +01:00
Daniele Varrazzo
9b91b09f9c
Enable qemu to build arm/ppc packages on github
2021-05-26 17:23:40 +01:00
Daniele Varrazzo
b5dd3aae86
Build packages for Python >= 3.6
2021-05-26 17:23:40 +01:00
Daniele Varrazzo
367ea40b1e
Allow libpq tests to fail
...
They fail on image build when we delete the system library.
2021-05-26 17:23:40 +01:00
Daniele Varrazzo
ec531bee31
Create sdist packages
...
Adapted from the psycopg2-wheels project
2021-05-25 23:23:27 +01:00
Daniele Varrazzo
8a2deb39ed
Escape table and column names in cursor.copy_from() and .copy_to()
2021-05-25 11:50:23 +01:00
Daniele Varrazzo
e5ad0ab2d9
'with' starts a transaction even on autocommit connections
...
Close #941
2021-05-24 14:13:19 +02:00
Daniele Varrazzo
d8e6426433
Fix formatting of last entries in the NEWS file
2021-05-24 14:11:06 +02:00
Daniele Varrazzo
506a10026a
Remove configuration for unused VS versions in appveyor build
2021-05-24 11:17:01 +02:00
Daniele Varrazzo
cb12317d21
Drop use of obsolete alias PyMem_Del
2021-05-24 11:15:24 +02:00
Daniele Varrazzo
e7c5f95bf6
Merge branch 'github-actions'
2021-05-22 17:21:06 +02:00
Daniele Varrazzo
09d6e3cf64
Use GitHub Actions badge in the readme
2021-05-22 17:20:54 +02:00
Daniele Varrazzo
5d19c6ef7e
Update GitHub Actions as on branch main_2_8
...
Drop Python version not supported on master.
Drop Travis workflow on master branch too.
2021-05-22 17:20:12 +02:00
Riccardo Magliocchetti
9dbe8c6757
ci: first stab at running CI as github actions
...
Props to Adam Chainz for sharing its setup.
2021-05-22 16:51:53 +02:00
Yusuke Hayashi
fed22d39e9
Fix typo
2021-05-22 14:30:11 +02:00
Daniele Varrazzo
19ddbc47ca
Merge branch 'rm-2.7'
2021-05-20 16:59:43 +02:00
Daniele Varrazzo
cdc83d64db
Add Python 3.9 to travis test grid, drop 2.7
2021-05-20 16:58:46 +02:00
Daniele Varrazzo
3db4abcfa4
Unbreak f-string wrong replacements
2021-05-20 16:49:05 +02:00
Daniele Varrazzo
8f40c648af
Merge branch 'master' into rm-2.7
2021-05-20 16:36:55 +02:00
Chris Wilson
45599b2716
Add warning about send_feedback and cursor choice
2021-05-20 16:33:00 +02:00
Hans Ginzel
787a7b90ae
cursor.rst typo: was creates
...
name attribute: “cursor was creates” → “was created”
2021-05-20 16:26:08 +02:00
Daniele Varrazzo
55aef83fa1
Merge branch 'sqlstate_errors'
2021-05-20 16:17:47 +02:00
Daniele Varrazzo
3487f627e2
Mention sqlstate reinit in NEWS file
2021-05-20 16:16:51 +02:00
Sandro Mani
f59d626fe3
Don't re-initialize psycoEncodings if already initialized
2021-05-20 16:14:24 +02:00
Sandro Mani
22575528be
Don't abort if sqlstate_errors already initialized
2021-05-20 16:14:24 +02:00
Daniele Varrazzo
0f457a01d9
Fix NEWS typo
2021-05-20 13:12:46 +02:00
Daniele Varrazzo
8ea5d0c0b8
Fix segfault initialising Column object manually
...
Close #1252
2021-05-20 13:10:59 +02:00
Daniele Varrazzo
391386cfb9
Accept no param in connect()
...
More friendly towards ``connect(**parse_dsn())``, and what psycopg3 does.
Close #1250
2021-05-20 13:10:53 +02:00
Tim Gates
0d7953a521
docs: fix a few simple typos
...
There are small typos in:
- doc/src/faq.rst
- psycopg/cursor_type.c
- psycopg/xid_type.c
- scripts/make_errorcodes.py
- scripts/make_errors.py
- tests/dbapi20.py
- tests/test_connection.py
Fixes:
- Should read `publicly` rather than `publically`.
- Should read `unicode` rather than `uniconde`.
- Should read `supposed` rather than `suppsed`.
- Should read `something` rather than `somenthing`.
- Should read `portable` rather than `portible`.
- Should read `exhausted` rather than `exausted`.
- Should read `compliance` rather than `compiliance`.
Closes #1275
2021-05-20 12:22:47 +02:00
Rafi Shamim
73969ba3e7
Skip test_encrypt_server for CockroachDB
2021-04-21 12:56:54 +01:00
arulajmani
f469331af5
Skip test_9_6_diagnostics test for CRDB
...
Previously, the CRDB's pg server version was 9.5, which meant this test
wasn't run as it is skipped for versions 9.6 and before. Now that the
server version of CRDB is 13, this check no longer applies.
This patch explicitly skips test_9_6_diagnostics for CRDB. The reason
for this is the same as test_9_3_diagnostics, which is currently
skipped for CRDB.
2020-12-16 23:41:45 +00:00
Hugo van Kemenade
8830e30f73
Merge branch 'master' into rm-2.7
2020-11-18 18:10:16 +02:00
Hugo van Kemenade
c3b65d63b6
Upgrade f-strings with flynt -a and remove int()
2020-11-18 18:09:08 +02:00
Daniele Varrazzo
e85ef2298b
Merge branch 'connection_exception'
2020-11-17 22:45:52 +00:00
Hugo van Kemenade
8d7f660309
Upgrade f-strings with flynt
2020-11-17 23:52:11 +02:00
Daniele Varrazzo
8449844af3
Merge branch 'pg13-win'
2020-11-17 21:07:52 +00:00
Hugo van Kemenade
d956eaa3b1
Drop support for EOL Python 2.7
2020-11-17 22:53:44 +02:00
Hugo van Kemenade
7babeccbec
Upgrade Python syntax with pyupgrade --py36-plus
2020-11-17 22:22:11 +02:00
Hugo van Kemenade
6c48b63ae4
Drop support for EOL Python 2.7
2020-11-17 22:22:11 +02:00
Sergey Golitsynskiy
b05a581931
Fix typo in sample code: psycopg >> psycopg2
2020-11-17 20:19:26 +00:00
Hugo van Kemenade
694a20fb95
Drop support for EOL Python 3.5 ( #1197 )
2020-11-17 20:17:12 +00:00
Daniele Varrazzo
490c53bace
Merge pull request #1000 from hugovk/rm-3.4
...
Drop support for EOL Python 3.4
2020-11-17 16:28:47 +00:00
Justas Sadzevicius
cdca0a20e0
Classify connection exceptions as operational errors to better conform with PEP 249
2020-11-17 18:02:06 +02:00
Hugo van Kemenade
60ed2770f3
Merge branch 'master' into rm-3.4
2020-11-17 18:01:04 +02:00
Daniele Varrazzo
8764a85320
Mention Python 3.9 supported
...
See #1183
2020-11-16 11:53:30 +00:00
Jason Erickson
f1dfbd59af
Build against PostgreSQL 13.0 and removed Py27/34
...
PostgreSQL 12 and 13 do not support older Microsoft Visual Studio compilers
and therefore we can not build against Python 2.7 and Python 3.4
2020-11-13 12:24:12 -07:00
Jason Erickson
e3f8cf0702
Remove old patch for Postgres 9.6 and OpenSSL 1.1
2020-11-13 12:22:38 -07:00
Hugo van Kemenade
d8aa60221d
Merge branch 'master' into rm-3.4
2020-11-13 21:22:26 +02:00