psycopg 3.2.2__tar.gz → 3.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. {psycopg-3.2.2 → psycopg-3.2.3}/PKG-INFO +3 -3
  2. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_oids.py +1 -1
  3. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/errors.py +4 -0
  4. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/postgres.py +1 -1
  5. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/pq/_enums.py +4 -1
  6. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/pq/misc.py +2 -0
  7. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg.egg-info/PKG-INFO +3 -3
  8. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg.egg-info/requires.txt +2 -2
  9. {psycopg-3.2.2 → psycopg-3.2.3}/setup.cfg +3 -3
  10. {psycopg-3.2.2 → psycopg-3.2.3}/LICENSE.txt +0 -0
  11. {psycopg-3.2.2 → psycopg-3.2.3}/README.rst +0 -0
  12. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/__init__.py +0 -0
  13. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_acompat.py +0 -0
  14. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_adapters_map.py +0 -0
  15. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_capabilities.py +0 -0
  16. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_cmodule.py +0 -0
  17. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_column.py +0 -0
  18. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_compat.py +0 -0
  19. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_connection_base.py +0 -0
  20. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_connection_info.py +0 -0
  21. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_conninfo_attempts.py +0 -0
  22. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_conninfo_attempts_async.py +0 -0
  23. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_conninfo_utils.py +0 -0
  24. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_copy.py +0 -0
  25. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_copy_async.py +0 -0
  26. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_copy_base.py +0 -0
  27. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_cursor_base.py +0 -0
  28. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_dns.py +0 -0
  29. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_encodings.py +0 -0
  30. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_enums.py +0 -0
  31. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_pipeline.py +0 -0
  32. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_preparing.py +0 -0
  33. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_py_transformer.py +0 -0
  34. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_queries.py +0 -0
  35. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_struct.py +0 -0
  36. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_tpc.py +0 -0
  37. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_transformer.py +0 -0
  38. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_typeinfo.py +0 -0
  39. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_typemod.py +0 -0
  40. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_tz.py +0 -0
  41. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/_wrappers.py +0 -0
  42. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/abc.py +0 -0
  43. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/adapt.py +0 -0
  44. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/client_cursor.py +0 -0
  45. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/connection.py +0 -0
  46. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/connection_async.py +0 -0
  47. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/conninfo.py +0 -0
  48. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/copy.py +0 -0
  49. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/crdb/__init__.py +0 -0
  50. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/crdb/_types.py +0 -0
  51. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/crdb/connection.py +0 -0
  52. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/cursor.py +0 -0
  53. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/cursor_async.py +0 -0
  54. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/dbapi20.py +0 -0
  55. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/generators.py +0 -0
  56. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/pq/__init__.py +0 -0
  57. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/pq/_debug.py +0 -0
  58. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/pq/_pq_ctypes.py +0 -0
  59. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/pq/_pq_ctypes.pyi +0 -0
  60. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/pq/abc.py +0 -0
  61. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/pq/pq_ctypes.py +0 -0
  62. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/py.typed +0 -0
  63. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/raw_cursor.py +0 -0
  64. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/rows.py +0 -0
  65. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/server_cursor.py +0 -0
  66. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/sql.py +0 -0
  67. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/transaction.py +0 -0
  68. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/__init__.py +0 -0
  69. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/array.py +0 -0
  70. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/bool.py +0 -0
  71. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/composite.py +0 -0
  72. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/datetime.py +0 -0
  73. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/enum.py +0 -0
  74. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/hstore.py +0 -0
  75. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/json.py +0 -0
  76. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/multirange.py +0 -0
  77. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/net.py +0 -0
  78. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/none.py +0 -0
  79. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/numeric.py +0 -0
  80. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/numpy.py +0 -0
  81. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/range.py +0 -0
  82. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/shapely.py +0 -0
  83. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/string.py +0 -0
  84. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/types/uuid.py +0 -0
  85. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/version.py +0 -0
  86. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg/waiting.py +0 -0
  87. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg.egg-info/SOURCES.txt +0 -0
  88. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg.egg-info/dependency_links.txt +0 -0
  89. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg.egg-info/not-zip-safe +0 -0
  90. {psycopg-3.2.2 → psycopg-3.2.3}/psycopg.egg-info/top_level.txt +0 -0
  91. {psycopg-3.2.2 → psycopg-3.2.3}/pyproject.toml +0 -0
  92. {psycopg-3.2.2 → psycopg-3.2.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: psycopg
3
- Version: 3.2.2
3
+ Version: 3.2.3
4
4
  Summary: PostgreSQL database adapter for Python
5
5
  Home-page: https://psycopg.org/psycopg3/
6
6
  Author: Daniele Varrazzo
@@ -38,9 +38,9 @@ Requires-Dist: backports.zoneinfo>=0.2.0; python_version < "3.9"
38
38
  Requires-Dist: typing-extensions>=4.6; python_version < "3.13"
39
39
  Requires-Dist: tzdata; sys_platform == "win32"
40
40
  Provides-Extra: c
41
- Requires-Dist: psycopg-c==3.2.2; implementation_name != "pypy" and extra == "c"
41
+ Requires-Dist: psycopg-c==3.2.3; implementation_name != "pypy" and extra == "c"
42
42
  Provides-Extra: binary
43
- Requires-Dist: psycopg-binary==3.2.2; implementation_name != "pypy" and extra == "binary"
43
+ Requires-Dist: psycopg-binary==3.2.3; implementation_name != "pypy" and extra == "binary"
44
44
  Provides-Extra: pool
45
45
  Requires-Dist: psycopg-pool; extra == "pool"
46
46
  Provides-Extra: test
@@ -15,7 +15,7 @@ TEXT_ARRAY_OID = 1009
15
15
  # Use tools/update_oids.py to update this data.
16
16
  # autogenerated: start
17
17
 
18
- # Generated from PostgreSQL 16.2
18
+ # Generated from PostgreSQL 17.0
19
19
 
20
20
  ACLITEM_OID = 1033
21
21
  BIT_OID = 1560
@@ -1103,6 +1103,10 @@ class IdleInTransactionSessionTimeout(InternalError,
1103
1103
  code='25P03', name='IDLE_IN_TRANSACTION_SESSION_TIMEOUT'):
1104
1104
  pass
1105
1105
 
1106
+ class TransactionTimeout(InternalError,
1107
+ code='25P04', name='TRANSACTION_TIMEOUT'):
1108
+ pass
1109
+
1106
1110
 
1107
1111
  # Class 26 - Invalid SQL Statement Name
1108
1112
 
@@ -25,7 +25,7 @@ def register_default_types(types: TypesRegistry) -> None:
25
25
  for t in [
26
26
  TypeInfo('"char"', 18, 1002, typemod=CharTypeModifier),
27
27
  # autogenerated: start
28
- # Generated from PostgreSQL 16.2
28
+ # Generated from PostgreSQL 17.0
29
29
  TypeInfo("aclitem", 1033, 1034),
30
30
  TypeInfo("bit", 1560, 1561, typemod=BitTypeModifier),
31
31
  TypeInfo("bool", 16, 1000, regtype="boolean"),
@@ -6,6 +6,8 @@ libpq enum definitions for psycopg
6
6
 
7
7
  from enum import IntEnum, IntFlag, auto
8
8
 
9
+ # Check in src/interfaces/libpq/libpq-fe.h for updates.
10
+
9
11
 
10
12
  class ConnStatus(IntEnum):
11
13
  """
@@ -205,7 +207,8 @@ class DiagnosticField(IntEnum):
205
207
 
206
208
  __module__ = "psycopg.pq"
207
209
 
208
- # from postgres_ext.h
210
+ # from src/include/postgres_ext.h
211
+
209
212
  SEVERITY = ord("S")
210
213
  SEVERITY_NONLOCALIZED = ord("V")
211
214
  SQLSTATE = ord("C")
@@ -12,6 +12,7 @@ import sys
12
12
  import logging
13
13
  import ctypes.util
14
14
  from typing import NamedTuple
15
+ from pathlib import Path
15
16
 
16
17
  from . import abc
17
18
  from ._enums import ConnStatus, TransactionStatus, PipelineStatus
@@ -52,6 +53,7 @@ class PGresAttDesc(NamedTuple):
52
53
  def find_libpq_full_path() -> str | None:
53
54
  if sys.platform == "win32":
54
55
  libname = ctypes.util.find_library("libpq.dll")
56
+ libname = str(Path(libname).resolve())
55
57
 
56
58
  elif sys.platform == "darwin":
57
59
  libname = ctypes.util.find_library("libpq.dylib")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: psycopg
3
- Version: 3.2.2
3
+ Version: 3.2.3
4
4
  Summary: PostgreSQL database adapter for Python
5
5
  Home-page: https://psycopg.org/psycopg3/
6
6
  Author: Daniele Varrazzo
@@ -38,9 +38,9 @@ Requires-Dist: backports.zoneinfo>=0.2.0; python_version < "3.9"
38
38
  Requires-Dist: typing-extensions>=4.6; python_version < "3.13"
39
39
  Requires-Dist: tzdata; sys_platform == "win32"
40
40
  Provides-Extra: c
41
- Requires-Dist: psycopg-c==3.2.2; implementation_name != "pypy" and extra == "c"
41
+ Requires-Dist: psycopg-c==3.2.3; implementation_name != "pypy" and extra == "c"
42
42
  Provides-Extra: binary
43
- Requires-Dist: psycopg-binary==3.2.2; implementation_name != "pypy" and extra == "binary"
43
+ Requires-Dist: psycopg-binary==3.2.3; implementation_name != "pypy" and extra == "binary"
44
44
  Provides-Extra: pool
45
45
  Requires-Dist: psycopg-pool; extra == "pool"
46
46
  Provides-Extra: test
@@ -11,12 +11,12 @@ tzdata
11
11
  [binary]
12
12
 
13
13
  [binary:implementation_name != "pypy"]
14
- psycopg-binary==3.2.2
14
+ psycopg-binary==3.2.3
15
15
 
16
16
  [c]
17
17
 
18
18
  [c:implementation_name != "pypy"]
19
- psycopg-c==3.2.2
19
+ psycopg-c==3.2.3
20
20
 
21
21
  [dev]
22
22
  ast-comments>=1.1.2
@@ -5,7 +5,7 @@ url = https://psycopg.org/psycopg3/
5
5
  author = Daniele Varrazzo
6
6
  author_email = daniele.varrazzo@gmail.com
7
7
  license = GNU Lesser General Public License v3 (LGPLv3)
8
- version = 3.2.2
8
+ version = 3.2.3
9
9
  project_urls =
10
10
  Homepage = https://psycopg.org/
11
11
  Documentation = https://psycopg.org/psycopg3/docs/
@@ -48,9 +48,9 @@ install_requires =
48
48
 
49
49
  [options.extras_require]
50
50
  c =
51
- psycopg-c == 3.2.2; implementation_name != "pypy"
51
+ psycopg-c == 3.2.3; implementation_name != "pypy"
52
52
  binary =
53
- psycopg-binary == 3.2.2; implementation_name != "pypy"
53
+ psycopg-binary == 3.2.3; implementation_name != "pypy"
54
54
  pool =
55
55
  psycopg-pool
56
56
  test =
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes