PyGreSQL 6.0__tar.gz → 6.0.1__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 (101) hide show
  1. {PyGreSQL-6.0 → pygresql-6.0.1}/LICENSE.txt +1 -1
  2. {PyGreSQL-6.0 → pygresql-6.0.1}/PKG-INFO +2 -2
  3. {PyGreSQL-6.0 → pygresql-6.0.1}/PyGreSQL.egg-info/PKG-INFO +2 -2
  4. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/about.rst +1 -1
  5. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/conf.py +1 -1
  6. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/changelog.rst +4 -0
  7. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/copyright.rst +1 -1
  8. {PyGreSQL-6.0 → pygresql-6.0.1}/ext/pgconn.c +1 -1
  9. {PyGreSQL-6.0 → pygresql-6.0.1}/ext/pginternal.c +1 -1
  10. {PyGreSQL-6.0 → pygresql-6.0.1}/ext/pglarge.c +1 -1
  11. {PyGreSQL-6.0 → pygresql-6.0.1}/ext/pgmodule.c +1 -1
  12. {PyGreSQL-6.0 → pygresql-6.0.1}/ext/pgnotice.c +1 -1
  13. {PyGreSQL-6.0 → pygresql-6.0.1}/ext/pgquery.c +1 -1
  14. {PyGreSQL-6.0 → pygresql-6.0.1}/ext/pgsource.c +1 -1
  15. {PyGreSQL-6.0 → pygresql-6.0.1}/pg/__init__.py +1 -1
  16. {PyGreSQL-6.0 → pygresql-6.0.1}/pg/adapt.py +1 -1
  17. {PyGreSQL-6.0 → pygresql-6.0.1}/pg/db.py +9 -6
  18. {PyGreSQL-6.0 → pygresql-6.0.1}/pgdb/__init__.py +1 -1
  19. {PyGreSQL-6.0 → pygresql-6.0.1}/pgdb/adapt.py +1 -1
  20. {PyGreSQL-6.0 → pygresql-6.0.1}/pyproject.toml +19 -16
  21. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/test_classic_dbwrapper.py +8 -0
  22. {PyGreSQL-6.0 → pygresql-6.0.1}/tox.ini +10 -10
  23. {PyGreSQL-6.0 → pygresql-6.0.1}/MANIFEST.in +0 -0
  24. {PyGreSQL-6.0 → pygresql-6.0.1}/PyGreSQL.egg-info/SOURCES.txt +0 -0
  25. {PyGreSQL-6.0 → pygresql-6.0.1}/PyGreSQL.egg-info/dependency_links.txt +0 -0
  26. {PyGreSQL-6.0 → pygresql-6.0.1}/PyGreSQL.egg-info/not-zip-safe +0 -0
  27. {PyGreSQL-6.0 → pygresql-6.0.1}/PyGreSQL.egg-info/top_level.txt +0 -0
  28. {PyGreSQL-6.0 → pygresql-6.0.1}/README.rst +0 -0
  29. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/Makefile +0 -0
  30. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/_static/favicon.ico +0 -0
  31. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/_static/pygresql.png +0 -0
  32. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/community/homes.rst +0 -0
  33. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/community/index.rst +0 -0
  34. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/community/issues.rst +0 -0
  35. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/community/mailinglist.rst +0 -0
  36. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/community/source.rst +0 -0
  37. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/community/support.rst +0 -0
  38. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/examples.rst +0 -0
  39. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/general.rst +0 -0
  40. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/index.rst +0 -0
  41. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/install.rst +0 -0
  42. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pg/adaptation.rst +0 -0
  43. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pg/connection.rst +0 -0
  44. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pg/db_types.rst +0 -0
  45. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pg/db_wrapper.rst +0 -0
  46. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pg/index.rst +0 -0
  47. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pg/introduction.rst +0 -0
  48. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pg/large_objects.rst +0 -0
  49. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pg/module.rst +0 -0
  50. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pg/notification.rst +0 -0
  51. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pg/query.rst +0 -0
  52. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pgdb/adaptation.rst +0 -0
  53. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pgdb/connection.rst +0 -0
  54. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pgdb/cursor.rst +0 -0
  55. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pgdb/index.rst +0 -0
  56. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pgdb/introduction.rst +0 -0
  57. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pgdb/module.rst +0 -0
  58. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pgdb/typecache.rst +0 -0
  59. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/pgdb/types.rst +0 -0
  60. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/postgres/advanced.rst +0 -0
  61. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/postgres/basic.rst +0 -0
  62. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/postgres/func.rst +0 -0
  63. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/postgres/index.rst +0 -0
  64. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/postgres/syscat.rst +0 -0
  65. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/contents/tutorial.rst +0 -0
  66. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/download/download.rst +0 -0
  67. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/download/files.rst +0 -0
  68. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/download/index.rst +0 -0
  69. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/make.bat +0 -0
  70. {PyGreSQL-6.0 → pygresql-6.0.1}/docs/requirements.txt +0 -0
  71. {PyGreSQL-6.0 → pygresql-6.0.1}/ext/pgtypes.h +0 -0
  72. {PyGreSQL-6.0 → pygresql-6.0.1}/pg/_pg.pyi +0 -0
  73. {PyGreSQL-6.0 → pygresql-6.0.1}/pg/attrs.py +0 -0
  74. {PyGreSQL-6.0 → pygresql-6.0.1}/pg/cast.py +0 -0
  75. {PyGreSQL-6.0 → pygresql-6.0.1}/pg/core.py +0 -0
  76. {PyGreSQL-6.0 → pygresql-6.0.1}/pg/error.py +0 -0
  77. {PyGreSQL-6.0 → pygresql-6.0.1}/pg/helpers.py +0 -0
  78. {PyGreSQL-6.0 → pygresql-6.0.1}/pg/notify.py +0 -0
  79. {PyGreSQL-6.0 → pygresql-6.0.1}/pg/py.typed +0 -0
  80. {PyGreSQL-6.0 → pygresql-6.0.1}/pg/tz.py +0 -0
  81. {PyGreSQL-6.0 → pygresql-6.0.1}/pgdb/cast.py +0 -0
  82. {PyGreSQL-6.0 → pygresql-6.0.1}/pgdb/connect.py +0 -0
  83. {PyGreSQL-6.0 → pygresql-6.0.1}/pgdb/connection.py +0 -0
  84. {PyGreSQL-6.0 → pygresql-6.0.1}/pgdb/constants.py +0 -0
  85. {PyGreSQL-6.0 → pygresql-6.0.1}/pgdb/cursor.py +0 -0
  86. {PyGreSQL-6.0 → pygresql-6.0.1}/pgdb/py.typed +0 -0
  87. {PyGreSQL-6.0 → pygresql-6.0.1}/pgdb/typecode.py +0 -0
  88. {PyGreSQL-6.0 → pygresql-6.0.1}/setup.cfg +0 -0
  89. {PyGreSQL-6.0 → pygresql-6.0.1}/setup.py +0 -0
  90. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/__init__.py +0 -0
  91. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/config.py +0 -0
  92. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/dbapi20.py +0 -0
  93. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/test_classic.py +0 -0
  94. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/test_classic_attrdict.py +0 -0
  95. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/test_classic_connection.py +0 -0
  96. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/test_classic_functions.py +0 -0
  97. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/test_classic_largeobj.py +0 -0
  98. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/test_classic_notification.py +0 -0
  99. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/test_dbapi20.py +0 -0
  100. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/test_dbapi20_copy.py +0 -0
  101. {PyGreSQL-6.0 → pygresql-6.0.1}/tests/test_tutorial.py +0 -0
