pglift 3.3.0__tar.gz → 3.4.0__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 (255) hide show
  1. {pglift-3.3.0 → pglift-3.4.0}/PKG-INFO +3 -3
  2. {pglift-3.3.0 → pglift-3.4.0}/pyproject.toml +2 -2
  3. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/_compat.py +7 -0
  4. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/helpers.py +12 -6
  5. {pglift-3.3.0 → pglift-3.4.0}/tests/func/conftest.py +2 -2
  6. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_30_patroni.py +2 -1
  7. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_system_cmd.py +1 -1
  8. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_task.py +2 -3
  9. {pglift-3.3.0 → pglift-3.4.0}/.gitignore +0 -0
  10. {pglift-3.3.0 → pglift-3.4.0}/README.md +0 -0
  11. {pglift-3.3.0 → pglift-3.4.0}/hatch.toml +0 -0
  12. {pglift-3.3.0 → pglift-3.4.0}/pytest.ini +0 -0
  13. {pglift-3.3.0 → pglift-3.4.0}/src/conftest.py +0 -0
  14. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/__init__.py +0 -0
  15. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/abc.py +0 -0
  16. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/annotations/__init__.py +0 -0
  17. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/annotations/ansible.py +0 -0
  18. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/annotations/api.py +0 -0
  19. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/annotations/cli.py +0 -0
  20. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/backup.py +0 -0
  21. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/conf.py +0 -0
  22. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/databases.py +0 -0
  23. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/deps.py +0 -0
  24. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/diff.py +0 -0
  25. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/exceptions.py +0 -0
  26. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/extensions.py +0 -0
  27. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/fixtures/__init__.py +0 -0
  28. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/fixtures/etcd.py +0 -0
  29. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/fixtures/functional.py +0 -0
  30. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/fixtures/types.py +0 -0
  31. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/fixtures/unit.py +0 -0
  32. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/hba.py +0 -0
  33. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/hookspecs.py +0 -0
  34. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/instances.py +0 -0
  35. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/logrotate/__init__.py +0 -0
  36. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/manager/__init__.py +0 -0
  37. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/manager/configuration.py +0 -0
  38. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/manager/hba.py +0 -0
  39. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/manager/instance.py +0 -0
  40. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/__init__.py +0 -0
  41. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/interface.py +0 -0
  42. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/system.py +0 -0
  43. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/testing.py +0 -0
  44. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/types.py +0 -0
  45. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/validators.py +0 -0
  46. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/passfile.py +0 -0
  47. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/__init__.py +0 -0
  48. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/dcs.py +0 -0
  49. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/impl.py +0 -0
  50. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/logrotate.conf +0 -0
  51. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/logrotate.conf.license +0 -0
  52. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/models/__init__.py +0 -0
  53. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/models/build.py +0 -0
  54. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/models/common.py +0 -0
  55. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/models/interface.py +0 -0
  56. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/models/system.py +0 -0
  57. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/patroni.yaml +0 -0
  58. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/patroni.yaml.license +0 -0
  59. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/__init__.py +0 -0
  60. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/base.py +0 -0
  61. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/logrotate.conf +0 -0
  62. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/logrotate.conf.license +0 -0
  63. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/models/__init__.py +0 -0
  64. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/models/interface.py +0 -0
  65. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/models/system.py +0 -0
  66. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/pgbackrest.conf +0 -0
  67. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/pgbackrest.conf.license +0 -0
  68. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/repo_host_ssh.py +0 -0
  69. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/repo_host_tls.py +0 -0
  70. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/repo_path.py +0 -0
  71. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/server.conf +0 -0
  72. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/server.conf.license +0 -0
  73. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pm.py +0 -0
  74. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/__init__.py +0 -0
  75. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/ctl.py +0 -0
  76. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/logrotate.conf +0 -0
  77. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/logrotate.conf.license +0 -0
  78. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/models.py +0 -0
  79. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pg_hba.conf +0 -0
  80. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pg_hba.conf.license +0 -0
  81. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pg_ident.conf +0 -0
  82. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pg_ident.conf.license +0 -0
  83. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pgbackrest.conf +0 -0
  84. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pgbackrest.conf.license +0 -0
  85. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/postgresql-rsyslog.conf +0 -0
  86. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/postgresql-rsyslog.conf.license +0 -0
  87. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/postgresql.conf +0 -0
  88. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/postgresql.conf.license +0 -0
  89. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pq.py +0 -0
  90. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/psqlrc +0 -0
  91. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/psqlrc.license +0 -0
  92. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/rsyslog.conf +0 -0
  93. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/rsyslog.conf.license +0 -0
  94. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/powa/__init__.py +0 -0
  95. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/powa/impl.py +0 -0
  96. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/powa/models/__init__.py +0 -0
  97. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/powa/models/interface.py +0 -0
  98. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/privileges.py +0 -0
  99. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/profiles.py +0 -0
  100. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/__init__.py +0 -0
  101. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/impl.py +0 -0
  102. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/models/__init__.py +0 -0
  103. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/models/interface.py +0 -0
  104. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/models/system.py +0 -0
  105. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/postgres_exporter.conf +0 -0
  106. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/postgres_exporter.conf.license +0 -0
  107. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/publications.py +0 -0
  108. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/py.typed +0 -0
  109. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/replication_slots.py +0 -0
  110. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/roles.py +0 -0
  111. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/rsyslog/__init__.py +0 -0
  112. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/schemas.py +0 -0
  113. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/__init__.py +0 -0
  114. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_api.py +0 -0
  115. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_cli.py +0 -0
  116. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_logrotate.py +0 -0
  117. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_patroni.py +0 -0
  118. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_pgbackrest.py +0 -0
  119. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_postgresql.py +0 -0
  120. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_powa.py +0 -0
  121. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_prometheus.py +0 -0
  122. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_rsyslog.py +0 -0
  123. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_systemd.py +0 -0
  124. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_temboard.py +0 -0
  125. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/base.py +0 -0
  126. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/sql/__init__.py +0 -0
  127. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/sql/queries.sql +0 -0
  128. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/sql/queries.sql.license +0 -0
  129. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/subscriptions.py +0 -0
  130. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/__init__.py +0 -0
  131. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/cmd.py +0 -0
  132. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/command.py +0 -0
  133. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/db.py +0 -0
  134. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/dryrun.py +0 -0
  135. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/fs.py +0 -0
  136. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/imfs.py +0 -0
  137. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/install.py +0 -0
  138. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/svc.py +0 -0
  139. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/__init__.py +0 -0
  140. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-backup@.service +0 -0
  141. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-backup@.service.license +0 -0
  142. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-backup@.timer +0 -0
  143. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-backup@.timer.license +0 -0
  144. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-patroni@.service +0 -0
  145. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-patroni@.service.license +0 -0
  146. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-pgbackrest.service +0 -0
  147. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-pgbackrest.service.license +0 -0
  148. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-postgres_exporter@.service +0 -0
  149. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-postgres_exporter@.service.license +0 -0
  150. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-postgresql@.service +0 -0
  151. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-postgresql@.service.license +0 -0
  152. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-temboard_agent@.service +0 -0
  153. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-temboard_agent@.service.license +0 -0
  154. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-tmpfiles.d.conf +0 -0
  155. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-tmpfiles.d.conf.license +0 -0
  156. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/scheduler.py +0 -0
  157. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/service_manager.py +0 -0
  158. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/tmpfilesd.py +0 -0
  159. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/task.py +0 -0
  160. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/temboard/__init__.py +0 -0
  161. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/temboard/impl.py +0 -0
  162. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/temboard/models/__init__.py +0 -0
  163. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/temboard/models/interface.py +0 -0
  164. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/temboard/models/system.py +0 -0
  165. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/testutil.py +0 -0
  166. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/types.py +0 -0
  167. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/ui.py +0 -0
  168. {pglift-3.3.0 → pglift-3.4.0}/src/pglift/util.py +0 -0
  169. {pglift-3.3.0 → pglift-3.4.0}/tests/func/README.md +0 -0
  170. {pglift-3.3.0 → pglift-3.4.0}/tests/func/__init__.py +0 -0
  171. {pglift-3.3.0 → pglift-3.4.0}/tests/func/cmd.py +0 -0
  172. {pglift-3.3.0 → pglift-3.4.0}/tests/func/data/base/postgresql/16/psqlrc +0 -0
  173. {pglift-3.3.0 → pglift-3.4.0}/tests/func/data/base/postgresql/pg_hba.conf +0 -0
  174. {pglift-3.3.0 → pglift-3.4.0}/tests/func/data/peer/postgresql/16/psqlrc +0 -0
  175. {pglift-3.3.0 → pglift-3.4.0}/tests/func/data/peer/postgresql/pg_hba.conf +0 -0
  176. {pglift-3.3.0 → pglift-3.4.0}/tests/func/data/peer/postgresql/pg_ident.conf +0 -0
  177. {pglift-3.3.0 → pglift-3.4.0}/tests/func/pgbackrest.py +0 -0
  178. {pglift-3.3.0 → pglift-3.4.0}/tests/func/ssh.py +0 -0
  179. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_00_site.py +0 -0
  180. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_10_instances.py +0 -0
  181. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_10_standby.py +0 -0
  182. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_11_databases.py +0 -0
  183. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_11_privileges.py +0 -0
  184. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_11_profiles.py +0 -0
  185. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_11_replication_slots.py +0 -0
  186. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_11_roles.py +0 -0
  187. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_20_backup.py +0 -0
  188. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_20_pgbackrest.py +0 -0
  189. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_20_powa.py +0 -0
  190. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_20_prometheus.py +0 -0
  191. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_20_temboard.py +0 -0
  192. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_40_promote_demote.py +0 -0
  193. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_40_reconfigure.py +0 -0
  194. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_41_upgrade.py +0 -0
  195. {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_99_drop.py +0 -0
  196. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/__init__.py +0 -0
  197. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/conftest.py +0 -0
  198. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/config/postgresql/18/pg_ident.conf +0 -0
  199. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/config/postgresql/18/postgresql.conf +0 -0
  200. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/config/postgresql/pgbackrest.conf +0 -0
  201. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-argspec-database.json +0 -0
  202. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-argspec-instance.json +0 -0
  203. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-argspec-postgresexporter.json +0 -0
  204. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-argspec-role.json +0 -0
  205. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-examples/database.yaml +0 -0
  206. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-examples/instance.yaml +0 -0
  207. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-examples/postgresexporter.yaml +0 -0
  208. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-examples/role.yaml +0 -0
  209. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/patroni-15-updated.diff +0 -0
  210. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/patroni-15-upgraded.diff +0 -0
  211. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/patroni-15.yaml +0 -0
  212. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/patroni-18-updated.diff +0 -0
  213. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/patroni-18-upgraded.diff +0 -0
  214. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/patroni-18.yaml +0 -0
  215. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/pg_hba.conf +0 -0
  216. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/pg_ident.conf +0 -0
  217. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/postgresql.conf +0 -0
  218. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/postgresql.merged.conf +0 -0
  219. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/queries.json +0 -0
  220. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/postgresql.conf.sample +0 -0
  221. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_annotations_cli.py +0 -0
  222. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_ansible.py +0 -0
  223. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_backup.py +0 -0
  224. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_conf.py +0 -0
  225. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_databases.py +0 -0
  226. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_diff.py +0 -0
  227. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_exceptions.py +0 -0
  228. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_hba.py +0 -0
  229. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_hooks.py +0 -0
  230. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_instances.py +0 -0
  231. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_logrotate.py +0 -0
  232. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_main.py +0 -0
  233. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_models_helpers.py +0 -0
  234. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_models_interface.py +0 -0
  235. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_models_system.py +0 -0
  236. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_models_validators.py +0 -0
  237. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_passfile.py +0 -0
  238. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_patroni.py +0 -0
  239. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_pgbackrest.py +0 -0
  240. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_pm.py +0 -0
  241. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_postgresql.py +0 -0
  242. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_prometheus.py +0 -0
  243. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_roles.py +0 -0
  244. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_rsyslog.py +0 -0
  245. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_settings.py +0 -0
  246. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_sql.py +0 -0
  247. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_system_db.py +0 -0
  248. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_system_fs.py +0 -0
  249. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_system_imfs.py +0 -0
  250. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_system_install.py +0 -0
  251. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_systemd.py +0 -0
  252. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_temboard.py +0 -0
  253. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_testutil.py +0 -0
  254. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_types.py +0 -0
  255. {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_util.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: pglift
3
- Version: 3.3.0
3
+ Version: 3.4.0
4
4
  Summary: Life-cycle management of production-ready PostgreSQL instances
5
5
  Project-URL: Documentation, https://pglift.readthedocs.io/
6
6
  Project-URL: Source, https://gitlab.com/dalibo/pglift/
@@ -33,12 +33,12 @@ Requires-Dist: pgtoolkit>=0.33.0
33
33
  Requires-Dist: pluggy
34
34
  Requires-Dist: psutil
35
35
  Requires-Dist: psycopg>=3.1
36
- Requires-Dist: pydantic!=2.14.0b2,>=2.10.2
37
36
  Requires-Dist: pydantic-settings
37
+ Requires-Dist: pydantic>=2.10.2
38
38
  Requires-Dist: python-dotenv
39
39
  Requires-Dist: pyyaml>=6.0.1
40
40
  Requires-Dist: tenacity!=8.4.0,>=8.2.0
41
- Requires-Dist: typing-extensions
41
+ Requires-Dist: typing-extensions>=4.13.0
42
42
  Requires-Dist: tzlocal
43
43
  Provides-Extra: api
44
44
  Requires-Dist: pglift-api; extra == 'api'
@@ -47,11 +47,11 @@ dependencies = [
47
47
  "pluggy",
48
48
  "psycopg >= 3.1",
49
49
  "psutil",
50
- "pydantic >= 2.10.2, != 2.14.0b2",
50
+ "pydantic >= 2.10.2",
51
51
  "pydantic-settings",
52
52
  "python-dotenv",
53
53
  "tenacity >=8.2.0, != 8.4.0",
54
- "typing-extensions",
54
+ "typing-extensions >= 4.13.0",
55
55
  "tzlocal",
56
56
  "PyYAML >= 6.0.1",
57
57
  ]
@@ -29,8 +29,15 @@ else:
29
29
  return None
30
30
 
31
31
 
32
+ if sys.version_info[:2] >= (3, 15):
33
+ from typing import TypeForm
34
+ else:
35
+ from typing_extensions import TypeForm
36
+
37
+
32
38
  __all__ = [
33
39
  "Self",
40
+ "TypeForm",
34
41
  "assert_never",
35
42
  "assert_type",
36
43
  "datetime_fromisoformat",
@@ -8,12 +8,12 @@ import typing
8
8
  from collections.abc import Mapping
9
9
  from datetime import datetime
10
10
  from types import NoneType, UnionType
11
- from typing import Any, Union
11
+ from typing import Any, TypeGuard, Union
12
12
 
13
13
  import pydantic
14
14
  import pydantic_core
15
15
 
16
- from .._compat import assert_never
16
+ from .._compat import TypeForm, assert_never
17
17
  from ..annotations import ansible
18
18
  from ..types import field_annotation
19
19
  from ..util import lenient_issubclass
@@ -22,6 +22,11 @@ from .types import Port
22
22
  ModelType = type[pydantic.BaseModel]
23
23
 
24
24
 
25
+ def is_model_type(value: Any) -> TypeGuard[ModelType]:
26
+ """Return whether value is a concrete Pydantic model class."""
27
+ return isinstance(value, type) and issubclass(value, pydantic.BaseModel)
28
+
29
+
25
30
  def is_optional(t: Any) -> bool:
26
31
  """Return True if the field info is an optional type.
27
32
 
@@ -56,7 +61,7 @@ def optional_type(t: Any) -> type:
56
61
  assert_never(a)
57
62
 
58
63
 
59
- PYDANTIC2ANSIBLE: Mapping[type[Any] | str, ansible.ArgSpec] = {
64
+ PYDANTIC2ANSIBLE: Mapping[TypeForm[Any] | str, ansible.ArgSpec] = {
60
65
  bool: {"type": "bool"},
61
66
  float: {"type": "float"},
62
67
  Port: {"type": "int"},
@@ -93,7 +98,8 @@ def argspec_from_model(model_type: ModelType) -> dict[str, ansible.ArgSpec]:
93
98
  if origin_type is typing.Annotated:
94
99
  ftype = typing.get_args(ftype)[0]
95
100
  assert ftype is not None
96
- is_model = lenient_issubclass(origin_type or ftype, pydantic.BaseModel)
101
+ model_candidate = origin_type or ftype
102
+ is_model = lenient_issubclass(model_candidate, pydantic.BaseModel)
97
103
  is_list = lenient_issubclass(origin_type or ftype, list)
98
104
  is_dict = lenient_issubclass(origin_type or ftype, Mapping)
99
105
 
@@ -104,10 +110,10 @@ def argspec_from_model(model_type: ModelType) -> dict[str, ansible.ArgSpec]:
104
110
  try:
105
111
  arg_spec.update(PYDANTIC2ANSIBLE[ftype])
106
112
  except KeyError:
107
- if is_model:
113
+ if is_model_type(model_candidate):
108
114
  arg_spec = {
109
115
  "type": "dict",
110
- "options": argspec_from_model(ftype),
116
+ "options": argspec_from_model(model_candidate),
111
117
  "description": description_list(field.description or fname),
112
118
  }
113
119
  elif origin_type is typing.Literal: # const or enum
@@ -296,7 +296,7 @@ def pgbackrest_repo_host(
296
296
  logpath.mkdir()
297
297
  hostname = socket.getfqdn()
298
298
  if option == "tls":
299
- repo_cert = cert_factory(common_name=hostname)
299
+ repo_cert = cert_factory(hostname, common_name=hostname)
300
300
  with PgbackrestRepoHostTLS(
301
301
  client_configpath=repo_path / "pgbackrest.conf",
302
302
  server_configpath=repo_path / "server.conf",
@@ -554,7 +554,7 @@ def settings(
554
554
  hostname = socket.getfqdn()
555
555
  if isinstance(pgbackrest_repo_host, PgbackrestRepoHostTLS):
556
556
  pgbackrest_dbhost_cert = cert_factory(
557
- common_name=pgbackrest_repo_host.dbhost_cn
557
+ hostname, common_name=pgbackrest_repo_host.dbhost_cn
558
558
  )
559
559
  pgbackrest_repository = {
560
560
  "mode": "host-tls",
@@ -359,10 +359,11 @@ async def instance2_manifest(
359
359
  etcd_credentials: tuple[str, str],
360
360
  ) -> interface.Instance:
361
361
  name = "test2"
362
+ host = local_host()
362
363
  extras = {}
363
364
  if settings.pgbackrest:
364
365
  extras = {"pgbackrest": {"stanza": "patroni"}}
365
- replication_cert = cert_factory(common_name="replication")
366
+ replication_cert = cert_factory(host, common_name="replication")
366
367
  return instance_manifest_factory(
367
368
  settings,
368
369
  name,
@@ -100,7 +100,7 @@ def test_execute_program(caplog: pytest.LogCaptureFixture) -> None:
100
100
  cmd.execute_program(command, env={"X": "Y"})
101
101
  execve.assert_called_once_with("/c", command, {"X": "Y"}) # type: ignore[unreachable]
102
102
  assert not execv.called
103
- with ( # type: ignore[unreachable]
103
+ with (
104
104
  patch("os.execve", autospec=True) as execve,
105
105
  patch("os.execv", autospec=True) as execv,
106
106
  caplog.at_level(logging.DEBUG, logger="pglift.cmd"),
@@ -149,9 +149,8 @@ def test_transaction_state() -> None:
149
149
  @pytest.mark.anyio
150
150
  async def test_async_transaction_state() -> None:
151
151
  with pytest.raises(RuntimeError, match="inconsistent task state"):
152
- async with task.async_transaction():
153
- async with task.async_transaction():
154
- pass
152
+ async with task.async_transaction(), task.async_transaction():
153
+ pass
155
154
 
156
155
  with pytest.raises(ValueError, match="expected"):
157
156
  async with task.async_transaction():
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