postgresql-charms-single-kernel 16.1.5__tar.gz → 16.1.6__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.
- {postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/PKG-INFO +1 -1
- {postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/pyproject.toml +3 -3
- {postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/single_kernel_postgresql/utils/postgresql.py +2 -0
- {postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/LICENSE +0 -0
- {postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/README.md +0 -0
- {postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/single_kernel_postgresql/__init__.py +0 -0
- {postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/single_kernel_postgresql/abstract_charm.py +0 -0
- {postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/single_kernel_postgresql/charmcraft.yaml +0 -0
- {postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/single_kernel_postgresql/config/__init__.py +0 -0
- {postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/single_kernel_postgresql/config/literals.py +0 -0
- {postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/single_kernel_postgresql/utils/__init__.py +0 -0
- {postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/single_kernel_postgresql/utils/filesystem.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: postgresql-charms-single-kernel
|
|
3
|
-
Version: 16.1.
|
|
3
|
+
Version: 16.1.6
|
|
4
4
|
Summary: Shared and reusable code for PostgreSQL-related charms
|
|
5
5
|
Author: Canonical Data Platform
|
|
6
6
|
Author-email: Canonical Data Platform <data-platform@lists.launchpad.net>
|
{postgresql_charms_single_kernel-16.1.5 → postgresql_charms_single_kernel-16.1.6}/pyproject.toml
RENAMED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[project]
|
|
5
5
|
name = "postgresql-charms-single-kernel"
|
|
6
6
|
description = "Shared and reusable code for PostgreSQL-related charms"
|
|
7
|
-
version = "16.1.
|
|
7
|
+
version = "16.1.6"
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
license = {file = "LICENSE"}
|
|
10
10
|
authors = [
|
|
@@ -31,14 +31,14 @@ lib = [
|
|
|
31
31
|
"psycopg2>=2.9.10",
|
|
32
32
|
]
|
|
33
33
|
format = [
|
|
34
|
-
"ruff==0.14.
|
|
34
|
+
"ruff==0.14.10"
|
|
35
35
|
]
|
|
36
36
|
lint = [
|
|
37
37
|
"codespell==2.4.1",
|
|
38
38
|
"pyright==1.1.407"
|
|
39
39
|
]
|
|
40
40
|
unit = [
|
|
41
|
-
"coverage[toml]==7.13.
|
|
41
|
+
"coverage[toml]==7.13.1; python_version >= '3.10'",
|
|
42
42
|
"pytest==9.0.2; python_version >= '3.10'"
|
|
43
43
|
]
|
|
44
44
|
|
|
@@ -644,6 +644,7 @@ class PostgreSQL:
|
|
|
644
644
|
with self._connect_to_database(
|
|
645
645
|
database
|
|
646
646
|
) as connection, connection.cursor() as cursor:
|
|
647
|
+
cursor.execute(SQL("RESET ROLE;"))
|
|
647
648
|
cursor.execute(
|
|
648
649
|
SQL("REASSIGN OWNED BY {} TO {};").format(
|
|
649
650
|
Identifier(user), Identifier(self.user)
|
|
@@ -653,6 +654,7 @@ class PostgreSQL:
|
|
|
653
654
|
|
|
654
655
|
# Delete the user.
|
|
655
656
|
with self._connect_to_database() as connection, connection.cursor() as cursor:
|
|
657
|
+
cursor.execute(SQL("RESET ROLE;"))
|
|
656
658
|
cursor.execute(SQL("DROP ROLE {};").format(Identifier(user)))
|
|
657
659
|
except psycopg2.Error as e:
|
|
658
660
|
logger.error(f"Failed to delete user: {e}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|