@@ -6,7 +6,7 @@ Copyright (c) 1995, Pascal Andre
6
6
 
7
7
  Further modifications copyright (c) 1997-2008 by D'Arcy J.M. Cain
8
8
 
9
- Further modifications copyright (c) 2009-2023 by the PyGreSQL Development Team
9
+ Further modifications copyright (c) 2009-2024 by the PyGreSQL Development Team
10
10
 
11
11
  PyGreSQL is released under the PostgreSQL License, a liberal Open Source
12
12
  license, similar to the BSD or MIT licenses:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyGreSQL
3
- Version: 6.0
3
+ Version: 6.0.1
4
4
  Summary: Python PostgreSQL interfaces
5
5
  Home-page: https://pygresql.github.io/
6
6
  Download-URL: https://pygresql.github.io/download/
@@ -14,7 +14,7 @@ License: Written by D'Arcy J.M. Cain (darcy@PyGreSQL.org)
14
14
 
15
15
  Further modifications copyright (c) 1997-2008 by D'Arcy J.M. Cain
16
16
 
17
- Further modifications copyright (c) 2009-2023 by the PyGreSQL Development Team
17
+ Further modifications copyright (c) 2009-2024 by the PyGreSQL Development Team
18
18
 
19
19
  PyGreSQL is released under the PostgreSQL License, a liberal Open Source
20
20
  license, similar to the BSD or MIT licenses:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyGreSQL
