pum 1.1.7__py3-none-any.whl → 1.1.8__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/cli.py CHANGED
@@ -201,6 +201,11 @@ def create_parser() -> argparse.ArgumentParser:
201
201
  parser_install.add_argument(
202
202
  "-d", "--demo-data", help="Load demo data with the given name", type=str, default=None
203
203
  )
204
+ parser_install.add_argument(
205
+ "--beta-testing",
206
+ help="This will install the module in beta testing, meaning that it will not be possible to receive any future updates.",
207
+ action="store_true",
208
+ )
204
209
 
205
210
  # Role management parser
206
211
  parser_role = subparsers.add_parser("role", help="manage roles in the database")
@@ -347,6 +352,7 @@ def cli() -> int: # noqa: PLR0912
347
352
  roles=args.roles,
348
353
  grant=args.grant,
349
354
  demo_data=args.demo_data,
355
+ beta_testing=args.beta_testing,
350
356
  )
351
357
  conn.commit()
352
358
  if args.demo_data:
pum/upgrader.py CHANGED
@@ -52,6 +52,7 @@ class Upgrader:
52
52
  roles: bool = False,
53
53
  grant: bool = False,
54
54
  demo_data: str | None = None,
55
+ beta_testing: bool = False,
55
56
  commit: bool = False,
56
57
  ) -> None:
57
58
  """Installs the given module
@@ -72,6 +73,10 @@ class Upgrader:
72
73
  If True, permissions will be granted to the roles.
73
74
  demo_data:
74
75
  The name of the demo data to load. If None, no demo data is loaded.
76
+ beta_testing:
77
+ If True, the module is installed in beta testing mode.
78
+ This means that the module will not be able to receive any future updates.
79
+ We strongly discourage using this for production.
75
80
  commit:
76
81
  If True, the changes will be committed to the database.
77
82
  """
@@ -108,7 +113,7 @@ class Upgrader:
108
113
  self.schema_migrations.set_baseline(
109
114
  connection=connection,
110
115
  version=changelog.version,
111
- beta_testing=False,
116
+ beta_testing=beta_testing,
112
117
  commit=False,
113
118
  changelog_files=changelog_files,
114
119
  parameters=parameters,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pum
3
- Version: 1.1.7
3
+ Version: 1.1.8
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
@@ -1,7 +1,7 @@
1
1
  pum/__init__.py,sha256=P-NHd6_SYpk9aypefLI62QCZ3f5APOMCwSzrFFCKAew,759
2
2
  pum/changelog.py,sha256=yDc5swmMd5gb2vCEAlenoq5gs-ZEGc4uXicBtiGxkOk,3692
3
3
  pum/checker.py,sha256=GT2v7793HP1g94dv0mL6CHtQfblQwAyeFHEWCy44lkc,14379
4
- pum/cli.py,sha256=nnuApRDXgWaiBZXw2F3iwUxI5nzfIqyMdwhTXS-Jde8,14045
4
+ pum/cli.py,sha256=mQtspJUYp6TwKfU6x0L5ke9q_pMxrf9Du8xd2bOtREA,14317
5
5
  pum/config_model.py,sha256=piSQBYp29gnzqmtN50_OUw5o9d7Q5dEzj4q6G7cIFik,6396
6
6
  pum/dependency_handler.py,sha256=34wvDGWlI-vsMFm1z0XcSDN2cnL_VFAh61GWmeYEzk4,3841
7
7
  pum/dumper.py,sha256=EJZ8T44JM0GKgdqw1ENOfhZ-RI89OQ4DNdoTZKtLdEw,3404
@@ -13,11 +13,11 @@ pum/pum_config.py,sha256=xTEdYh-628pnkoqH56NoPIuhIQauc1d6hksM8hcCCU4,11232
13
13
  pum/role_manager.py,sha256=yr-fmytflGqANY3IZIpgJBoMOK98ynTWfemIBhAy79A,10131
14
14
  pum/schema_migrations.py,sha256=FiaqAbhFX7vd3Rk_R43kd7-QWfil-Q5587EU8xSLBkA,10504
15
15
  pum/sql_content.py,sha256=KoAa3CNVH_Hh6Z3FxpCYJCsG1NEiCRpfzlfP8wPFZHE,10414
16
- pum/upgrader.py,sha256=HrFy-ev55t_nfaMYDOVRd44ACvb56-f4r4rv7m1UBVg,6387
16
+ pum/upgrader.py,sha256=C0WRNm3A9wqossb-j2kaJBAnJpv7IDXNcc1MKlFg6z0,6684
17
17
  pum/conf/pum_config_example.yaml,sha256=_nwV_7z6S_Se-mejh_My0JFLY-A0Q4nigeLGPZAfcqg,424
18
- pum-1.1.7.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
19
- pum-1.1.7.dist-info/METADATA,sha256=3gILn-wgCWHW1l2BD07A2ilNMulTVJqW3xzWNw0upfE,3138
20
- pum-1.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
- pum-1.1.7.dist-info/entry_points.txt,sha256=U6dmxSpKs1Pe9vWiR29VPhJMDjrmZeJCSxvfLGR8BD4,36
22
- pum-1.1.7.dist-info/top_level.txt,sha256=ddiI4HLBhY6ql-NNm0Ez0JhoOHdWDIzrHeCdHmmagcc,4
23
- pum-1.1.7.dist-info/RECORD,,
18
+ pum-1.1.8.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
19
+ pum-1.1.8.dist-info/METADATA,sha256=DjE39lMpsDEsgxn_PBgBhebNT9Ro-v5EfEWnJTvtDys,3138
20
+ pum-1.1.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ pum-1.1.8.dist-info/entry_points.txt,sha256=U6dmxSpKs1Pe9vWiR29VPhJMDjrmZeJCSxvfLGR8BD4,36
22
+ pum-1.1.8.dist-info/top_level.txt,sha256=ddiI4HLBhY6ql-NNm0Ez0JhoOHdWDIzrHeCdHmmagcc,4
23
+ pum-1.1.8.dist-info/RECORD,,
File without changes