17
0

92 Commits

Author SHA256 Message Date
30311e37b2 Accepting request 1268414 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1268414
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=48
2025-04-10 19:58:45 +00:00
f11dda94ad Accepting request 1268389 from home:glaubitz:branches:devel:languages:python
- Update to 2.9.10
  * Add support for Python 3.13.
  * Receive notifications on commit (ticket #1728).
  * Errorcodes map and errors classes updated to PostgreSQL 17.
  * Drop support for Python 3.7.
- Drop support-python-313.patch, merged upstream

OBS-URL: https://build.opensuse.org/request/show/1268389
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=100
2025-04-10 13:51:07 +00:00
97ff6a2beb Accepting request 1218908 from devel:languages:python
- Drop patch py313-tests.patch, included in:
- Add patch support-python-313.patch:
  * Support Python 3.13.

- add py313-tests.patch

OBS-URL: https://build.opensuse.org/request/show/1218908
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=47
2024-10-29 13:36:32 +00:00
1c0bc8f6b4 - Drop patch py313-tests.patch, included in:
- Add patch support-python-313.patch:
  * Support Python 3.13.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=98
2024-10-29 05:08:38 +00:00
16e3753760 - add py313-tests.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=97
2024-10-28 21:56:27 +00:00
15a33e2d3a Accepting request 1136458 from devel:languages:python
- require setuptools

OBS-URL: https://build.opensuse.org/request/show/1136458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=46
2024-01-03 11:32:51 +00:00
ea9da937ae - require setuptools
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=95
2024-01-03 10:10:10 +00:00
1bbf1b6413 Accepting request 1129668 from devel:languages:python
- update to 2.9.9:
  * Add support for Python 3.12.
  * Drop support for Python 3.6.
  * Wheel package bundled with PostgreSQL 16 libpq in order to
    add support for recent features, such as ``sslcertmode``.

OBS-URL: https://build.opensuse.org/request/show/1129668
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=45
2023-11-30 21:00:04 +00:00
41ebe62f4d - update to 2.9.9:
* Add support for Python 3.12.
  * Drop support for Python 3.6.
  * Wheel package bundled with PostgreSQL 16 libpq in order to
    add support for recent features, such as ``sslcertmode``.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=93
2023-11-28 21:49:48 +00:00
7f995ef316 Accepting request 1109514 from devel:languages:python
- update to 2.9.7:
  * Fix propagation of exceptions raised during module
    initialization
  * Fix building when pg_config returns an empty string

- Update to 2.9.5
  * Alpine (musl) wheels now available
- update to 2.8.5
  * Added interval_status parameter to start_replication() method
    and other facilities to send automatic replication keepalives
  * Fixed “there’s no async cursor” error polling a connection with
  * Added errors module. Every PostgreSQL error is converted into
  * Added BYTES adapter to manage databases with mixed encodings on
  * Added table_oid and table_column attributes on cursor.description
  * Added connection.info object to retrieve various PostgreSQL
  * Fixed async communication blocking if results are returned in
  * Dropped deprecated PersistentConnectionPool. Use
  * Binary packages no longer installed by default. The
  * Added Replication protocol support (ticket #322). Main authors are
  * Added parse_dsn() and make_dsn() functions (tickets #321, #363). connect()
  * Added __libpq_version__ and libpq_version() to inspect the version of the
  * The attributes notices and notifies can be customized replacing them with
  * Adapt network types to ipaddress objects when available. When not enabled,
    convert arrays of network types to lists by default. The old Inet adapter is
  * Give precedence to __conform__() over superclasses to choose an object
  * Using Python C API decoding functions and codecs caching for faster
  * executemany() slowness addressed by execute_batch() and execute_values()
  * Added async_ as an alias for async to support Python 3.7 where async will
  * Unless in autocommit, do not use default_transaction_* settings to control
    the session characteristics as it may create problems with external

OBS-URL: https://build.opensuse.org/request/show/1109514
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=44
2023-09-07 19:13:48 +00:00
fbfd3434f6 - update to 2.9.7:
* Fix propagation of exceptions raised during module
    initialization
  * Fix building when pg_config returns an empty string
- Update to 2.9.5
  * Alpine (musl) wheels now available
- update to 2.8.5
  * Added interval_status parameter to start_replication() method
    and other facilities to send automatic replication keepalives
  * Fixed “there’s no async cursor” error polling a connection with
  * Added errors module. Every PostgreSQL error is converted into
  * Added BYTES adapter to manage databases with mixed encodings on
  * Added table_oid and table_column attributes on cursor.description
  * Added connection.info object to retrieve various PostgreSQL
  * Fixed async communication blocking if results are returned in
  * Dropped deprecated PersistentConnectionPool. Use
  * Binary packages no longer installed by default. The
  * Added Replication protocol support (ticket #322). Main authors are
  * Added parse_dsn() and make_dsn() functions (tickets #321, #363). connect()
  * Added __libpq_version__ and libpq_version() to inspect the version of the
  * The attributes notices and notifies can be customized replacing them with
  * Adapt network types to ipaddress objects when available. When not enabled,
    convert arrays of network types to lists by default. The old Inet adapter is
  * Give precedence to __conform__() over superclasses to choose an object
  * Using Python C API decoding functions and codecs caching for faster
  * executemany() slowness addressed by execute_batch() and execute_values()
  * Added async_ as an alias for async to support Python 3.7 where async will
  * Unless in autocommit, do not use default_transaction_* settings to control
    the session characteristics as it may create problems with external
  * isolation_level is now writable and entirely separated from autocommit;

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=91
2023-09-07 11:10:42 +00:00
99998ff218 Accepting request 1081820 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081820
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=43
2023-04-21 16:48:03 +00:00
138e32984a Accepting request 1081536 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081536
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=89
2023-04-21 14:11:04 +00:00
6620ffa047 Accepting request 1077060 from devel:languages:python
- update to 2.9.6:
  * Package manylinux 2014 for aarch64 and ppc64le platforms, in
    order to include libpq 15 in the binary package (🎫`#1396`).
  * Wheel package compiled against OpenSSL 1.1.1t.

OBS-URL: https://build.opensuse.org/request/show/1077060
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=42
2023-04-04 19:26:00 +00:00
5d3bc72f83 - update to 2.9.6:
* Package manylinux 2014 for aarch64 and ppc64le platforms, in
    order to include libpq 15 in the binary package (🎫`#1396`).
  * Wheel package compiled against OpenSSL 1.1.1t.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=87
2023-04-03 19:55:58 +00:00
64b0259437 Accepting request 1032498 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1032498
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=41
2022-11-01 12:42:13 +00:00
15686542b6 Accepting request 1032036 from home:yarunachalam:branches:devel:languages:python
- Update to 2.9.5 
  * Add support for Python 3.11.
  * Add support for rowcount in MERGE statements in binary packages
    (ticket`#1497`).
  * Wheel package compiled against OpenSSL 1.1.1r and PostgreSQL 15 libpq.
- Update to 2.9.4
  * Fix `~psycopg2.extras.register_composite()`,
    `~psycopg2.extras.register_range()` with customized search_path
    (ticket`#1487`).
  * Handle correctly composite types with names or in schemas requiring escape.
  * Find ``pg_service.conf file in the ``/etc/postgresql-common`` directory in
    binary packages (ticket`1365`).
  * `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
    PostgreSQL 15.
  * Wheel package compiled against OpenSSL 1.1.1q and PostgreSQL 14.4

OBS-URL: https://build.opensuse.org/request/show/1032036
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=85
2022-10-31 13:22:06 +00:00
700e604028 Accepting request 943182 from devel:languages:python
- update to 2.9.3:
  * Alpine (musl) wheels now available

OBS-URL: https://build.opensuse.org/request/show/943182
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=40
2021-12-30 14:55:40 +00:00
e2cf1e47dc - update to 2.9.3:
* Alpine (musl) wheels now available

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=84
2021-12-30 09:54:51 +00:00
d397e5c844 Accepting request 934511 from devel:languages:python
- update to 2.9.2:
  * Raise `ValueError` for dates >= Y10k (🎫`#1307`).
  * `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
    PostgreSQL 14.
  * Add preliminary support for Python 3.11 (🎟️`#1376, #1386`).
  *  Wheel package compiled against OpenSSL 1.1.1l and PostgreSQL 14.1

OBS-URL: https://build.opensuse.org/request/show/934511
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=39
2021-11-29 16:28:34 +00:00
d260c6cd35 - update to 2.9.2:
* Raise `ValueError` for dates >= Y10k (🎫`#1307`).
  * `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
    PostgreSQL 14.
  * Add preliminary support for Python 3.11 (🎟️`#1376, #1386`).
  *  Wheel package compiled against OpenSSL 1.1.1l and PostgreSQL 14.1

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=83
2021-11-29 10:58:17 +00:00
4e411561ef Accepting request 925643 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/925643
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=38
2021-10-16 20:47:20 +00:00
17955c5ea3 Accepting request 924846 from home:ecsos
- Update to 2.9.1
  - Fix regression with named `sql.Placeholder` (🎫`1291`).
- Update to 2.9.0
  - ``with connection`` starts a transaction on autocommit transactions too
    (🎫`#941`).
  - Timezones with fractional minutes are supported on Python 3.7 and following
    (🎫`#1272`).
  - Escape table and column names in `~cursor.copy_from()` and `~cursor.copy_to()`.
  - Connection exceptions with sqlstate ``08XXX`` reclassified as
    `~psycopg2.OperationalError` (a subclass of the previously used
    `~psycopg2.DatabaseError`) (🎫`#1148`).
  - Include library dirs required from libpq to work around MacOS build problems
    (🎫`#1200`).
  - Dropped support for Python 2.7, 3.4, 3.5 (🎫`#1198, #1000, #1197`).
  - Dropped support for mx.DateTime.
  - Use `datetime.timezone` objects by default in datetime objects instead of
    `~psycopg2.tz.FixedOffsetTimezone`.
  - The `psycopg2.tz` module is deprecated and scheduled to be dropped in the
    next major release.
  - Provide :pep:`599` wheels packages (manylinux2014 tag) for i686 and x86_64
    platforms.
  - Provide :pep:`600` wheels packages (manylinux_2_24 tag) for aarch64 and
    ppc64le platforms.
  - Wheel package compiled against OpenSSL 1.1.1k and PostgreSQL 13.3.
  - Build system for Linux/MacOS binary packages moved to GitHub action.

OBS-URL: https://build.opensuse.org/request/show/924846
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=82
2021-10-16 09:40:18 +00:00
09bb1d06ed Accepting request 835010 from devel:languages:python
- update to 2.8.6:
  * Fixed memory leak changing connection encoding to the current one
  * Fixed search of mxDateTime headers in virtualenvs (🎫`#996`).
  * Added missing values from errorcodes (🎫`#1133`).
  * `cursor.query` reports the query of the last :sql:`COPY` opearation too
  * `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to PostgreSQL 13.
  * Added wheel packages for ARM architecture (🎫`#1125`).
  * Wheel package compiled against OpenSSL 1.1.1g.

OBS-URL: https://build.opensuse.org/request/show/835010
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=37
2020-09-17 12:51:42 +00:00
a7eb58cb1d - update to 2.8.6:
* Fixed memory leak changing connection encoding to the current one
  * Fixed search of mxDateTime headers in virtualenvs (🎫`#996`).
  * Added missing values from errorcodes (🎫`#1133`).
  * `cursor.query` reports the query of the last :sql:`COPY` opearation too
  * `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to PostgreSQL 13.
  * Added wheel packages for ARM architecture (🎫`#1125`).
  * Wheel package compiled against OpenSSL 1.1.1g.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=80
2020-09-16 21:19:49 +00:00
74cd9bca68 Accepting request 807105 from devel:languages:python
- Sort out the syntax of the deps bsc#1171213

OBS-URL: https://build.opensuse.org/request/show/807105
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=36
2020-05-19 12:49:51 +00:00
Tomáš Chvátal
74d891bdd3 - Sort out the syntax of the deps bsc#1171213
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=78
2020-05-19 06:17:20 +00:00
564ac8ae64 Accepting request 796702 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/796702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=35
2020-04-25 18:28:02 +00:00
Tomáš Chvátal
d75dbcd297 Accepting request 796604 from home:dmolkentin:netbox
- update to 2.8.5 
  - Fixed use of connection_factory and cursor_factory together
    (ticket #1019).
  - Added support for logging.LoggerAdapter in LoggingConnection
    (ticket #1026).
  - Column objects in cursor.description can be sliced (ticket
    #1034).
  - Added AIX support (ticket #1061).
  - Fixed copy() of DictCursor rows (ticket #1073).

OBS-URL: https://build.opensuse.org/request/show/796604
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=76
2020-04-23 20:39:38 +00:00
718d126dea Accepting request 787714 from devel:languages:python
- fix postgresql build dependency: pg_config is in postgresql-server-devel (bsc#1167541)

OBS-URL: https://build.opensuse.org/request/show/787714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=34
2020-03-27 20:56:23 +00:00
727b423976 - fix postgresql build dependency: pg_config is in postgresql-server-devel (bsc#1167541)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=74
2020-03-24 09:38:03 +00:00
059a80e1cd Accepting request 786407 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/786407
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=33
2020-03-19 18:51:43 +00:00
Tomáš Chvátal
bf17bd6b4a Accepting request 786405 from home:frispete:OpenStack:Common
- fix postgresql build dependency: pg_config is in postgresql-server-devel

OBS-URL: https://build.opensuse.org/request/show/786405
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=72
2020-03-19 10:27:46 +00:00
621603b71d Accepting request 780392 from devel:languages:python
- update to 2.8.4:
  - Fixed building with Python 3.8 (🎫`#854`).
  - Don't swallow keyboard interrupts on connect when a password is specified
    in the connection string (🎫`#898`).
  - Don't advance replication cursor when the message wasn't confirmed
    (🎫`#940`).
  - Fixed inclusion of ``time.h`` on linux (🎫`#951`).
  - Fixed int overflow for large values in `~psycopg2.extensions.Column.table_oid`
    and `~psycopg2.extensions.Column.type_code` (🎫`#961`).
  - `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
    PostgreSQL 12.
  - Wheel package compiled against OpenSSL 1.1.1d and PostgreSQL at least 11.4.

OBS-URL: https://build.opensuse.org/request/show/780392
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=32
2020-03-03 09:15:22 +00:00
e8f784581a - update to 2.8.4:
- Fixed building with Python 3.8 (🎫`#854`).
  - Don't swallow keyboard interrupts on connect when a password is specified
    in the connection string (🎫`#898`).
  - Don't advance replication cursor when the message wasn't confirmed
    (🎫`#940`).
  - Fixed inclusion of ``time.h`` on linux (🎫`#951`).
  - Fixed int overflow for large values in `~psycopg2.extensions.Column.table_oid`
    and `~psycopg2.extensions.Column.type_code` (🎫`#961`).
  - `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
    PostgreSQL 12.
  - Wheel package compiled against OpenSSL 1.1.1d and PostgreSQL at least 11.4.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=70
2020-02-28 21:51:09 +00:00
27b00148ad Accepting request 738373 from devel:languages:python
Replace %fdupes -s with plain %fdupes; hardlinks are better.

OBS-URL: https://build.opensuse.org/request/show/738373
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=31
2019-10-16 07:15:14 +00:00
bc7eae2480 - Replace %fdupes -s with plain %fdupes; hardlinks are better.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=68
2019-10-14 14:14:54 +00:00
0fc26cb8ab Accepting request 713467 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/713467
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=30
2019-07-11 11:15:22 +00:00
Tomáš Chvátal
e31c4a79f5 Accepting request 713458 from home:dmolkentin:netbox
- Update to 2.8.4
  * Added interval_status parameter to start_replication() method and other
    facilities to send automatic replication keepalives at periodic intervals
    (ticket #913).
  * Fixed namedtuples caching introduced in 2.8 (ticket #928).

OBS-URL: https://build.opensuse.org/request/show/713458
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=66
2019-07-04 16:25:17 +00:00
042183ae0e Accepting request 707677 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/707677
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=29
2019-06-19 19:04:04 +00:00
Tomáš Chvátal
7c062d5dd1 Accepting request 707666 from home:mcalabkova:branches:devel:languages:python
- Update to 2.8.3
  * Added interval_status parameter to start_replication() method 
    and other facilities to send automatic replication keepalives 
    at periodic intervals
  * Fixed RealDictCursor when there are repeated columns
  * Fixed RealDictRow modifiability
  * Fixed “there’s no async cursor” error polling a connection with 
    no cursor
  2.8.0
  * Added errors module. Every PostgreSQL error is converted into 
    a specific exception class
  * Added encrypt_password() function
  * Added BYTES adapter to manage databases with mixed encodings on 
    Python 3
  * Added table_oid and table_column attributes on cursor.description 
    items
  * Added connection.info object to retrieve various PostgreSQL 
    connection information
  * str() on Range produces a human-readable representation
  * Fixed async communication blocking if results are returned in 
    different chunks
  * Fixed adaptation of numeric subclasses such as IntEnum
  * Dropped support for Python 2.6, 3.2, 3.3.
  * Dropped deprecated register_tstz_w_secs()
  * Dropped deprecated PersistentConnectionPool. Use 
    ZPsycopgDA.pool instead.
  * Binary packages no longer installed by default. The 
    ‘psycopg2-binary’ package must be used explicitly.
  * Dropped PSYCOPG_DISPLAY_SIZE build parameter.

OBS-URL: https://build.opensuse.org/request/show/707666
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=64
2019-06-04 18:48:55 +00:00
6c15db9c8c Accepting request 690714 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/690714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=28
2019-04-03 08:51:17 +00:00
Todd R
64793edee6 Accepting request 690713 from home:TheBlackCat:branches:devel:languages:python
- Requires postgresql-server-devel on Factory now.

OBS-URL: https://build.opensuse.org/request/show/690713
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=62
2019-04-02 16:47:19 +00:00
7744086a75 Accepting request 681339 from devel:languages:python
- Update to 2.7.7:
  * Cleanup of the cursor results assignment code, which might have solved
    double free and inconsistencies in concurrent usage (🎟️`#346, #384`).
  * Close named cursors if exist, even if execute() wasn't called (ticket #746).
  * Fixed building on modern FreeBSD versions with Python 3.7 (ticket #755).
  * Fixed hang trying to COPY via execute() in asynchronous connections (ticket #781).
  * Fixed adaptation of arrays of empty arrays (ticket #788).
  * Fixed segfault accessing the connection.readonly and connection.deferrable attributes repeatedly (ticket #790).
  * execute_values() accepts sql.Composable objects (ticket #794).
  * errorcodes map updated to PostgreSQL 11.
  * Allow non-ascii chars in namedtuple fields (regression introduced fixing ticket #211).
  * Fixed adaptation of arrays of arrays of nulls (ticket #325).
  * Fixed building on Solaris 11 and derivatives such as SmartOS and illumos (ticket #677).
  * Maybe fixed building on MSYS2 (as reported in ticket #658).
  * Allow string subclasses in connection and other places (ticket #679).
  * Don't raise an exception closing an unused named cursor (ticket #716).

OBS-URL: https://build.opensuse.org/request/show/681339
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=27
2019-03-05 11:22:49 +00:00
Tomáš Chvátal
8c2150e833 - Update to 2.7.7:
* Cleanup of the cursor results assignment code, which might have solved
    double free and inconsistencies in concurrent usage (🎟️`#346, #384`).
  * Close named cursors if exist, even if execute() wasn't called (ticket #746).
  * Fixed building on modern FreeBSD versions with Python 3.7 (ticket #755).
  * Fixed hang trying to COPY via execute() in asynchronous connections (ticket #781).
  * Fixed adaptation of arrays of empty arrays (ticket #788).
  * Fixed segfault accessing the connection.readonly and connection.deferrable attributes repeatedly (ticket #790).
  * execute_values() accepts sql.Composable objects (ticket #794).
  * errorcodes map updated to PostgreSQL 11.
  * Allow non-ascii chars in namedtuple fields (regression introduced fixing ticket #211).
  * Fixed adaptation of arrays of arrays of nulls (ticket #325).
  * Fixed building on Solaris 11 and derivatives such as SmartOS and illumos (ticket #677).
  * Maybe fixed building on MSYS2 (as reported in ticket #658).
  * Allow string subclasses in connection and other places (ticket #679).
  * Don't raise an exception closing an unused named cursor (ticket #716).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=60
2019-03-04 12:18:22 +00:00
007da18edd Accepting request 583911 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/583911
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=26
2018-03-08 09:58:56 +00:00
Tomáš Chvátal
5abd5feaf8 Accepting request 583898 from home:aplanas:branches:devel:languages:python
Allows Recommends and Suggest in Fedora

OBS-URL: https://build.opensuse.org/request/show/583898
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=58
2018-03-07 14:34:22 +00:00
0c405532c5 Accepting request 580804 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/580804
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=25
2018-03-05 12:37:19 +00:00
b1172b1f1d Accepting request 580746 from home:aplanas:branches:devel:languages:python
- Suggests only for SUSE

OBS-URL: https://build.opensuse.org/request/show/580746
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=56
2018-02-27 21:52:12 +00:00
7849b88b93 Accepting request 578960 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/578960
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=24
2018-02-26 22:24:15 +00:00
Tomáš Chvátal
cf7b2b8897 Accepting request 578950 from home:sebix:branches:devel:languages:python
- update to version 2.7.4:
 - Moving away from installing the wheel package by default.
   Packages installed from wheel raise a warning on import. Added package
   ``psycopg2-binary`` to install from wheel instead (🎫`#543`).
 - Convert fields names into valid Python identifiers in
   `~psycopg2.extras.NamedTupleCursor` (🎫`#211`).
 - Fixed Solaris 10 support (🎫`#532`).
 - `cursor.mogrify()` can be called on closed cursors (🎫`#579`).
 - Fixed setting session characteristics in corner cases on autocommit
   connections (🎫`#580`).
 - Fixed `~psycopg2.extras.MinTimeLoggingCursor` on Python 3 (🎫`#609`).
 - Fixed parsing of array of points as floats (🎫`#613`).
 - Fixed `~psycopg2.__libpq_version__` building with libpq >= 10.1
   (🎫`632`).
 - Fixed `~cursor.rowcount` after `~cursor.executemany()` with :sql:`RETURNING`
   statements (🎫`633`).
 - Fixed compatibility problem with pypy3 (🎫`#649`).
 - Wheel packages compiled against PostgreSQL 10.1 libpq and OpenSSL 1.0.2n.
 - Wheel packages for Python 2.6 no more available (support dropped from
   wheel building infrastructure).
- update to version 2.7.3.2:
 - not relevant
- update to version 2.7.3.1:
 - not relevant

OBS-URL: https://build.opensuse.org/request/show/578950
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=54
2018-02-22 11:20:22 +00:00
dba14cddfb Accepting request 515215 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/515215
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=23
2017-08-10 12:06:02 +00:00
664206213a Accepting request 515213 from home:tbechtold:branches:devel:languages:python
- update version to 2.7.3:
  - Restored default :sql:`timestamptz[]` typecasting to Python `!datetime`.
    Regression introduced in Psycopg 2.7.2 (🎫`#578`).
  - Fixed inconsistent state in externally closed connections
    (🎟️`#263, #311, #443`). Was fixed in 2.6.2 but not included in
    2.7 by mistake.
  - Fixed Python exceptions propagation in green callback (🎫`#410`).
  - Don't display the password in `connection.dsn` when the connection
    string is specified as an URI (🎫`#528`).
  - Return objects with timezone parsing "infinity" :sql:`timestamptz`
    (🎫`#536`).
  - Dropped dependency on VC9 runtime on Windows binary packages
    (🎫`#541`).
  - Fixed segfault in `~connection.lobject()` when *mode*\=\ `!None`
    (🎫`#544`).
  - Fixed `~connection.lobject()` keyword argument *lobject_factory*
    (🎫`#545`).
  - Fixed `~psycopg2.extras.ReplicationCursor.consume_stream()`
    *keepalive_interval* argument (🎫`#547`).
  - Maybe fixed random import error on Python 3.6 in multiprocess
    environment (🎫`#550`).
  - Fixed random `!SystemError` upon receiving abort signal (🎫`#551`).
  - Accept `~psycopg2.sql.Composable` objects in
    `~psycopg2.extras.ReplicationCursor.start_replication_expert()`
    (🎫`554`).
  - Parse intervals returned as microseconds from Redshift (🎫`#558`).
  - Added `~psycopg2.extras.Json` `!prepare()` method to consider connection
    params when adapting (🎫`#562`).
  - `~psycopg2.errorcodes` map updated to PostgreSQL 10 beta 1.

OBS-URL: https://build.opensuse.org/request/show/515213
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=52
2017-08-08 15:57:53 +00:00
c63745970a Accepting request 509127 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/509127
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=22
2017-07-11 06:27:17 +00:00
Thomas Bechtold
d265ecf9fb Accepting request 509124 from home:jengelh:branches:devel:languages:python
- Trim filler wording from description.

OBS-URL: https://build.opensuse.org/request/show/509124
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=50
2017-07-10 10:34:52 +00:00
1001683284 Accepting request 505946 from devel:languages:python
- convert to singlespec
- update to 2.7.1
- drop doc subpackage, html docs available from http://pythonhosted.org/psycopg2/

OBS-URL: https://build.opensuse.org/request/show/505946
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=21
2017-06-25 17:24:18 +00:00
Jan Matejek
bb806b3800 - convert to singlespec
- update to 2.7.1
- drop doc subpackage, html docs available from http://pythonhosted.org/psycopg2/

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=44
2017-06-23 16:40:37 +00:00
Jan Matejek
1baa471796 Accepting request 505420 from home:bmwiedemann:branches:devel:languages:python
Do not include unneccessary undeterministic environment.pickle in package to fix build-compare

OBS-URL: https://build.opensuse.org/request/show/505420
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=43
2017-06-21 13:51:32 +00:00
57ab337dbf - update to 2.6.2:
* Fixed inconsistent state in externally closed connections (tickets #263, #311, #443).
  * Report the server response status on errors (such as ticket #281).
  * Raise NotSupportedError on unhandled server response status (ticket #352).
  * Allow overriding string adapter encoding with no connection (ticket #331).
  * The wait_select callback allows interrupting a long-running query in an interactive shell using Ctrl-C (ticket #333).
  * Fixed PersistentConnectionPool on Python 3 (ticket #348).
  * Fixed segfault on repr() of an uninitialized connection (ticket #361).
  * Allow adapting bytes using QuotedString on Python 3 (ticket #365).
  * Added support for setuptools/wheel (ticket #370).
  * Fix build on Windows with Python 3.5, VS 2015 (ticket #380).
  * Fixed errorcodes.lookup initialization thread-safety (ticket #382).
  * Fixed read() exception propagation in copy_from (ticket #412).
  * Fixed possible NULL TZ decref (ticket #424).
  * errorcodes map updated to PostgreSQL 9.5.
  * Lists consisting of only None are escaped correctly (ticket #285).
  * Fixed deadlock in multithread programs using OpenSSL (ticket #290).
  * Correctly unlock the connection after error in flush (ticket #294).
  * Fixed MinTimeLoggingCursor.callproc() (ticket #309).
  * Added support for MSVC 2015 compiler (ticket #350).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=42
2016-11-14 14:07:56 +00:00
7a6a183926 Accepting request 369540 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/369540
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=20
2016-03-16 09:34:59 +00:00
2e90848a28 Accepting request 369033 from home:bmwiedemann:branches:devel:languages:python
use the year from source gzip header instead of current one
  to make reproducible rpms

OBS-URL: https://build.opensuse.org/request/show/369033
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=41
2016-03-10 11:03:38 +00:00
fabd67566e Accepting request 287551 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/287551
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=19
2015-02-25 01:18:16 +00:00
6758bf09ee Accepting request 287547 from home:tbechtold:branches:devel:languages:python
New upstream release

OBS-URL: https://build.opensuse.org/request/show/287547
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=40
2015-02-24 15:28:39 +00:00
Stephan Kulow
e2fa249b6e Accepting request 213773 from devel:languages:python
- update to 2.5.2:
  - Fixed segfault pickling the exception raised on connection error
  - Meaningful connection errors report a meaningful message
  - Manually creating `lobject` with the wrong parameter doesn't segfault (forwarded request 213708 from dirkmueller)

OBS-URL: https://build.opensuse.org/request/show/213773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=17
2014-01-17 15:14:36 +00:00
Denisart Benjamin
6a77ce5723 Accepting request 213708 from Cloud:OpenStack:Master
- update to 2.5.2:
  - Fixed segfault pickling the exception raised on connection error
  - Meaningful connection errors report a meaningful message
  - Manually creating `lobject` with the wrong parameter doesn't segfault

OBS-URL: https://build.opensuse.org/request/show/213708
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=39
2014-01-13 17:23:55 +00:00
Stephan Kulow
3acc868fef Accepting request 180872 from devel:languages:python
- update to 2.5.1:
 - Fixed build on Solaris 10 and 11 where the round() function is already
   declared (🎫`#146`).
 - Fixed comparison of `Range` with non-range objects (🎫`#164`).
   Thanks to Chris Withers for the patch.
 - Fixed double-free on connection dealloc (🎫`#166`). Thanks to
   Gangadharan S.A. for the report and fix suggestion. (forwarded request 180856 from dirkmueller)

OBS-URL: https://build.opensuse.org/request/show/180872
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=15
2013-06-29 12:33:44 +00:00
Sascha Peilicke
d7dd055b98 Accepting request 180856 from home:dirkmueller:branches:devel:languages:python
- update to 2.5.1:
 - Fixed build on Solaris 10 and 11 where the round() function is already
   declared (🎫`#146`).
 - Fixed comparison of `Range` with non-range objects (🎫`#164`).
   Thanks to Chris Withers for the patch.
 - Fixed double-free on connection dealloc (🎫`#166`). Thanks to
   Gangadharan S.A. for the report and fix suggestion.

OBS-URL: https://build.opensuse.org/request/show/180856
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=38
2013-06-25 12:20:06 +00:00
Stephan Kulow
048696267e Accepting request 179936 from devel:languages:python
housekeeping sr, necessary due to split between d:l:p and d:l:p3 and (manual) _link removal in Factory.

OBS-URL: https://build.opensuse.org/request/show/179936
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=14
2013-06-19 14:45:34 +00:00
Sascha Peilicke
c27618e517 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
Stephan Kulow
3ea3a66992 Accepting request 173096 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/173096
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=13
2013-04-24 14:11:46 +00:00
9dd0393543 - 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
Stephan Kulow
cfda840682 Accepting request 142781 from devel:languages:python
Removed openSUSE 11.4 spec file workarounds (forwarded request 142750 from TheBlackCat) (forwarded request 142768 from TheBlackCat)

OBS-URL: https://build.opensuse.org/request/show/142781
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=11
2012-11-28 13:33:58 +00:00
Todd R
87aa99aa7a 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
Stephan Kulow
acbbe639b5 Accepting request 122421 from 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 (forwarded request 122403 from babelworx)

OBS-URL: https://build.opensuse.org/request/show/122421
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=9
2012-05-29 09:44:50 +00:00
Todd R
7e44d27e3a 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
683e8aafc3 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
Stephan Kulow
f2859daf4e Accepting request 113770 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/113770
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=8
2012-04-17 05:49:03 +00:00
4df5df58dd - 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
6a4fdc4acc - 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
Stephan Kulow
97f40fb07d Accepting request 109033 from devel:languages:python
- Simplify macro usage
- Remove outdated SUSE version checks

OBS-URL: https://build.opensuse.org/request/show/109033
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=7
2012-03-13 08:38:55 +00:00
Sascha Peilicke
726e886b27 - 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
Stephan Kulow
d45e176675 Accepting request 104796 from devel:languages:python
patch license to follow spdx.org standard (forwarded request 104494 from coolo)

OBS-URL: https://build.opensuse.org/request/show/104796
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=6
2012-02-16 09:09:14 +00:00
c5473c2619 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
02832016cb - 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
9ead5aefab Accepting request 84195 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/84195
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=3
2011-09-22 08:51:44 +00:00
Sascha Peilicke
19d96d3eb0 - 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
96993fcec3 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
1efbf50c8d 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
7dca1725a7 - 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
de567a60c0 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
5eb7b73064 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
0687e0fc3a 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
4 changed files with 709 additions and 49 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31874c7cb0de8d88498b5c9f576fcbd7a64f6b3f9cd8c346eed5d7201429dd82
size 416652

BIN
psycopg2-2.9.10.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,656 @@
-------------------------------------------------------------------
Thu Apr 10 12:25:48 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.9.10
* Add support for Python 3.13.
* Receive notifications on commit (ticket #1728).
* Errorcodes map and errors classes updated to PostgreSQL 17.
* Drop support for Python 3.7.
- Drop support-python-313.patch, merged upstream
-------------------------------------------------------------------
Tue Oct 29 05:08:18 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Drop patch py313-tests.patch, included in:
- Add patch support-python-313.patch:
* Support Python 3.13.
-------------------------------------------------------------------
Mon Oct 28 21:56:17 UTC 2024 - Dirk Müller <dmueller@suse.com>
- add py313-tests.patch
-------------------------------------------------------------------
Wed Jan 3 10:10:03 UTC 2024 - Dirk Müller <dmueller@suse.com>
- require setuptools
-------------------------------------------------------------------
Tue Nov 28 21:39:17 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2.9.9:
* Add support for Python 3.12.
* Drop support for Python 3.6.
* Wheel package bundled with PostgreSQL 16 libpq in order to
add support for recent features, such as ``sslcertmode``.
-------------------------------------------------------------------
Thu Sep 7 11:08:36 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2.9.7:
* Fix propagation of exceptions raised during module
initialization
* Fix building when pg_config returns an empty string
-------------------------------------------------------------------
Fri Apr 21 12:30:00 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:43:24 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Mon Apr 3 19:55:26 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2.9.6:
* Package manylinux 2014 for aarch64 and ppc64le platforms, in
order to include libpq 15 in the binary package (:ticket:`#1396`).
* Wheel package compiled against OpenSSL 1.1.1t.
-------------------------------------------------------------------
Fri Oct 28 19:56:31 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 2.9.5
* Add support for Python 3.11.
* Add support for rowcount in MERGE statements in binary packages
(ticket`#1497`).
* Wheel package compiled against OpenSSL 1.1.1r and PostgreSQL 15 libpq.
- Update to 2.9.4
* Fix `~psycopg2.extras.register_composite()`,
`~psycopg2.extras.register_range()` with customized search_path
(ticket`#1487`).
* Handle correctly composite types with names or in schemas requiring escape.
* Find ``pg_service.conf file in the ``/etc/postgresql-common`` directory in
binary packages (ticket`1365`).
* `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
PostgreSQL 15.
* Wheel package compiled against OpenSSL 1.1.1q and PostgreSQL 14.4
-------------------------------------------------------------------
Thu Dec 30 09:54:04 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 2.9.3:
* Alpine (musl) wheels now available
-------------------------------------------------------------------
Mon Nov 29 10:57:15 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 2.9.2:
* Raise `ValueError` for dates >= Y10k (:ticket:`#1307`).
* `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
PostgreSQL 14.
* Add preliminary support for Python 3.11 (:tickets:`#1376, #1386`).
* Wheel package compiled against OpenSSL 1.1.1l and PostgreSQL 14.1
-------------------------------------------------------------------
Tue Oct 12 10:07:48 UTC 2021 - ecsos <ecsos@opensuse.org>
- Update to 2.9.1
- Fix regression with named `sql.Placeholder` (:ticket:`1291`).
- Update to 2.9.0
- ``with connection`` starts a transaction on autocommit transactions too
(:ticket:`#941`).
- Timezones with fractional minutes are supported on Python 3.7 and following
(:ticket:`#1272`).
- Escape table and column names in `~cursor.copy_from()` and `~cursor.copy_to()`.
- Connection exceptions with sqlstate ``08XXX`` reclassified as
`~psycopg2.OperationalError` (a subclass of the previously used
`~psycopg2.DatabaseError`) (:ticket:`#1148`).
- Include library dirs required from libpq to work around MacOS build problems
(:ticket:`#1200`).
- Dropped support for Python 2.7, 3.4, 3.5 (:ticket:`#1198, #1000, #1197`).
- Dropped support for mx.DateTime.
- Use `datetime.timezone` objects by default in datetime objects instead of
`~psycopg2.tz.FixedOffsetTimezone`.
- The `psycopg2.tz` module is deprecated and scheduled to be dropped in the
next major release.
- Provide :pep:`599` wheels packages (manylinux2014 tag) for i686 and x86_64
platforms.
- Provide :pep:`600` wheels packages (manylinux_2_24 tag) for aarch64 and
ppc64le platforms.
- Wheel package compiled against OpenSSL 1.1.1k and PostgreSQL 13.3.
- Build system for Linux/MacOS binary packages moved to GitHub action.
-------------------------------------------------------------------
Wed Sep 16 21:18:19 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 2.8.6:
* Fixed memory leak changing connection encoding to the current one
* Fixed search of mxDateTime headers in virtualenvs (:ticket:`#996`).
* Added missing values from errorcodes (:ticket:`#1133`).
* `cursor.query` reports the query of the last :sql:`COPY` opearation too
* `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to PostgreSQL 13.
* Added wheel packages for ARM architecture (:ticket:`#1125`).
* Wheel package compiled against OpenSSL 1.1.1g.
-------------------------------------------------------------------
Tue May 19 06:16:56 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Sort out the syntax of the deps bsc#1171213
-------------------------------------------------------------------
Thu Apr 23 16:13:29 UTC 2020 - Marcus Rueckert <mrueckert@suse.de>
- update to 2.8.5
- Fixed use of connection_factory and cursor_factory together
(ticket #1019).
- Added support for logging.LoggerAdapter in LoggingConnection
(ticket #1026).
- Column objects in cursor.description can be sliced (ticket
#1034).
- Added AIX support (ticket #1061).
- Fixed copy() of DictCursor rows (ticket #1073).
-------------------------------------------------------------------
Thu Mar 19 08:19:57 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
- fix postgresql build dependency: pg_config is in postgresql-server-devel (bsc#1167541)
-------------------------------------------------------------------
Fri Feb 28 21:49:40 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 2.8.4:
- Fixed building with Python 3.8 (:ticket:`#854`).
- Don't swallow keyboard interrupts on connect when a password is specified
in the connection string (:ticket:`#898`).
- Don't advance replication cursor when the message wasn't confirmed
(:ticket:`#940`).
- Fixed inclusion of ``time.h`` on linux (:ticket:`#951`).
- Fixed int overflow for large values in `~psycopg2.extensions.Column.table_oid`
and `~psycopg2.extensions.Column.type_code` (:ticket:`#961`).
- `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
PostgreSQL 12.
- Wheel package compiled against OpenSSL 1.1.1d and PostgreSQL at least 11.4.
-------------------------------------------------------------------
Mon Oct 14 14:14:29 UTC 2019 - Matej Cepl <mcepl@suse.com>
- Replace %fdupes -s with plain %fdupes; hardlinks are better.
-------------------------------------------------------------------
Thu Jul 4 15:02:11 UTC 2019 - Daniel Molkentin <daniel.molkentin@suse.com>
- Update to 2.8.4
* Added interval_status parameter to start_replication() method and other
facilities to send automatic replication keepalives at periodic intervals
(ticket #913).
* Fixed namedtuples caching introduced in 2.8 (ticket #928).
-------------------------------------------------------------------
Tue Jun 4 15:36:23 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- Update to 2.8.3
* Added interval_status parameter to start_replication() method
and other facilities to send automatic replication keepalives
at periodic intervals
* Fixed RealDictCursor when there are repeated columns
* Fixed RealDictRow modifiability
* Fixed “theres no async cursor” error polling a connection with
no cursor
2.8.0
* Added errors module. Every PostgreSQL error is converted into
a specific exception class
* Added encrypt_password() function
* Added BYTES adapter to manage databases with mixed encodings on
Python 3
* Added table_oid and table_column attributes on cursor.description
items
* Added connection.info object to retrieve various PostgreSQL
connection information
* str() on Range produces a human-readable representation
* Fixed async communication blocking if results are returned in
different chunks
* Fixed adaptation of numeric subclasses such as IntEnum
* Dropped support for Python 2.6, 3.2, 3.3.
* Dropped deprecated register_tstz_w_secs()
* Dropped deprecated PersistentConnectionPool. Use
ZPsycopgDA.pool instead.
* Binary packages no longer installed by default. The
psycopg2-binary package must be used explicitly.
* Dropped PSYCOPG_DISPLAY_SIZE build parameter.
-------------------------------------------------------------------
Tue Apr 2 16:43:30 UTC 2019 - Todd R <toddrme2178@gmail.com>
- Requires postgresql-server-devel on Factory now.
-------------------------------------------------------------------
Mon Mar 4 12:13:19 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 2.7.7:
* Cleanup of the cursor results assignment code, which might have solved
double free and inconsistencies in concurrent usage (:tickets:`#346, #384`).
* Close named cursors if exist, even if execute() wasn't called (ticket #746).
* Fixed building on modern FreeBSD versions with Python 3.7 (ticket #755).
* Fixed hang trying to COPY via execute() in asynchronous connections (ticket #781).
* Fixed adaptation of arrays of empty arrays (ticket #788).
* Fixed segfault accessing the connection.readonly and connection.deferrable attributes repeatedly (ticket #790).
* execute_values() accepts sql.Composable objects (ticket #794).
* errorcodes map updated to PostgreSQL 11.
* Allow non-ascii chars in namedtuple fields (regression introduced fixing ticket #211).
* Fixed adaptation of arrays of arrays of nulls (ticket #325).
* Fixed building on Solaris 11 and derivatives such as SmartOS and illumos (ticket #677).
* Maybe fixed building on MSYS2 (as reported in ticket #658).
* Allow string subclasses in connection and other places (ticket #679).
* Don't raise an exception closing an unused named cursor (ticket #716).
-------------------------------------------------------------------
Wed Mar 7 14:03:13 UTC 2018 - aplanas@suse.com
- Allows Recommends and Suggest in Fedora
-------------------------------------------------------------------
Tue Feb 27 17:55:42 UTC 2018 - aplanas@suse.com
- Suggests only for SUSE
-------------------------------------------------------------------
Thu Feb 22 10:31:09 UTC 2018 - sebix+novell.com@sebix.at
- update to version 2.7.4:
- Moving away from installing the wheel package by default.
Packages installed from wheel raise a warning on import. Added package
``psycopg2-binary`` to install from wheel instead (:ticket:`#543`).
- Convert fields names into valid Python identifiers in
`~psycopg2.extras.NamedTupleCursor` (:ticket:`#211`).
- Fixed Solaris 10 support (:ticket:`#532`).
- `cursor.mogrify()` can be called on closed cursors (:ticket:`#579`).
- Fixed setting session characteristics in corner cases on autocommit
connections (:ticket:`#580`).
- Fixed `~psycopg2.extras.MinTimeLoggingCursor` on Python 3 (:ticket:`#609`).
- Fixed parsing of array of points as floats (:ticket:`#613`).
- Fixed `~psycopg2.__libpq_version__` building with libpq >= 10.1
(:ticket:`632`).
- Fixed `~cursor.rowcount` after `~cursor.executemany()` with :sql:`RETURNING`
statements (:ticket:`633`).
- Fixed compatibility problem with pypy3 (:ticket:`#649`).
- Wheel packages compiled against PostgreSQL 10.1 libpq and OpenSSL 1.0.2n.
- Wheel packages for Python 2.6 no more available (support dropped from
wheel building infrastructure).
- update to version 2.7.3.2:
- not relevant
- update to version 2.7.3.1:
- not relevant
-------------------------------------------------------------------
Tue Aug 8 15:42:47 UTC 2017 - tbechtold@suse.com
- update version to 2.7.3:
- Restored default :sql:`timestamptz[]` typecasting to Python `!datetime`.
Regression introduced in Psycopg 2.7.2 (:ticket:`#578`).
- Fixed inconsistent state in externally closed connections
(:tickets:`#263, #311, #443`). Was fixed in 2.6.2 but not included in
2.7 by mistake.
- Fixed Python exceptions propagation in green callback (:ticket:`#410`).
- Don't display the password in `connection.dsn` when the connection
string is specified as an URI (:ticket:`#528`).
- Return objects with timezone parsing "infinity" :sql:`timestamptz`
(:ticket:`#536`).
- Dropped dependency on VC9 runtime on Windows binary packages
(:ticket:`#541`).
- Fixed segfault in `~connection.lobject()` when *mode*\=\ `!None`
(:ticket:`#544`).
- Fixed `~connection.lobject()` keyword argument *lobject_factory*
(:ticket:`#545`).
- Fixed `~psycopg2.extras.ReplicationCursor.consume_stream()`
*keepalive_interval* argument (:ticket:`#547`).
- Maybe fixed random import error on Python 3.6 in multiprocess
environment (:ticket:`#550`).
- Fixed random `!SystemError` upon receiving abort signal (:ticket:`#551`).
- Accept `~psycopg2.sql.Composable` objects in
`~psycopg2.extras.ReplicationCursor.start_replication_expert()`
(:ticket:`554`).
- Parse intervals returned as microseconds from Redshift (:ticket:`#558`).
- Added `~psycopg2.extras.Json` `!prepare()` method to consider connection
params when adapting (:ticket:`#562`).
- `~psycopg2.errorcodes` map updated to PostgreSQL 10 beta 1.
-------------------------------------------------------------------
Mon Jul 10 10:07:07 UTC 2017 - jengelh@inai.de
- Trim filler wording from description.
-------------------------------------------------------------------
Fri Jun 23 16:26:18 UTC 2017 - jmatejek@suse.com
- convert to singlespec
- update to 2.7.1
* Added sql module to generate SQL dynamically (ticket #308).
* Added Replication protocol support (ticket #322). Main authors are
Oleksandr Shulgin and Craig Ringer, who deserve a huge thank you.
* Added parse_dsn() and make_dsn() functions (tickets #321, #363). connect()
now can take both dsn and keyword arguments, merging them together.
* Added __libpq_version__ and libpq_version() to inspect the version of the
libpq library the module was compiled/loaded with (tickets #35, #323).
* The attributes notices and notifies can be customized replacing them with
any object exposing an append() method (ticket #326).
* Adapt network types to ipaddress objects when available. When not enabled,
convert arrays of network types to lists by default. The old Inet adapter is
deprecated (tickets #317, #343, #387).
* Added quote_ident() function (ticket #359).
* Added get_dsn_parameters() connection method (ticket #364).
* callproc() now accepts a dictionary of parameters (ticket #381).
* Give precedence to __conform__() over superclasses to choose an object
adapter (ticket #456).
* Using Python C API decoding functions and codecs caching for faster
unicode encoding/decoding (ticket #473).
* executemany() slowness addressed by execute_batch() and execute_values()
(ticket #491).
* Added async_ as an alias for async to support Python 3.7 where async will
become a keyword (ticket #495).
* Unless in autocommit, do not use default_transaction_* settings to control
the session characteristics as it may create problems with external
connection pools such as pgbouncer; use BEGIN options instead (ticket #503).
* isolation_level is now writable and entirely separated from autocommit;
added readonly, deferrable writable attributes.
* dropped support for python 2.5 and postgres client library < 9.1
* many bugs fixed
- drop doc subpackage, html docs available from http://pythonhosted.org/psycopg2/
-------------------------------------------------------------------
Wed Jun 21 13:44:46 UTC 2017 - bwiedemann@suse.com
- Do not include unneccessary undeterministic environment.pickle in package to fix build-compare
-------------------------------------------------------------------
Mon Nov 14 14:06:11 UTC 2016 - dmueller@suse.com
- update to 2.6.2:
* Fixed inconsistent state in externally closed connections (tickets #263, #311, #443).
* Report the server response status on errors (such as ticket #281).
* Raise NotSupportedError on unhandled server response status (ticket #352).
* Allow overriding string adapter encoding with no connection (ticket #331).
* The wait_select callback allows interrupting a long-running query in an interactive shell using Ctrl-C (ticket #333).
* Fixed PersistentConnectionPool on Python 3 (ticket #348).
* Fixed segfault on repr() of an uninitialized connection (ticket #361).
* Allow adapting bytes using QuotedString on Python 3 (ticket #365).
* Added support for setuptools/wheel (ticket #370).
* Fix build on Windows with Python 3.5, VS 2015 (ticket #380).
* Fixed errorcodes.lookup initialization thread-safety (ticket #382).
* Fixed read() exception propagation in copy_from (ticket #412).
* Fixed possible NULL TZ decref (ticket #424).
* errorcodes map updated to PostgreSQL 9.5.
* Lists consisting of only None are escaped correctly (ticket #285).
* Fixed deadlock in multithread programs using OpenSSL (ticket #290).
* Correctly unlock the connection after error in flush (ticket #294).
* Fixed MinTimeLoggingCursor.callproc() (ticket #309).
* Added support for MSVC 2015 compiler (ticket #350).
-------------------------------------------------------------------
Wed Mar 9 10:29:20 UTC 2016 - bwiedemann@suse.com
- use the year from source gzip header instead of current one
to make reproducible rpms
-------------------------------------------------------------------
Tue Feb 24 14:52:53 UTC 2015 - tbechtold@suse.com
- update to version 2.6:
- Added support for large objects larger than 2GB. Many thanks to Blake Rouse
and the MAAS Team for the feature development.
- Python `time` objects with a tzinfo specified and PostgreSQL :sql:`timetz`
data are converted into each other (:ticket:`#272`).
- Json apapter's `!str()` returns the adapted content instead of the `!repr()`
(:ticket:`#191`).
- Named cursors used as context manager don't swallow the exception on exit
(:ticket:`#262`).
- `cursor.description` can be pickled (:ticket:`#265`).
- Propagate read error messages in COPY FROM (:ticket:`#270`).
- PostgreSQL time 24:00 is converted to Python 00:00 (:ticket:`#278`).
- Added :sql:`jsonb` support for PostgreSQL 9.4 (:ticket:`#226`).
- Fixed segfault if COPY statements are passed to `~cursor.execute()` instead
of using the proper methods (:ticket:`#219`).
- Force conversion of pool arguments to integer to avoid potentially unbounded
pools (:ticket:`#220`).
- Cursors :sql:`WITH HOLD` don't begin a new transaction upon move/fetch/close
(:ticket:`#228`).
- Cursors :sql:`WITH HOLD` can be used in autocommit (:ticket:`#229`).
- `~cursor.callproc()` doesn't silently ignore an argument without a length.
- Fixed memory leak with large objects (:ticket:`#256`).
- Make sure the internal ``_psycopg.so`` module can be imported stand-alone (to
allow modules juggling such as the one described in :ticket:`#201`).
- Work around `pip issue #1630 <https://github.com/pypa/pip/issues/1630>`__
making installation via ``pip -e git+url`` impossible (:ticket:`#18`).
- Copy operations correctly set the `cursor.rowcount` attribute
(:ticket:`#180`).
- It is now possible to call `get_transaction_status()` on closed connections.
- Fixed unsafe access to object names causing assertion failures in
Python 3 debug builds (:ticket:`#188`).
- Mark the connection closed if found broken on `poll()` (from :ticket:`#192`
discussion)
- Fixed handling of dsn and closed attributes in connection subclasses
failing to connect (from :ticket:`#192` discussion).
- Added arbitrary but stable order to `Range` objects, thanks to
Chris Withers (:ticket:`#193`).
- Avoid blocking async connections on connect (:ticket:`#194`). Thanks to
Adam Petrovich for the bug report and diagnosis.
- Don't segfault using poorly defined cursor subclasses which forgot to call
the superclass init (:ticket:`#195`).
- Mark the connection closed when a Socket connection is broken, as it
happens for TCP connections instead (:ticket:`#196`).
- Fixed overflow opening a lobject with an oid not fitting in a signed int
(:ticket:`#203`).
- Fixed handling of explicit default ``cursor_factory=None`` in
`connection.cursor()` (:ticket:`#210`).
- Fixed possible segfault in named cursors creation.
- Fixed debug build on Windows, thanks to James Emerton.
- Add python-Sphinx as BuilrRequires to build documenation. Also adjust
the build process for html docs.
-------------------------------------------------------------------
Mon Jan 13 13:29:56 UTC 2014 - dmueller@suse.com
- update to 2.5.2:
- Fixed segfault pickling the exception raised on connection error
- Meaningful connection errors report a meaningful message
- Manually creating `lobject` with the wrong parameter doesn't segfault
-------------------------------------------------------------------
Tue Jun 25 11:41:28 UTC 2013 - dmueller@suse.com
- update to 2.5.1:
- Fixed build on Solaris 10 and 11 where the round() function is already
declared (:ticket:`#146`).
- Fixed comparison of `Range` with non-range objects (:ticket:`#164`).
Thanks to Chris Withers for the patch.
- Fixed double-free on connection dealloc (:ticket:`#166`). Thanks to
Gangadharan S.A. for the report and fix suggestion.
-------------------------------------------------------------------
Tue Apr 16 18:05:47 UTC 2013 - jfunk@funktronics.ca
- 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
invoking a Python API function, which could cause interpreter crash.
Thanks to Manu Cupcic for the report (ticket #110).
- Close a green connection if there is an error in the callback. Maybe a
harsh solution but it leaves the program responsive (ticket #113).
- 'register_hstore()', 'register_composite()', 'tpc_recover()' work with
RealDictConnection and Cursor (ticket #114).
- Fixed broken pool for Zope and connections re-init across ZSQL methods in
the same request (tickets #123, #125, #142).
- connect() raises an exception instead of swallowing keyword arguments when
a connection string is specified as well (ticket #131).
- Discard any result produced by 'executemany()' (ticket #133).
- Fixed pickling of FixedOffsetTimezone objects (ticket #135).
- Release the GIL around PQgetResult calls after COPY (ticket #140).
- Fixed empty strings handling in composite caster (ticket #141).
- Fixed pickling of DictRow and RealDictRow objects.
-------------------------------------------------------------------
Fri May 25 14:07:21 UTC 2012 - cfarrell@suse.com
- 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
-------------------------------------------------------------------
Fri May 25 05:32:01 UTC 2012 - highwaystar.ru@gmail.com
- python3 package added
- minor spec improvement
-------------------------------------------------------------------
Fri Apr 6 19:05:14 UTC 2012 - jfunk@funktronics.ca
- 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.
-------------------------------------------------------------------
Tue Mar 27 09:27:25 UTC 2012 - saschpe@suse.de
- Can't hurt to suggest postgresql-server
-------------------------------------------------------------------
Mon Mar 12 21:10:27 UTC 2012 - saschpe@gmx.de
- Simplify macro usage
- Remove outdated SUSE version checks
-------------------------------------------------------------------
Mon Feb 13 10:54:08 UTC 2012 - coolo@suse.com
- patch license to follow spdx.org standard
-------------------------------------------------------------------
Thu Jan 12 21:53:36 UTC 2012 - jfunk@funktronics.ca
- 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.
-------------------------------------------------------------------
Wed Sep 21 13:43:29 UTC 2011 - saschpe@suse.de
- 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
-------------------------------------------------------------------
Mon Feb 28 07:52:40 UTC 2011 - saschpe@suse.de
- 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.
-------------------------------------------------------------------
Tue Dec 27 15:01:00 UTC 2010 - elchevive@opensuse.org
- Update to version 2.3.2
-------------------------------------------------------------------
Wed Oct 27 02:43:22 UTC 2010 - termim@gmail.com
@@ -6,8 +659,8 @@ Wed Oct 27 02:43:22 UTC 2010 - termim@gmail.com
* 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
* 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.
@@ -65,7 +718,7 @@ Wed Nov 5 11:57:40 CET 2008 - poeml@suse.de
Wed Jun 13 07:56:02 UTC 2007 - judas_iscariote@shorewall.net
- Update to version 2.0.6 see http://initd.org/pub/software/psycopg/ChangeLog
for details.
for details.
-------------------------------------------------------------------
Wed Oct 19 00:00:00 UTC 2005 - jfunk@funktronics.ca

View File

@@ -1,5 +1,7 @@
#
# spec file for package python
# spec file for package python-psycopg2
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -10,61 +12,66 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define modname psycopg2
%{?sle15_python_module_pythons}
Name: python-psycopg2
Summary: A PostgreSQL database adapter for Python
Version: 2.2.2
Release: 1
Url: http://initd.org/tracker/psycopg
License: GPL with exceptions or ZPL
Group: Development/Languages/Python
Source: %{modname}-%{version}.tar.bz2
%{py_requires}
BuildRequires: postgresql-devel python-devel >= 2.4 dos2unix
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#Vendor: Federico Di Gregorio <fog@initd.org>
Version: 2.9.10
Release: 0
Summary: Python-PostgreSQL Database Adapter
License: LGPL-3.0-or-later AND (LGPL-3.0-or-later OR ZPL-2.0) AND SUSE-GPL-2.0-with-openssl-exception
URL: https://www.psycopg.org/
Source: https://files.pythonhosted.org/packages/source/p/psycopg2/psycopg2-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# newer postgresql packages pg_config in -server-devel
%if 0%{?sle_version} > 150100 || 0%{?suse_version} > 1500
BuildRequires: postgresql-server-devel >= 15
%else
BuildRequires: postgresql-devel >= 15
%endif
%if 0%{?suse_version} || 0%{?fedora_version} >= 24
Suggests: postgresql-server
%endif
%python_subpackages
%description
psycopg is a PostgreSQL database adapter for the Python programming language.
This is version 2, a complete rewrite of the original code to provide
new-style classes for connection and cursor objects and other sweet candies.
Like the original, psycopg 2 was written with the aim of being very small and
fast, and stable as a rock.
psycopg is different from the other database adapter because it was designed
for heavily multi-threaded applications that create and destroy lots of
cursors and make a conspicuous number of concurrent INSERTs or UPDATEs.
psycopg 2 also provide full asycronous operations for the really brave
programmer.
Authors:
--------
Federico Di Gregorio <fog@initd.org>
psycopg2 is a PostgreSQL database adapter for the Python programming
language.
psycopg2 is different from the other database adapter because it was
designed for heavily multi-threaded applications that create and destroy
lots of cursors and make a conspicuous number of concurrent INSERTs or
UPDATEs. psycopg2 also provide asychronous operations and support
for coroutine libraries.
%prep
%setup -q -n %{modname}-%{version}
%autosetup -p1 -n psycopg2-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%{__python} setup.py build
%{__rm} -rf doc/src
export CFLAGS="%{optflags} -fno-strict-aliasing"
%pyproject_wheel
%install
%{__python} setup.py install \
--prefix=%{_prefix} \
--root=$RPM_BUILD_ROOT \
--record-rpm=INSTALLED_FILES \
--optimize=2
%pyproject_install
%python_expand rm -rf %{buildroot}%{$python_sitearch}/psycopg2/tests # Don't package testsuite
%fdupes %{buildroot}/%{_mandir} # Create symlinks for man pages
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%clean
rm -rf %{buildroot}
%check
# tests require running PGSQL
#%%python_expand PYTHONPATH=%%{buildroot}%%{$python_sitearch} $python -m unittest discover
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc doc examples AUTHORS ChangeLog PKG-INFO README
%files %{python_files}
%license LICENSE
%doc AUTHORS NEWS README.rst
%{python_sitearch}/psycopg2/
%{python_sitearch}/psycopg2-%{version}.dist-info
%changelog