pum 1.1.9__py3-none-any.whl → 1.1.11__py3-none-any.whl

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.
pum/dependency_handler.py CHANGED
@@ -59,10 +59,9 @@ class DependencyHandler:
59
59
  f"Dependency `{self.name}` is not installed. You can activate the installation."
60
60
  ) from e
61
61
  else:
62
- logger.warning(f"Dependency {self.name} is not installed: {e}")
62
+ logger.warning(f"Dependency {self.name} is not installed, trying to install {e}")
63
63
  self.pip_install(install_path=install_path)
64
-
65
- logger.info(f"Dependency {self.name} is now installed in {install_path}")
64
+ logger.warning(f"Dependency {self.name} is now installed in {install_path}")
66
65
 
67
66
  def pip_install(self, install_path: str):
68
67
  """
pum/schema_migrations.py CHANGED
@@ -110,7 +110,7 @@ class SchemaMigrations:
110
110
 
111
111
  if not allow_multiple_schemas and len(self.exists_in_other_schemas(connection)) > 0:
112
112
  raise PumException(
113
- f"Another {self.config.config.pum.migration_table_schema}.{self.config.config.pum.migration_table_name} table exists in another schema (). "
113
+ f"Another {self.config.config.pum.migration_table_schema}.{MIGRATION_TABLE_NAME} table exists in another schema (). "
114
114
  "Please use the allow_multiple_schemas option to create a new one."
115
115
  )
116
116
 
pum/upgrader.py CHANGED
@@ -51,7 +51,6 @@ class Upgrader:
51
51
  max_version: str | packaging.version.Version | None = None,
52
52
  roles: bool = False,
53
53
  grant: bool = False,
54
- demo_data: str | None = None,
55
54
  beta_testing: bool = False,
56
55
  commit: bool = False,
57
56
  ) -> None:
@@ -80,11 +79,6 @@ class Upgrader:
80
79
  commit:
81
80
  If True, the changes will be committed to the database.
82
81
  """
83
- if demo_data and demo_data not in self.config.demo_data():
84
- raise PumException(
85
- f"Demo data '{demo_data}' not found in the configuration. Available demo data: {self.config.demo_data()}"
86
- )
87
-
88
82
  if self.schema_migrations.exists(connection):
89
83
  msg = (
90
84
  f"Schema migrations table {self.config.config.pum.migration_table_schema}.pum_migrations already exists. "
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pum
3
- Version: 1.1.9
3
+ Version: 1.1.11
4
4
  Summary: Pum stands for "Postgres Upgrades Manager". It is a Database migration management tool very similar to flyway-db or Liquibase, based on metadata tables.
5
5
  Author-email: Denis Rouzaud <denis@opengis.ch>
6
6
  License-Expression: GPL-2.0-or-later
@@ -3,7 +3,7 @@ pum/changelog.py,sha256=yDc5swmMd5gb2vCEAlenoq5gs-ZEGc4uXicBtiGxkOk,3692
3
3
  pum/checker.py,sha256=GT2v7793HP1g94dv0mL6CHtQfblQwAyeFHEWCy44lkc,14379
4
4
  pum/cli.py,sha256=mQtspJUYp6TwKfU6x0L5ke9q_pMxrf9Du8xd2bOtREA,14317
5
5
  pum/config_model.py,sha256=piSQBYp29gnzqmtN50_OUw5o9d7Q5dEzj4q6G7cIFik,6396
6
- pum/dependency_handler.py,sha256=34wvDGWlI-vsMFm1z0XcSDN2cnL_VFAh61GWmeYEzk4,3841
6
+ pum/dependency_handler.py,sha256=AVeemsh6zUumRJKbRLRwP_FRC0x3K16TJiK2i9ogvn0,3861
7
7
  pum/dumper.py,sha256=EJZ8T44JM0GKgdqw1ENOfhZ-RI89OQ4DNdoTZKtLdEw,3404
8
8
  pum/exceptions.py,sha256=xyzzY4ht1nKfrVt59Giulflpmu83nJhxoTygrqiqPlw,1137
9
9
  pum/hook.py,sha256=5MrVa6Xr0o28RfsXylGDatlM_vOKfKtGJmhYx8crC94,9541
@@ -11,13 +11,13 @@ pum/info.py,sha256=CGj-Lt4Y2l2ymAl3OFqCWfJD5xZF4aaUSztAiSKwgE4,1395
11
11
  pum/parameter.py,sha256=qdbWk3WZc419AW-qwGMxlgc-7GEhdwIoPBnDk6UsVZU,2485
12
12
  pum/pum_config.py,sha256=xTEdYh-628pnkoqH56NoPIuhIQauc1d6hksM8hcCCU4,11232
13
13
  pum/role_manager.py,sha256=yr-fmytflGqANY3IZIpgJBoMOK98ynTWfemIBhAy79A,10131
14
- pum/schema_migrations.py,sha256=FiaqAbhFX7vd3Rk_R43kd7-QWfil-Q5587EU8xSLBkA,10504
14
+ pum/schema_migrations.py,sha256=MCA40pCptwWeoZQuZb3zyvbLDU7I1YdRbr1Hgpe9hYg,10481
15
15
  pum/sql_content.py,sha256=KoAa3CNVH_Hh6Z3FxpCYJCsG1NEiCRpfzlfP8wPFZHE,10414
16
- pum/upgrader.py,sha256=C0WRNm3A9wqossb-j2kaJBAnJpv7IDXNcc1MKlFg6z0,6684
16
+ pum/upgrader.py,sha256=vA_JMaiVDJVvNcXx9iu6RTX0V_ljyzoK2vlYJZ22maA,6410
17
17
  pum/conf/pum_config_example.yaml,sha256=_nwV_7z6S_Se-mejh_My0JFLY-A0Q4nigeLGPZAfcqg,424
18
- pum-1.1.9.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
19
- pum-1.1.9.dist-info/METADATA,sha256=6Dh9xnPMp0-TixMi_3dIKUwPe3Xf817LRsC29CS35u8,3138
20
- pum-1.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
- pum-1.1.9.dist-info/entry_points.txt,sha256=U6dmxSpKs1Pe9vWiR29VPhJMDjrmZeJCSxvfLGR8BD4,36
22
- pum-1.1.9.dist-info/top_level.txt,sha256=ddiI4HLBhY6ql-NNm0Ez0JhoOHdWDIzrHeCdHmmagcc,4
23
- pum-1.1.9.dist-info/RECORD,,
18
+ pum-1.1.11.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
19
+ pum-1.1.11.dist-info/METADATA,sha256=WolZB8eJ3_lZSnpQdvL8O6l-SAIYvOz_B-mjeHPyAFw,3139
20
+ pum-1.1.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ pum-1.1.11.dist-info/entry_points.txt,sha256=U6dmxSpKs1Pe9vWiR29VPhJMDjrmZeJCSxvfLGR8BD4,36
22
+ pum-1.1.11.dist-info/top_level.txt,sha256=ddiI4HLBhY6ql-NNm0Ez0JhoOHdWDIzrHeCdHmmagcc,4
23
+ pum-1.1.11.dist-info/RECORD,,
File without changes