3
- Version: 6.0
3
+ Version: 6.0.1
4
4
  Summary: Python PostgreSQL interfaces
5
5
  Home-page: https://pygresql.github.io/
6
6
  Download-URL: https://pygresql.github.io/download/
@@ -14,7 +14,7 @@ License: Written by D'Arcy J.M. Cain (darcy@PyGreSQL.org)
14
14
 
15
15
  Further modifications copyright (c) 1997-2008 by D'Arcy J.M. Cain
16
16
 
17
- Further modifications copyright (c) 2009-2023 by the PyGreSQL Development Team
17
+ Further modifications copyright (c) 2009-2024 by the PyGreSQL Development Team
18
18
 
19
19
  PyGreSQL is released under the PostgreSQL License, a liberal Open Source
20
20
  license, similar to the BSD or MIT licenses:
@@ -8,7 +8,7 @@ powerful PostgreSQL features from Python.
8
8
 
9
9
  | This software is copyright © 1995, Pascal Andre.
10
10
  | Further modifications are copyright © 1997-2008 by D'Arcy J.M. Cain.
11
- | Further modifications are copyright © 2009-2023 by the PyGreSQL team.
11
+ | Further modifications are copyright © 2009-2024 by the PyGreSQL team.
12
12
  | For licensing details, see the full :doc:`copyright`.
13
13
 
14
14
  **PostgreSQL** is a highly scalable, SQL compliant, open source
@@ -8,7 +8,7 @@
8
8
 
9
9
  project = 'PyGreSQL'
10
10
  author = 'The PyGreSQL team'
11
- copyright = '2023, ' + author
11
+ copyright = '2024, ' + author
12
12
 
13
13
  def project_version():
14
14
  with open('../pyproject.toml') as f:
@@ -1,6 +1,10 @@
1
1
  ChangeLog
2
2
  =========
3
3
 
