From 645ab521f3fd5cc2bc579c0eb53418dfde811100 Mon Sep 17 00:00:00 2001 From: Federico Di Gregorio Date: Sat, 6 Nov 2010 15:50:39 +0100 Subject: [PATCH] Preparing release 2.3.0-beta1 * Merged NEWS-2.3 and NEWS-2.2: 2.0 (pre-async) still makes sense in case someone has horrible problems with the new code but 2.3 will just substitute 2.2 so having a separated NEWS file doesn't make sense. * Moved authors and contributors to AUHTORS file. * README now has pointers to web site and bug tracker. * Updated MonoDevelop project. --- AUTHORS | 9 +++++- MANIFEST.in | 2 +- NEWS-2.2 | 53 ------------------------------------ NEWS-2.3 | 71 +++++++++++++++++++++++++++++++++++++++++++----- README | 26 ++++++++---------- ZPsycopgDA/DA.py | 2 +- psycopg2.cproj | 8 +++++- setup.py | 7 +++-- 8 files changed, 97 insertions(+), 81 deletions(-) delete mode 100644 NEWS-2.2 diff --git a/AUTHORS b/AUTHORS index 44c77fc8b..32017591b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,8 +1,15 @@ Main authors: Federico Di Gregorio + Daniele Varrazzo For the win32 port: - Jason Erickson (most of his changes are still in 2.0) + Jason Erickson Additional Help: + Peter Fein contributed a logging connection/cursor class that even if it + was not used directly heavily influenced the implementation currently in + psycopg2.extras. + + Jan UrbaƄski (re)started the work on asynchronous queries and contributed + both on that and on other parts of psycopg2. diff --git a/MANIFEST.in b/MANIFEST.in index c67e577d1..370accfe7 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -12,5 +12,5 @@ recursive-include doc/html * prune doc/src/_build recursive-include scripts *.py *.sh include scripts/maketypes.sh scripts/buildtypes.py -include AUTHORS README INSTALL LICENSE NEWS-2.0 NEWS-2.2 NEWS-2.3 ChangeLog +include AUTHORS README INSTALL LICENSE NEWS-2.0 NEWS-2.3 ChangeLog include PKG-INFO MANIFEST.in MANIFEST setup.py setup.cfg diff --git a/NEWS-2.2 b/NEWS-2.2 deleted file mode 100644 index 1bf7b20b5..000000000 --- a/NEWS-2.2 +++ /dev/null @@ -1,53 +0,0 @@ -What's new in psycopg 2.2.2 ---------------------------- - -* Bux fixes: - - the call to logging.basicConfig() in pool.py has been dropped: it was - messing with some projects using logging (and a library should not - initialize the logging system anyway.) - - psycopg now correctly handles time zones with seconds in the UTC offset. - The old register_tstz_w_secs() function is deprecated and will raise a - warning if called. - - Exceptions raised by the column iterator are propagated. - - Exceptions raised by executemany() interators are propagated. - - -What's new in psycopg 2.2.1 ---------------------------- - -* Bux fixes: - - psycopg now builds again on MS Windows. - - -What's new in psycopg 2.2.0 ---------------------------- - -This is the first release of the new 2.2 series, supporting not just one but -two different ways of executing asynchronous queries, thanks to Jan and Daniele -(with a little help from me and others, but they did 99% of the work so they -deserve their names here in the news.) - -psycopg now supports both classic select() loops and "green" coroutine -libraries. It is all in the documentation, so just point your browser to -doc/html/advanced.html. - -* Other new features: - - truncate() method for lobjects. - - COPY functions are now a little bit faster. - - All builtin PostgreSQL to Python typecasters are now available from the - psycopg2.extensions module. - - Notifications from the backend are now available right after the execute() - call (before client code needed to call isbusy() to ensure NOTIFY - reception.) - - Better timezone support. - - Lots of documentation updates. - -* Bug fixes: - - Fixed some gc/refcounting problems. - - Fixed reference leak in NOTIFY reception. - - Fixed problem with PostgreSQL not casting string literals to the correct - types in some situations: psycopg now add an explicit cast to dates, times - and bytea representations. - - Fixed TimestampFromTicks() and TimeFromTicks() for seconds >= 59.5. - - Fixed spurious exception raised when calling C typecasters from Python - ones. diff --git a/NEWS-2.3 b/NEWS-2.3 index 1b72d413a..38deed69e 100644 --- a/NEWS-2.3 +++ b/NEWS-2.3 @@ -1,10 +1,9 @@ -What's new in psycopg 2.3 -------------------------- +What's new in psycopg 2.3.0 +--------------------------- -Psycopg 2.3 aims to expose some of the new features introduced in PostgreSQL -9.0. +psycopg 2.3 aims to expose some new features introduced in PostgreSQL 9.0. -* New features: +* New features related to features introduced in PostgreSQL 9.0: - `dict` to `hstore` adapter and `hstore` to `dict` typecaster, using both 9.0 and pre-9.0 syntax. @@ -12,11 +11,11 @@ Psycopg 2.3 aims to expose some of the new features introduced in PostgreSQL - Support for payload in notifications received from the backed. - namedtuple returning cursor. -* Other changes: +* Other features and changes: - `mogrify()` now supports unicode queries. - - Dropped deprecated Psycopg "own quoting". - `errorcodes` knows a couple of new codes introduced in PostgreSQL 9.0. + - Dropped deprecated Psycopg "own quoting". - Never issue a ROLLBACK on close/GC. This behaviour was introduced as a bug in release 2.2, but trying to send a command while being destroyed has been considered not safe. @@ -26,3 +25,61 @@ Psycopg 2.3 aims to expose some of the new features introduced in PostgreSQL - Fixed use of `PQfreemem` instead of `free` in binary typecaster. - Fixed access to freed memory in `conn_get_isolation_level()`. + +What's new in psycopg 2.2.2 +--------------------------- + +* Bux fixes: + + - the call to logging.basicConfig() in pool.py has been dropped: it was + messing with some projects using logging (and a library should not + initialize the logging system anyway.) + - psycopg now correctly handles time zones with seconds in the UTC offset. + The old register_tstz_w_secs() function is deprecated and will raise a + warning if called. + - Exceptions raised by the column iterator are propagated. + - Exceptions raised by executemany() interators are propagated. + + +What's new in psycopg 2.2.1 +--------------------------- + +* Bux fixes: + + - psycopg now builds again on MS Windows. + + +What's new in psycopg 2.2.0 +--------------------------- + +This is the first release of the new 2.2 series, supporting not just one but +two different ways of executing asynchronous queries, thanks to Jan and Daniele +(with a little help from me and others, but they did 99% of the work so they +deserve their names here in the news.) + +psycopg now supports both classic select() loops and "green" coroutine +libraries. It is all in the documentation, so just point your browser to +doc/html/advanced.html. + +* Other new features: + + - truncate() method for lobjects. + - COPY functions are now a little bit faster. + - All builtin PostgreSQL to Python typecasters are now available from the + psycopg2.extensions module. + - Notifications from the backend are now available right after the execute() + call (before client code needed to call isbusy() to ensure NOTIFY + reception.) + - Better timezone support. + - Lots of documentation updates. + +* Bug fixes: + + - Fixed some gc/refcounting problems. + - Fixed reference leak in NOTIFY reception. + - Fixed problem with PostgreSQL not casting string literals to the correct + types in some situations: psycopg now add an explicit cast to dates, times + and bytea representations. + - Fixed TimestampFromTicks() and TimeFromTicks() for seconds >= 59.5. + - Fixed spurious exception raised when calling C typecasters from Python + ones. diff --git a/README b/README index a31ba45b6..b00039f55 100644 --- a/README +++ b/README @@ -18,26 +18,24 @@ and FreeBSD on i386, Solaris, MacOS X and win32 architectures. psycopg2 does not introduce build-wise incompatible changes so it should be able to compile on all architectures just as its predecessor did. -Now go read the INSTALL file. More information about psycopg2 extensions to -the DBAPI-2.0 is available in the files located in the doc/ direcory. -Example code can be found in the examples/ directory. If you make any changes -to the code make sure to run the unit tests localed in tests/. - psycopg2 is free software ("free as in freedom" but I like beer too.) It is licensed under the GNU Lesser General Public License, version 3 or later plus an exception to allow OpenSSL (libpq) linking; see LICENSE for more details. +Documentation +------------- -Contributors ------------- +Start by reading the INSTALL file. More information about psycopg2 extensions +to the DBAPI-2.0 is available in the files located in the doc/ direcory. +Example code can be found in the examples/ directory. If you make any changes +to the code make sure to run the unit tests localed in tests/. + +Online documentation can be found at: http://initd.org/psycopg/ -A short list of contributors to psycopg2 follows (if you feel you belong -to this list and you can't find yourself here just drop me a mail): +If you stumble upon any bugs, please tell us at: http://psycopg.lighthouseapp.com/ - * Kudos to piro for all the documentation work. +Contributors +------------ - * Peter Fein contributed a logging connection/cursor class that even if it - was not used directly heavily influenced the implementation currently in - psycopg2.extras. - +For a list of contributors to the project, see the AUTHORS file. diff --git a/ZPsycopgDA/DA.py b/ZPsycopgDA/DA.py index b4f0c6fe0..d852c629c 100644 --- a/ZPsycopgDA/DA.py +++ b/ZPsycopgDA/DA.py @@ -16,7 +16,7 @@ # their work without bothering about the module dependencies. -ALLOWED_PSYCOPG_VERSIONS = ('2.2.0','2.2.1','2.2.2') +ALLOWED_PSYCOPG_VERSIONS = ('2.3.0-beta1',) import sys import time diff --git a/psycopg2.cproj b/psycopg2.cproj index 2caf42115..f6f2cbdee 100644 --- a/psycopg2.cproj +++ b/psycopg2.cproj @@ -199,7 +199,11 @@ - + + + + + @@ -230,6 +234,8 @@ + + diff --git a/setup.py b/setup.py index b1d01d151..e2847c5b6 100644 --- a/setup.py +++ b/setup.py @@ -55,9 +55,10 @@ from distutils.sysconfig import get_python_inc from distutils.ccompiler import get_default_compiler -# take a look at http://www.python.org/dev/peps/pep-0386/ -# for a consistent versioning pattern -PSYCOPG_VERSION = '2.3a1' +# Take a look at http://www.python.org/dev/peps/pep-0386/ +# for a consistent versioning pattern. + +PSYCOPG_VERSION = '2.3.0-beta1' version_flags = ['dt', 'dec']