39 Commits

Author SHA256 Message Date
Sascha Peilicke
c4b349269c Python3 moved to devel:languages:python3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=37
2013-06-17 12:52:45 +00:00
James Oakley
1ba7060b5a - Update to 2.5:
- Added JSON adaptation.
  - Added support for PostgreSQL 9.2 range types.
  - `connection` and `cursor` objects can be used in ``with`` statements as
    context managers as specified by recent DBAPI extension.
  - Added `psycopg2.extensions.Diagnostics` object to get extended info from
    a database error.  Many thanks to Matthew Woodcraft for the implementation
    (ticket #149).
  - Added `connection.cursor_factory` attribute to customize the default
    object returned by `connection.cursor()`.
  - Added support for backward scrollable cursors. Thanks to Jon Nelson for
    the initial patch (ticket #108).
  - Added a simple way to customize casting of composite types into Python
    objects other than namedtuples. Many thanks to Ronan Dunklau and Tobias
    Oberstein for the feature development.
  - `connection.reset()` implemented using `DISCARD ALL` on server versions
    supporting it.
  - Properly cleanup memory of broken connections (ticket #148).
  - Fixed bad interaction of ``setup.py`` with other dependencies in
    Distribute projects on Python 3 (ticket #153).
  - Added support for Python 3.3.
  - Dropped support for Python 2.4. Please use Psycopg 2.4.x if you need it.
  - `psycopg2.errorcodes` map updated to PostgreSQL 9.2.
  - Dropped Zope adapter from source repository. ZPsycopgDA now has its own
    project at <http://github.com/psycopg/ZPsycopgDA>.
- Changes from 2.4.6:
  - Fixed 'cursor()' arguments propagation in connection subclasses and
    overriding of the 'cursor_factory' argument. Thanks to Corry Haines for
    the report and the initial patch (ticket #105).
  - Dropped GIL release during string adaptation around a function call

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=36
2013-04-16 18:44:03 +00:00
Todd R
ceb39cf029 Accepting request 142768 from devel:languages:python3
Removed openSUSE 11.4 spec file workarounds (forwarded request 142750 from TheBlackCat)

OBS-URL: https://build.opensuse.org/request/show/142768
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=35
2012-11-25 11:12:03 +00:00
Todd R
4c2de53697 Accepting request 122403 from home:babelworx:ldig:branches:devel:languages:python
license update: LGPL-3.0+ and (LGPL-3.0+ or ZPL-2.0) and 	SUSE-GPL-2.0-with-openssl-exception
See the COPYING file. There are GPL-2.0+ (with openssl linking exceptions for pgsql) in the package. Also, the ZPL option is only available for one particular subdirectory in the package

OBS-URL: https://build.opensuse.org/request/show/122403
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=34
2012-05-25 15:20:33 +00:00
Todd R
0cfed57b69 Accepting request 122225 from home:HighwayStar:branches:devel:languages:python
python3 package added

OBS-URL: https://build.opensuse.org/request/show/122225
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=33
2012-05-25 06:57:27 +00:00
James Oakley
9c371a0633 - Update to 2.4.5:
* The close() methods on connections and cursors don't raise exceptions
    if called on already closed objects.
  * Fixed fetchmany() with no argument in cursor subclasses
    (ticket #84).
  * Use lo_creat() instead of lo_create() when possible for better
    interaction with pgpool-II (ticket #88).
  * Error and its subclasses are picklable, useful for multiprocessing
    interaction (ticket #90).
  * Better efficiency and formatting of timezone offset objects thanks
    to Menno Smits (tickets #94, #95).
  * Fixed 'rownumber' during iteration on cursor subclasses.
    Regression introduced in 2.4.4 (ticket #100).
  * Added support for 'inet' arrays.
  * Fixed 'commit()' concurrency problem (ticket #103).
  * Codebase cleaned up using the GCC Python plugin's static analysis
    tool, which has revealed several unchecked return values, possible
    NULL dereferences, reference counting problems. Many thanks to David
    Malcolm for the useful tool and the assistance provided using it.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=32
2012-04-06 19:07:13 +00:00
Sascha Peilicke
c25c4025b0 - Can't hurt to suggest postgresql-server
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=31
2012-03-27 09:27:26 +00:00
Sascha Peilicke
26d1a9183a - Simplify macro usage
- Remove outdated SUSE version checks

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=30
2012-03-12 21:10:00 +00:00
James Oakley
36b3e26208 Accepting request 104494 from devel:openSUSE:Factory:patch-license
patch license to follow spdx.org standard

OBS-URL: https://build.opensuse.org/request/show/104494
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=29
2012-02-13 18:42:16 +00:00
James Oakley
e7d443b97f - Update to 2.4.4:
* register_composite() also works with the types implicitly defined after a
    table row, not only with the ones created by CREATE TYPE.
  * Values for the isolation level symbolic constants restored to what they
    were before release 2.4.2 to avoid breaking apps using the values instead
    of the constants.
  * Named DictCursor/RealDictCursor honour itersize (ticket #80).
  * Fixed rollback on error on Zope (ticket #73).
  * Raise DatabaseError instead of Error with empty libpq errors, consistently
    with other disconnection-related errors: regression introduced in release
    2.4.1 (ticket #82).
- Version 2.4.3:
  * connect() supports all the keyword arguments supported by the database
  * Added new_array_type() function for easy creation of array typecasters.
  * Added support for arrays of hstores and composite types (ticket #66).
  * Fixed segfault in case of transaction started with connection lost (and
    possibly other events).
  * Fixed adaptation of Decimal type in sub-interpreters, such as in certain
    mod_wsgi configurations (ticket #52).
  * Rollback connections in transaction or in error before putting them back
    into a pool. Also discard broken connections (ticket #62).
  * Lazy import of the slow uuid module, thanks to Marko Kreen.
  * Fixed NamedTupleCursor.executemany() (ticket #65).
  * Fixed --static-libpq setup option (ticket #64).
  * Fixed interaction between RealDictCursor and named cursors (ticket #67).
  * Dropped limit on the columns length in COPY operations (ticket #68).
  * Fixed reference leak with arguments referenced more than once in queries
    (ticket #81).
  * Fixed typecasting of arrays containing consecutive backslashes.
  * errorcodes map updated to PostgreSQL 9.1.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=28
2012-01-12 22:04:03 +00:00
Sascha Peilicke
8a9c080a37 - Update to version 2.4.2:
* connection.h: added codec attribute to avoid repeated codec name
    lookups during unicode query/params manipulations.
  * setup.py: bumped to version 2.3.2.dev0
  * psycopg/connection_int.c: applied patch from Marti Raudsepp to close
    ticket #24. Fixed segfault in connection when DateStyle not available
    (e.g.  pgbouncer appars not passing it to the client)
  * psycopg/utils.c: Added psycopg_strdup function.
  - See ChangeLog for more...
- Don't package testsuite
- Fix non-executable script rpmlint warning

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=27
2011-09-21 13:46:02 +00:00
5d2d2e38d2 Autobuild autoformatter for 67290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=2
2011-05-30 14:55:53 +00:00
53eb616efa Accepting request 67290 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/67290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=1
2011-05-30 14:55:44 +00:00
Sascha Peilicke
b74cf63130 - Spec file changes:
* Added LICENSE and NEWS files
  * Added ZPL license to preamble (psycopg2 is dual-licensed)
  * Use upstream description
  * Fixed SLE build errors
  * Repacked tarball to bzip2
- Update to version 2.4
  * Added support for Python 3.1 and 3.2. The conversion has also
    brought several improvements:
  * Improvements to the named cusors and data handling
  * Fixed adaptation of None in composite types (ticket #26). Bug
    report by Karsten Hilbert.
  * Fixed several reference leaks in less common code paths.
  * Fixed segfault when a large object is closed and its connection no
    more available.
  * Added missing icon to ZPsycopgDA package, not available in Zope
    2.12.9 (ticket #30). Bug report and patch by Pumukel.
  * Fixed conversion of negative infinity (ticket #40). Bug report and
    patch by Marti Raudsepp.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=26
2011-02-28 08:29:10 +00:00
OBS User _service
f6e539b8a8 generated via source service
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=25
2011-02-28 07:52:43 +00:00
Sascha Peilicke
62e5f70463 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=24 2011-02-28 07:52:41 +00:00
Pavol Rusnak
82e4ad5a3f Accepting request 56848 from home:elchevive
OBS-URL: https://build.opensuse.org/request/show/56848
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=23
2011-01-03 00:42:53 +00:00
Cristian Rodríguez
bdcf7a3f62 Accepting request 51433 from home:termim:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/51433
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=22
2010-10-27 12:22:11 +00:00
James Oakley
5943334955 Accepting request 20517 from home:jnelson-suse:branches:devel:languages:python
Copy from home:jnelson-suse:branches:devel:languages:python/python-psycopg2 via accept of submit request 20517 revision 12.
Request was accepted with message:
Looks good. Thanks

OBS-URL: https://build.opensuse.org/request/show/20517
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=21
2009-09-16 13:38:40 +00:00
James Oakley
34778ec224 Copy from home:jnelson-suse:branches:devel:languages:python/python-psycopg2 via accept of submit request 18644
Request was accepted with message:
Thanks

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=20
2009-08-25 15:07:49 +00:00
James Oakley
72910d89ea Update to 2.0.12
- Update to 2.0.12:
  * psycopg/lobject_int.c: fixed problem with writing large data using
    lo_write: apparently the large objects code does not like non-blocking
    connections.
  * setup.py: fixed version detection for PostgreSQL rc, as
    suggested by Sok Ann Yap.
  * ZPsycopgDA/db.py: applied serialization error retry from Brian
    Sutherland.
  * Implemented connection.reset() method to reset the connection to
    well-know default parameters. This is much faster than closing and
    reopening the connection. (Suggested by a bug report by Glenn
    Maynard.)
  * psycopg/cursor_type.c: unified size macro definitions in COPY TO
    and COPY FROM operations: now the buffer for column names is 8192
    bytes that should be enough even for very large tables.
  * Applied patch from Robert Munro to fix version check
    in ZPsycopgDA.
- Release 2.0.11:
  * lib/extras.py: fixed crash in fetchone() when prefetching using
    a RealDictCursor.
  * psycopg/cursor_ext.c: now raise correct exception when fetching
    using a custom row factory results in an error.
  * lib/extras.py: applied DictRow "diet" patch from Marko Kreen.
  * setup.py: applied patch from Elvis Pranskevichus to make
    PostgreSQL version detection more robust.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=19
2009-08-18 13:17:15 +00:00
Lars Vogdt
e28468a321 update to 2.0.10
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=18
2009-04-27 15:31:31 +00:00
James Oakley
cd5328189d Oops. Wrong project
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=17
2008-11-20 20:56:43 +00:00
James Oakley
a9c4e6c4d1 Disable 7.4+ features
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=16
2008-11-20 20:53:29 +00:00
James Oakley
1d8b5fd8c9 Update to 2.0.8
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=15
2008-11-20 20:29:18 +00:00
Peter Poeml
f37200f7d6 use --record-rpm instead of --record
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=14
2008-11-05 10:58:23 +00:00
OBS User unknown
b3e3aa8207 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=13 2007-06-13 07:59:34 +00:00
OBS User unknown
2ad8a71a85 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=12 2007-06-13 07:59:33 +00:00
OBS User unknown
b39d547993 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=11 2007-06-13 07:59:31 +00:00
OBS User unknown
3d9aa442a0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=10 2007-06-13 07:59:22 +00:00
OBS User unknown
798254d1d2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=9 2007-01-20 01:55:59 +00:00
OBS User unknown
544de131fc OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=8 2007-01-20 01:55:58 +00:00
OBS User unknown
31231d5b13 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=7 2007-01-20 01:55:56 +00:00
OBS User unknown
12040492a3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=6 2007-01-20 01:55:54 +00:00
OBS User unknown
53eb25ef0f OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=5 2007-01-20 01:54:57 +00:00
OBS User unknown
540aa0489a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=4 2006-10-27 12:12:46 +00:00
OBS User unknown
4ae728a348 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=3 2006-10-27 12:12:44 +00:00
OBS User unknown
9d2d2cb25d OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=2 2006-10-27 12:12:37 +00:00
OBS User unknown
f69604a355 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=1 2006-10-27 12:12:28 +00:00