Daniele Varrazzo
5c72203180
Using pathlib to manipulate paths
2019-04-22 11:24:29 +01:00
Daniele Varrazzo
591476621c
Dropped problematic init step
...
It was performed before repos cloned so no resource available (including
the script!)
2019-04-22 11:24:29 +01:00
Daniele Varrazzo
fda738c90d
All together now, let's make this real
2019-04-22 02:54:56 +01:00
Daniele Varrazzo
5858b0b9b4
Test packages from Python
2019-04-22 02:54:56 +01:00
Daniele Varrazzo
169ce22228
Build psycopg from Python
2019-04-22 02:54:56 +01:00
Daniele Varrazzo
c875197432
Build libpq from Python
2019-04-22 02:54:56 +01:00
Daniele Varrazzo
73f6a0cd95
Build openssl from Python
2019-04-22 02:54:56 +01:00
Daniele Varrazzo
37ce131d2c
Added setenv to log env vars changes
2019-04-22 02:54:56 +01:00
Daniele Varrazzo
00fc2820a0
Added script to implement appveyor functionality in Python
...
Only the init step for the moment.
2019-04-22 02:54:56 +01:00
Daniele Varrazzo
72fe91c02e
Build and test with openssl 1.1 on windows
...
Porting to openssl 1.1 by Matthew Brett, from the psycopg2-wheel repos.
2019-04-11 00:27:49 +01:00
Daniele Varrazzo
7571ec9368
Run tests on windows using the same library versions of the packages
2019-03-18 01:41:56 +00:00
Daniele Varrazzo
599432552a
Copyright year updated
...
ag -l Copyright | xargs sed -i \
"s/\(.*copyright (C) [0-9]\+\)\(-[0-9]\+\)\?\(.*\)/\1-$(date +%Y)\3/I"
2019-02-17 01:36:36 +00:00
Daniele Varrazzo
30c1befa64
SQLSTATE error classes implemented in C
...
The module is only used to export them to Python.
2019-02-10 03:45:14 +00:00
Daniele Varrazzo
1bb3d5cfe2
Dropped duplicate classes in errors module
...
Also using a more compact class registration using a decorator
2018-10-23 00:31:57 +01:00
Daniele Varrazzo
b205764fdd
Merge branch 'master' into errors-module
2018-10-15 00:58:32 +01:00
Daniele Varrazzo
61df7bdd8d
Errors module content updated to Postgres 11
2018-10-14 23:07:11 +01:00
Daniele Varrazzo
7a5edff6c6
errorcodes map update to PostgreSQL 11
2018-10-14 22:57:48 +01:00
Daniele Varrazzo
9148157697
Merge branch 'master' into https
2018-10-10 22:07:33 +01:00
Jon Dufresne
488818eeb6
Replace deprecated optparse usage with argparse
...
Per https://docs.python.org/3/library/optparse.html
> Deprecated since version 3.2: The optparse module is deprecated and
> will not be developed further; development will continue with the
> argparse module.
2018-10-10 05:15:57 -07:00
Jon Dufresne
b07e34e0b8
Prefer https:// URLs when available
2018-09-22 19:02:33 -07:00
Daniele Varrazzo
782fa39647
Generating the whole errors file from script
2018-08-17 02:00:40 +01:00
Daniele Varrazzo
0bce58d0cd
Dropped parsing sgml files for error codes
...
The errcodes.txt file contains all the errors for the currently
maintained server versions. There is only one error code missing,
probably unused, but adding it back anyway to keep the errcode module
unchanged.
2018-08-17 02:00:40 +01:00
Daniele Varrazzo
a8b9c9971e
Consider PG 9.3 a thing of the past.
...
Wow, it seems yesterday...
Previosly archived as a "past" version only in the prepare script. Test
script consistent now.
[skip ci]
2018-07-13 19:11:56 +01:00
Daniele Varrazzo
82f52db9b3
Fetch the correct testing postgres packages on xenial
2018-07-13 18:25:07 +01:00
Jon Dufresne
61e644049f
Add testing and document support for Python 3.7
...
Python 3.7 was released on June 27, 2018.
https://docs.python.org/3/whatsnew/3.7.html
2018-07-12 18:07:25 -07:00
Daniele Varrazzo
6becf0ef55
Note the upgrade in wheel dependencies in NEWS file
2018-05-23 21:51:49 +01:00
Daniele Varrazzo
e8a831dda2
Merge branch 'master' into drop-2to3
2018-05-20 23:56:29 +01:00
Daniele Varrazzo
eb570488a4
Test databases from newest to oldest
...
This way we can spot when a feature was not supported yet by the first
test failing.
2018-05-18 12:16:03 +01:00
Daniele Varrazzo
957fd79a27
Build using OpenSSL 1.0.2n
2018-01-29 03:27:08 +00:00
Jon Dufresne
8ad2098b74
Drop 2to3 build step; make all code compatible with all Pythons
...
Make all library code compatible with both Python 2 and Python 3. Helps
move to modern Python idioms. Can now write for Python 3 (with
workarounds for Python 2) instead of the other way around.
In the future, when it is eventually time to drop Python 2, the library
will be in a better position to remove workarounds
Added a very small comparability module compat.py where required. It
includes definitions for:
- text_type -- A type. str on Python 3. unicode on Python 2.
- string_types -- A tuple. Contains only str on Python 3. Contains str &
unicode on Python 2.
2017-12-11 20:26:58 -08: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
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
1047af03da
Remove unused scripts maketypes.sh & buildtypes.py
...
Refs #645
2017-12-10 09:57:43 -08:00
Jon Dufresne
e335d6d223
Trim trailing whitespace from all files throughout project
...
Many editors automatically trim whitespace on save. By trimming all
files in one go, makes future diffs cleaner without extraneous
whitespace changes.
2017-12-01 21:42:14 -08:00
Daniele Varrazzo
727b952a32
Build and test packages with libpq 10.1 and OpenSSL 1.0.2m
2017-11-28 17:19:55 +00:00
Hugo
283de27098
Remove redundant parentheses
2017-11-28 16:06:52 +00: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
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
22c7114168
Disable uploading docs on pythonhosted
...
The service is deprecated in favour of RTD. There is also no more way to
upload redirects there, so #581 cannot be fixed.
Official docs are on http://initd.org/psycopg/docs/
2017-08-23 13:42:49 +01:00
Jason Erickson
9ac2b8c3a9
Force rebuild of cache for new OpenSSL/PostgreSQL
...
OpenSSL updated to 1.0.2l
PostgreSQL updated to 9.6.3
2017-06-08 20:11:20 -06:00
Daniele Varrazzo
7d9ef5f952
Run tests against PostgreSQL 10 beta1
...
Use the new Postgres verisoning schema: 10 is a major version, 10.0 a
patch release. See
https://wiki.postgresql.org/wiki/New_in_postgres_10#Change_in_Version_Numbering
2017-06-08 18:45:07 +01:00
Daniele Varrazzo
89169e6e53
Error codes updated to PG 10 beta 1
2017-06-05 12:34:17 +01:00
Daniele Varrazzo
75d84f0b25
errcodes updated to PG 9.6
2017-06-05 12:18:21 +01:00
Daniele Varrazzo
455f51c36c
Added docs about making a release
...
Drop previous script which didn't include the CI-generated packages.
[skip ci]
2017-03-01 15:59:15 +00:00
Daniele Varrazzo
535ff672c0
Added AppVeyor configuration to test building on Windows
2017-02-16 15:43:11 +00:00
Daniele Varrazzo
ee4887b4c5
Download testing servers from upload instead of tarballs
2017-02-08 18:37:40 +00:00
Daniele Varrazzo
3ff350cd24
Merge branch 'test-dinosaurs'
2017-02-07 00:58:48 +00:00
Daniele Varrazzo
f5cad47909
Run the test suite with postgres versions not available on travis
2017-02-06 21:40:05 +00:00
Daniele Varrazzo
e9c5f66450
build-manylinux script moved to build-wheels project
2017-02-06 19:12:17 +00:00
Daniele Varrazzo
9ca51e0ed9
Use the server on the host to test
2017-02-01 17:33:12 +00:00
Daniele Varrazzo
815869375b
Merge back manylinux build script from the psycopg2-wheels project
2017-02-01 17:05:47 +00:00
Daniele Varrazzo
8341792c5b
Added script to create manylinux1 wheels
...
See issue #425
2017-01-04 04:43:54 +01:00
Daniele Varrazzo
c46b6ea719
Fixed travis test: unset green mode
2016-12-26 04:31:18 +01:00
Daniele Varrazzo
64342fcff0
Less verbose travis tests
2016-12-26 04:13:41 +01:00
Daniele Varrazzo
874705db42
Configure Travis to test replication
2016-12-25 18:37:26 +01:00
Daniele Varrazzo
feebc8f689
Don't use separate databases for tests
...
I got this wrong: I thought parallel test ran in the same VM; they are
isolated instead.
2016-12-24 04:42:55 +01:00
Daniele Varrazzo
def22982fb
Run the tests against all the available server versions
2016-12-24 04:12:03 +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
90ee1ebba5
errorcodes map updated to PostgreSQL 9.5.
2016-07-01 20:14:30 +01:00
Daniele Varrazzo
b4d38c455c
Don't need to build the env for a sdist
...
After 2.5 we are not releasing the html docs in the sdist anymore.
2014-09-01 16:29:38 +01:00
Daniele Varrazzo
7faa06ce0b
Added scripts to release and upload docs
2014-09-01 16:29:38 +01:00
Daniele Varrazzo
6705e4051d
Dropped creation of errcodes with missing spec field
...
On further inspection these names are just aliases for values already
defined: we don't need the duplication.
2014-08-28 02:17:57 +01:00
Daniele Varrazzo
c1da93a7b2
Document we known 9.4 errorcodes
2014-08-24 22:11:21 +01:00
Daniele Varrazzo
31d07e5029
Scrape PostgreSQL 9.4 error codes table too
...
No new error code found as of 9.4 beta2.
2014-08-13 02:44:59 +01:00
Daniele Varrazzo
6d6fd9acf7
Parse errocodes for PG 9.3 too
...
There is no new errcode defined so no need to release this as a change,
only change the docs.
2014-07-31 13:35:04 +01:00
Daniele Varrazzo
081bf843d2
Parse the error codes from the text file if available
...
The text file was added in PG 9.1. It contains a few errors not available
in the SGML.
2014-07-31 13:33:36 +01:00
Chris Mildebrandt
693dedf4da
cleanup remaining GPL license text
2014-05-20 09:50:53 -07:00
Piotr Kasprzyk
31b6ec63f8
Fix multiple misspellings
2013-04-26 09:59:40 +01:00
Daniele Varrazzo
61d496b2ed
Script to test ticket #58 moved into sandbox
...
We don't need it distributed in the sdist
2013-04-07 22:02:52 +01:00
Daniele Varrazzo
7de8611607
errorcodes map updated to PostgreSQL 9.2
2012-09-21 01:59:02 +01:00
Daniele Varrazzo
2af563227a
make_errorcodes updated to the current page style
2011-12-16 14:49:49 +00:00
Daniele Varrazzo
29932c488f
errorcodes map updated to PostgreSQL 9.1
2011-08-22 17:29:14 +01:00
Daniele Varrazzo
b6e710b0fc
Fixed refcount bug in copy_to() and copy_expert() methods too
2011-06-07 00:08:29 +01:00
Daniele Varrazzo
2a1b2b5713
Added script to demonstrate the refcount bug during copy
...
from https://bugzilla.redhat.com/show_bug.cgi?id=711095
2011-06-07 00:08:29 +01:00
Daniele Varrazzo
332acccc6e
Replace b('str') with b'str' in Python 3
...
This avoids an encode() call for each of these constants.
Use a custom 2to3 fixer in setup.py to perform the conversion.
2011-01-13 11:37:40 +00:00
Daniele Varrazzo
a44441f5e5
Added script to look for refcounting bugs
2011-01-03 21:34:46 +01:00
Daniele Varrazzo
75a6f783c5
Added PostgreSQL 9.0 error codes.
2010-09-23 23:43:23 +01:00
Daniele Varrazzo
a320f25a2a
Completed documentation for errorcodes module.
2010-02-16 00:38:44 +00:00
Daniele Varrazzo
3da7a33ffb
Added script to update the errorcodes module.
2010-02-15 01:12:13 +00:00
Daniele Varrazzo
8246b28563
Removed files used by the Epydoc documentation.
2010-02-14 00:39:49 +01:00
Federico Di Gregorio
3937ea3ece
Added aync.txt to distribution.
2005-11-29 12:01:46 +00:00
Daniele Varrazzo
ad76b5ba3c
* psycopg/psycopgmodule.c: fixed exceptions refcount.
...
* fixed lots of doctrings and added Epydoc-generated docs support.
2005-11-26 07:47:48 +00:00
Federico Di Gregorio
cb9cec57c0
Array support for all basic types.
2005-03-23 11:02:13 +00:00
Federico Di Gregorio
07a38c31cd
Starting array work.
2005-03-22 14:20:20 +00:00
Federico Di Gregorio
9316c6af53
Optimizations to type casting (in preparation to array support.)
2005-03-12 06:39:47 +00:00
Federico Di Gregorio
c904d97f69
Initial psycopg 2 import after SVN crash.
2004-10-19 03:17:12 +00:00