Daniele Varrazzo
bab166e2c1
Fix spelling in news file
2021-06-16 17:08:06 +01:00
Daniele Varrazzo
c5aa98d8bc
Add note about cursor.callproc() and PostgreSQL procedures
...
Close #1155
2021-06-16 16:51:13 +01:00
Daniele Varrazzo
cbbf195a23
Tweak package paths in release docs
2021-06-16 16:38:12 +01:00
Daniele Varrazzo
2b7383c9f9
Build docs from the master branch
2021-06-16 16:37:59 +01:00
Daniele Varrazzo
50145014e8
Bump to versio 2.9
2021-06-16 13:28:31 +01:00
Daniele Varrazzo
9ac54b3615
Move appveyor build support to the scripts/build dir
2021-06-15 18:57:22 +01:00
Daniele Varrazzo
f5d6366287
Rename the github package download script for consistency
2021-06-15 18:54:45 +01:00
Daniele Varrazzo
bbc5fd3180
Drop obsolete file to build Windows packages
2021-06-15 18:42:25 +01:00
Daniele Varrazzo
9e5847222d
Upgrade libpq to 13.3 and libssl to 1.1.1k on windows too
2021-06-15 18:42:25 +01:00
Daniele Varrazzo
cefb818105
Build manylinux2014 packages for i686/x86_64 platforms
...
The manylinux_2_24 tag leaves too many users without usable packages.
Using this tag requires to build libraries too or a libssh too old will
be used, with the segfault risks seen in the past.
OTOH building all the libraries on arm/ppc platforms proves very time
consuming and requires further tooling than what available in the image.
Because these packages are new it seems ok to use the manylinux_2_24
tag and use the package versions of libpq/libssl.
2021-06-15 18:42:25 +01:00
Daniele Varrazzo
37ab1d8877
Bump to a new dev version number to try to release new packages
2021-06-15 18:28:13 +01:00
Daniele Varrazzo
1d3a89a0bb
Copyright year updated to 2021
...
ag -l Copyright | xargs sed -i \
"s/\(.*copyright (C) [0-9]\+\)\(-[0-9]\+\)\?\(.*Psycopg Team.*\)/\1-$(date +%Y)\3/I"
2021-06-15 00:37:22 +01:00
Daniele Varrazzo
af05c3a1ec
Merge branch 'timezone-seconds'
2021-06-15 00:25:55 +01:00
Daniele Varrazzo
1d3d5e905f
Deprecate the psycopg2.tz module
...
Don't use its objects anymore in the tests (except for the tests for the
objects themselves).
2021-06-15 00:22:54 +01:00
Daniele Varrazzo
f28502663f
Use datetime.timezone as default tzinfo_factory.
2021-06-15 00:17:14 +01:00
Daniele Varrazzo
2eac70786e
Drop support for mx.DateTime objects
...
They are Python 2 only.
2021-06-14 23:05:48 +01:00
Daniele Varrazzo
476a969bd8
Handle correctly timestamps with fractions of minute in the timezone offset
...
Close #1272 .
2021-06-14 22:25:02 +01:00
Daniele Varrazzo
5667026883
Use a stdlib timezone in TimestampFromTicks
...
This is the only use of `LocalTimezone` in psycopg2 code.
2021-06-14 19:22:59 +01:00
Daniele Varrazzo
521981584d
Clean up the packaging procedure
2021-05-29 21:57:26 +01:00
Daniele Varrazzo
06c3c3a557
Merge branch 'packages'
2021-05-26 17:29:03 +01:00
Daniele Varrazzo
808007456d
Document the new way of building packages
2021-05-26 17:28:14 +01:00
Daniele Varrazzo
a9db3228d3
One line about the new packages in the news file
2021-05-26 17:28:14 +01:00
Daniele Varrazzo
52cd94442c
Add include and lib dirs from libpq --cppflags, --ldflags
...
They seem the right thing to fix MacOS build woes.
Inspired to #935 , might close #1200 .
2021-05-26 17:28:14 +01:00
Daniele Varrazzo
d116b80c5f
Add script to download packages from appveyor
2021-05-26 17:28:14 +01:00
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