4
+ Version 6.0.1 (2024-04-19)
5
+ --------------------------
6
+ - Properly adapt falsy JSON values (#86)
7
+
4
8
  Version 6.0 (2023-10-03)
5
9
  ------------------------
6
10
  - Tested with the recent releases of Python 3.12 and PostgreSQL 16.
@@ -10,7 +10,7 @@ Copyright (c) 1995, Pascal Andre
10
10
  Further modifications copyright (c) 1997-2008 by D'Arcy J.M. Cain
11
11
  (darcy@PyGreSQL.org)
12
12
 
13
- Further modifications copyright (c) 2009-2023 by the PyGreSQL team.
13
+ Further modifications copyright (c) 2009-2024 by the PyGreSQL team.
14
14
 
15
15
  Permission to use, copy, modify, and distribute this software and its
16
16
  documentation for any purpose, without fee, and without a written agreement
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * The connection object - this file is part a of the C extension module.
5
5
  *
6
- * Copyright (c) 2023 by the PyGreSQL Development Team
6
+ * Copyright (c) 2024 by the PyGreSQL Development Team
7
7
  *
8
8
  * Please see the LICENSE.TXT file for specific restrictions.
9
9
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Internal functions - this file is part a of the C extension module.
5
5
  *
6
- * Copyright (c) 2023 by the PyGreSQL Development Team
6
+ * Copyright (c) 2024 by the PyGreSQL Development Team
7
7
  *
8
8
  * Please see the LICENSE.TXT file for specific restrictions.
9
9
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Large object support - this file is part a of the C extension module.
5
5
  *
6
- * Copyright (c) 2023 by the PyGreSQL Development Team
6
+ * Copyright (c) 2024 by the PyGreSQL Development Team
7
7
  *
8
8
  * Please see the LICENSE.TXT file for specific restrictions.
9
9
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * This is the main file for the C extension module.
5
5
  *
6
- * Copyright (c) 2023 by the PyGreSQL Development Team
6
+ * Copyright (c) 2024 by the PyGreSQL Development Team
7
7
  *
8
8
  * Please see the LICENSE.TXT file for specific restrictions.
9
9
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * The notice object - this file is part a of the C extension module.
5
5
  *
6
- * Copyright (c) 2023 by the PyGreSQL Development Team
6
+ * Copyright (c) 2024 by the PyGreSQL Development Team
7
7
  *
8
8
  * Please see the LICENSE.TXT file for specific restrictions.
9
9
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * The query object - this file is part a of the C extension module.
5
5
  *
6
- * Copyright (c) 2023 by the PyGreSQL Development Team
6
+ * Copyright (c) 2024 by the PyGreSQL Development Team
7
7
  *
8
8
  * Please see the LICENSE.TXT file for specific restrictions.
9
9
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * The source object - this file is part a of the C extension module.
5
5
  *
6
- * Copyright (c) 2023 by the PyGreSQL Development Team
6
+ * Copyright (c) 2024 by the PyGreSQL Development Team
7
7
  *
8
8
  * Please see the LICENSE.TXT file for specific restrictions.
9
9
  */
@@ -4,7 +4,7 @@
4
4
  #
5
5
  # This file contains the classic pg module.
6
6
  #
7
- # Copyright (c) 2023 by the PyGreSQL Development Team
7
+ # Copyright (c) 2024 by the PyGreSQL Development Team
8
8
  #
9
9
  # The notification handler is based on pgnotify which is
10
10
  # Copyright (c) 2001 Ng Pheng Siong. All rights reserved.
@@ -333,7 +333,7 @@ class Adapter:
333
333
 
334
334
  def _adapt_json(self, v: Any) -> str | None:
335
335
  """Adapt a json parameter."""
336
- if not v:
336
+ if v is None:
337
337
  return None
338
338
  if isinstance(v, str):
339
339
  return v
@@ -802,8 +802,9 @@ class DB:
802
802
  adapt = params.add
803
803
  col = self.escape_identifier
804
804
  what = 'oid, *' if qoid else '*'
805
- where = ' AND '.join('{} OPERATOR(pg_catalog.=) {}'.format(
806
- col(k), adapt(row[k], attnames[k])) for k in keyname)
805
+ where = ' AND '.join(
806
+ f'{col(k)} OPERATOR(pg_catalog.=) {adapt(row[k], attnames[k])}'
807
+ for k in keyname)
807
808
  if 'oid' in row:
808
809
  if qoid:
809
810
  row[qoid] = row['oid']
@@ -913,8 +914,9 @@ class DB:
913
914
  params = self.adapter.parameter_list()
914
915
  adapt = params.add
915
916
  col = self.escape_identifier
916
- where = ' AND '.join('{} OPERATOR(pg_catalog.=) {}'.format(
917
- col(k), adapt(row[k], attnames[k])) for k in keynames)
917
+ where = ' AND '.join(
918
+ f'{col(k)} OPERATOR(pg_catalog.=) {adapt(row[k], attnames[k])}'
919
+ for k in keynames)
918
920
  if 'oid' in row:
919
921
  if qoid:
920
922
  row[qoid] = row['oid']
@@ -1103,8 +1105,9 @@ class DB:
1103
1105
  params = self.adapter.parameter_list()
1104
1106
  adapt = params.add
1105
1107
  col = self.escape_identifier
1106
- where = ' AND '.join('{} OPERATOR(pg_catalog.=) {}'.format(
1107
- col(k), adapt(row[k], attnames[k])) for k in keynames)
1108
+ where = ' AND '.join(
1109
+ f'{col(k)} OPERATOR(pg_catalog.=) {adapt(row[k], attnames[k])}'
1110
+ for k in keynames)
1108
1111
  if 'oid' in row:
1109
1112
  if qoid:
1110
1113
  row[qoid] = row['oid']
@@ -4,7 +4,7 @@
4
4
  #
5
5
  # This file contains the DB-API 2 compatible pgdb module.
6
6
  #
7
- # Copyright (c) 2023 by the PyGreSQL Development Team
7
+ # Copyright (c) 2024 by the PyGreSQL Development Team
8
8
  #
9
9
  # Please see the LICENSE.TXT file for specific restrictions.
10
10
 
@@ -33,7 +33,7 @@ class DbType(frozenset):
33
33
  """Create new type object."""
34
34
  if isinstance(values, str):
35
35
  values = values.split()
36
- return super().__new__(cls, values) # type: ignore
36
+ return super().__new__(cls, values)
37
37
 
38
38
  def __eq__(self, other: Any) -> bool:
39
39
  """Check whether types are considered equal."""
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "PyGreSQL"
3
- version = "6.0"
3
+ version = "6.0.1"
4
4
  requires-python = ">=3.7"
5
5
  authors = [
6
6
  {name = "D'Arcy J. M. Cain", email = "darcy@pygresql.org"},
@@ -44,18 +44,6 @@ Download = "https://pygresql.github.io/download/"
44
44
  [tool.ruff]
45
45
  target-version = "py37"
46
46
  line-length = 79
47
- select = [
48
- "E", # pycodestyle
49
- "F", # pyflakes
50
- "I", # isort
51
- "N", # pep8-naming
52
- "UP", # pyupgrade
53
- "D", # pydocstyle
54
- "B", # bugbear
55
- "S", # bandit
56
- "SIM", # simplify
57
- "RUF", # ruff
58
- ]
59
47
  exclude = [
60
48
  "__pycache__",
61
49
  "__pypackages__",
@@ -71,11 +59,26 @@ exclude = [
71
59
  "venv",
72
60
  ]
73
61
 
74
- [tool.ruff.per-file-ignores]
62
+ [tool.ruff.lint]
63
+ select = [
64
+ "E", # pycodestyle
65
+ "F", # pyflakes
66
+ "I", # isort
67
+ "N", # pep8-naming
68
+ "UP", # pyupgrade
69
+ "D", # pydocstyle
70
+ "B", # bugbear
71
+ "S", # bandit
72
+ "SIM", # simplify
73
+ "RUF", # ruff
74
+ ]
75
+ ignore = ["D203", "D213"]
76
+
77
+ [tool.ruff.lint.per-file-ignores]
75
78
  "tests/*.py" = ["D100", "D101", "D102", "D103", "D105", "D107", "S"]
76
79
 
77
80
  [tool.mypy]
78
- python_version = "3.11"
81
+ python_version = "3.12"
79
82
  check_untyped_defs = true
80
83
  no_implicit_optional = true
81
84
  strict_optional = true
@@ -98,5 +101,5 @@ pg = ["pg.typed"]
98
101
  pgdb = ["pg.typed"]
99
102
 
100
103
  [build-system]
101
- requires = ["setuptools>=68", "wheel>=0.41"]
104
+ requires = ["setuptools>=68", "wheel>=0.42"]
102
105
  build-backend = "setuptools.build_meta"
@@ -4390,6 +4390,14 @@ class TestDBClassAdapter(unittest.TestCase):
4390
4390
  self.assertEqual(sql, 'select $1')
4391
4391
  self.assertEqual(params, ['{"test": [1, "it\'s fine", 3]}'])
4392
4392
 
4393
+ def test_adapt_query_typed_list_with_empty_json(self):
4394
+ format_query = self.adapter.format_query
4395
+ values: Any = [None, 0, False, '', [], {}]
4396
+ types = ('json',) * 6
4397
+ sql, params = format_query("select %s,%s,%s,%s,%s,%s", values, types)
4398
+ self.assertEqual(sql, 'select $1,$2,$3,$4,$5,$6')
4399
+ self.assertEqual(params, [None, '0', 'false', '', '[]', '{}'])
4400
+
4393
4401
  def test_adapt_query_typed_with_hstore(self):
4394
4402
  format_query = self.adapter.format_query
4395
4403
  value: Any = {'one': "it's fine", 'two': 2}
@@ -4,42 +4,42 @@
4
4
  envlist = py3{7,8,9,10,11,12},ruff,mypy,cformat,docs
5
5
 
6
6
  [testenv:ruff]
7
- basepython = python3.11
8
- deps = ruff>=0.0.292
7
+ basepython = python3.12
8
+ deps = ruff>=0.3.7
9
9
  commands =
10
- ruff setup.py pg pgdb tests
10
+ ruff check setup.py pg pgdb tests
11
11
 
12
12
  [testenv:mypy]
13
- basepython = python3.11
14
- deps = mypy>=1.5.1
13
+ basepython = python3.12
14
+ deps = mypy>=1.9.0
15
15
  commands =
16
16
  mypy pg pgdb tests
17
17
 
18
18
  [testenv:cformat]
19
- basepython = python3.11
19
+ basepython = python3.12
20
20
  allowlist_externals =
21
21
  sh
22
22
  commands =
23
23
  sh -c "! (clang-format --style=file -n ext/*.c 2>&1 | tee /dev/tty | grep format-violations)"
24
24
 
25
25
  [testenv:docs]
26
- basepython = python3.11
26
+ basepython = python3.12
27
27
  deps =
28
28
  sphinx>=7,<8
29
29
  commands =
30
30
  sphinx-build -b html -nEW docs docs/_build/html
31
31
 
32
32
  [testenv:build]
33
- basepython = python3.11
33
+ basepython = python3.12
34
34
  deps =
35
35
  setuptools>=68
36
- wheel>=0.41,<1
36
+ wheel>=0.42,<1
37
37
  build>=1,<2
38
38
  commands =
39
39
  python -m build -s -n -C strict -C memory-size
40
40
 
41
41
  [testenv:coverage]
42
- basepython = python3.11
42
+ basepython = python3.12
43
43
  deps =
44
44
  coverage>=7,<8
45
45
  commands =
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