c2cgeoportal-geoportal 2.8.1.125__py2.py3-none-any.whl → 2.8.1.126__py2.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.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
 
3
- # Copyright (c) 2021-2023, Camptocamp SA
3
+ # Copyright (c) 2021-2024, Camptocamp SA
4
4
  # All rights reserved.
5
5
 
6
6
  # Redistribution and use in source and binary forms, with or without
@@ -47,6 +47,9 @@ def main() -> None:
47
47
  default=[],
48
48
  help="Additional pg_dump argument, example: '--arg=--schema=main', may be used multiple times.",
49
49
  )
50
+ parser.add_argument(
51
+ "--docker-compose-version-2", action="store_true", help="Use Docker Compose version 2"
52
+ )
50
53
  parser.add_argument("file", help="The file path to backup")
51
54
  args = parser.parse_args()
52
55
 
@@ -89,15 +92,15 @@ def main() -> None:
89
92
  else:
90
93
  subprocess.run(
91
94
  [
92
- "docker-compose",
95
+ *(["docker", "compose"] if args.docker_compose_version_2 else ["docker-compose"]),
93
96
  "exec",
94
97
  "-T",
95
98
  "tools",
96
99
  "bash",
97
100
  "-c",
98
101
  'pg_dump --format=c --dbname="$PGDATABASE"',
99
- ]
100
- + args.arg,
102
+ *args.arg,
103
+ ],
101
104
  stdout=file_out,
102
105
  check=True,
103
106
  )
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
 
3
- # Copyright (c) 2021-2023, Camptocamp SA
3
+ # Copyright (c) 2021-2024, Camptocamp SA
4
4
  # All rights reserved.
5
5
 
6
6
  # Redistribution and use in source and binary forms, with or without
@@ -51,6 +51,9 @@ def main() -> None:
51
51
  default=[],
52
52
  help="Additional pg_restore argument, example: '--arg=--schema=main', may be used multiple times.",
53
53
  )
54
+ parser.add_argument(
55
+ "--docker-compose-version-2", action="store_true", help="Use Docker Compose version 2"
56
+ )
54
57
  parser.add_argument("file", help="The file path to restore")
55
58
  args = parser.parse_args()
56
59
 
@@ -92,9 +95,9 @@ def main() -> None:
92
95
  )
93
96
  else:
94
97
  subprocess.run(
95
- ["docker-compose"]
96
- + ["--file={}".format(f) for f in args.docker_compose_file]
97
- + [
98
+ [
99
+ *(["docker", "compose"] if args.docker_compose_version_2 else ["docker-compose"]),
100
+ *("--file={}".format(f) for f in args.docker_compose_file),
98
101
  "exec",
99
102
  "-T",
100
103
  "tools",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: c2cgeoportal-geoportal
3
- Version: 2.8.1.125
3
+ Version: 2.8.1.126
4
4
  Summary: c2cgeoportal geoportal
5
5
  Home-page: https://github.com/camptocamp/c2cgeoportal/
6
6
  Author: Camptocamp
@@ -128,8 +128,8 @@ c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/print/print-app
128
128
  c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/print/print-apps/{{cookiecutter.package}}/north.svg,sha256=rnHO-cNiy9ZyfwvI-o2dYipzuu-vh9rn0nE45FjfOPo,2925
129
129
  c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/print/print-apps/{{cookiecutter.package}}/results.jrxml,sha256=gf5grUvt-oG_H0LnsNvBWMDGqvH3uuW_wfy0O-n5ui4,1309
130
130
  c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/qgisserver/pg_service.conf.tmpl,sha256=WcjfsfsfNLHAfbg84HgEIb64EDnnJJWGnyAdPTXD0PI,296
131
- c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/scripts/db-backup,sha256=ICon_ZLnjNcE3GM9RNulkyDvAG2Dn9uOgxr9xK_ki7A,4251
132
- c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/scripts/db-restore,sha256=ZfWPZY0tcmQ32aEjlMdFjRB_7IlmwCPjAHDC6fWhBrc,4441
131
+ c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/scripts/db-backup,sha256=nE7vMj42Eoi3A2HivX9b9KSjioKrG9sksWOJy0Je36Q,4446
132
+ c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/scripts/db-restore,sha256=_AeXNkjTmhsBPJ4JrGzbl3uEpQw0VLVAIqLBOFJ6t1A,4637
133
133
  c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
134
134
  c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/tests/test_app.py,sha256=VBcCdHJokg4UKA2hzM_xVElQCnBqJ7O8NVO1Iro7-t0,1564
135
135
  c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/tilegeneration/config.yaml.tmpl,sha256=y-X8uAZP9mEq3k6NygBI_FynZeEQ_IatFPXkzWs5UAQ,6181
@@ -184,8 +184,8 @@ tests/test_mapserverproxy_route_predicate.py,sha256=SzILSSzIuilzIkUYVPZiVzLwW1du
184
184
  tests/test_raster.py,sha256=82NJ2MXgZlMqs0ytN-VgNw376iURdk4PkAg__dyh5ns,11948
185
185
  tests/test_wmstparsing.py,sha256=xjA8nJuXFl3H5Bfs4sJw_8qX8E8qvAALK7Hs2-DTP2A,9054
186
186
  tests/xmlstr.py,sha256=rkTKSU4FGjupBKLx75H8o-goB0KbQrxDvdpc6xVX_uQ,5985
187
- c2cgeoportal_geoportal-2.8.1.125.dist-info/METADATA,sha256=xyY2SZnYXpLkaoIDjTjzsfGUELHqFffGVd2ve6K9n1k,2140
188
- c2cgeoportal_geoportal-2.8.1.125.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
189
- c2cgeoportal_geoportal-2.8.1.125.dist-info/entry_points.txt,sha256=w0xGr1Bo8q5GBFiP4JgqbSIg-bNhG7bsGoEaGSTfzaE,1415
190
- c2cgeoportal_geoportal-2.8.1.125.dist-info/top_level.txt,sha256=PJIbY7Nx51dDrJ052f5mDA7c6Tehm5aD-Gb32L_CtJA,29
191
- c2cgeoportal_geoportal-2.8.1.125.dist-info/RECORD,,
187
+ c2cgeoportal_geoportal-2.8.1.126.dist-info/METADATA,sha256=bj7ZK6NjP-Pt4uldDJK1h94OIslszbTNmWnosraeV6o,2140
188
+ c2cgeoportal_geoportal-2.8.1.126.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
189
+ c2cgeoportal_geoportal-2.8.1.126.dist-info/entry_points.txt,sha256=w0xGr1Bo8q5GBFiP4JgqbSIg-bNhG7bsGoEaGSTfzaE,1415
190
+ c2cgeoportal_geoportal-2.8.1.126.dist-info/top_level.txt,sha256=PJIbY7Nx51dDrJ052f5mDA7c6Tehm5aD-Gb32L_CtJA,29
191
+ c2cgeoportal_geoportal-2.8.1.126.dist-info/RECORD,,