viur-cli 2.0.2__tar.gz → 2.1.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 (42) hide show
  1. {viur_cli-2.0.2 → viur_cli-2.1.0}/LICENSE +1 -1
  2. {viur_cli-2.0.2/src/viur_cli.egg-info → viur_cli-2.1.0}/PKG-INFO +30 -24
  3. {viur_cli-2.0.2 → viur_cli-2.1.0}/README.md +26 -20
  4. {viur_cli-2.0.2 → viur_cli-2.1.0}/setup.cfg +2 -3
  5. {viur_cli-2.0.2 → viur_cli-2.1.0}/setup.py +1 -3
  6. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/cloud.py +118 -141
  7. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/conf.py +6 -13
  8. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/local.py +7 -0
  9. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/package.py +29 -19
  10. viur_cli-2.1.0/src/viur_cli/setup.py +110 -0
  11. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/tool.py +80 -114
  12. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/update.py +31 -31
  13. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/version.py +1 -2
  14. {viur_cli-2.0.2 → viur_cli-2.1.0/src/viur_cli.egg-info}/PKG-INFO +30 -24
  15. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli.egg-info/SOURCES.txt +1 -2
  16. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli.egg-info/entry_points.txt +0 -1
  17. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli.egg-info/requires.txt +2 -2
  18. viur_cli-2.0.2/src/viur_cli/scripts/viur_2to3.py +0 -153
  19. viur_cli-2.0.2/src/viur_cli/setup.py +0 -51
  20. {viur_cli-2.0.2 → viur_cli-2.1.0}/pyproject.toml +0 -0
  21. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/__init__.py +0 -0
  22. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/build.py +0 -0
  23. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/cli.py +0 -0
  24. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/deprecated.py +0 -0
  25. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/__init__.py +0 -0
  26. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/cli.py +0 -0
  27. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/scriptor/__init__.py +0 -0
  28. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/scriptor/csvwriter.py +0 -0
  29. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/scriptor/dialog.py +0 -0
  30. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/scriptor/logger.py +0 -0
  31. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/scriptor/module.py +0 -0
  32. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/scriptor/network.py +0 -0
  33. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/scriptor/progressbar.py +0 -0
  34. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/scriptor/readers.py +0 -0
  35. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/scriptor/utils.py +0 -0
  36. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/scriptor/viur.py +0 -0
  37. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scriptor/scriptor/writer.py +0 -0
  38. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scripts/__init__.py +0 -0
  39. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/scripts/get_pyodide.py +0 -0
  40. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli/utils.py +0 -0
  41. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli.egg-info/dependency_links.txt +0 -0
  42. {viur_cli-2.0.2 → viur_cli-2.1.0}/src/viur_cli.egg-info/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- Copyright © 2023 by Andreas H. Kelch, Mausbrand Informationssysteme GmbH.
1
+ Copyright © 2025 by Mausbrand Informationssysteme GmbH.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: viur_cli
3
- Version: 2.0.2
3
+ Version: 2.1.0
4
4
  Summary: Command-line interface for ViUR application maintenance.
5
5
  Home-page: https://github.com/viur-framework/viur-cli
6
6
  Author: Andreas H. Kelch
@@ -12,10 +12,10 @@ Classifier: License :: OSI Approved :: MIT License
12
12
  Requires-Python: >=3.11
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: app_server~=0.9
15
+ Requires-Dist: app_server~=1.0
16
16
  Requires-Dist: click~=8.1.7
17
17
  Requires-Dist: pipfile-requirements~=0.3
18
- Requires-Dist: requests~=2.31
18
+ Requires-Dist: requests~=2.0
19
19
  Requires-Dist: semver~=3.0
20
20
 
21
21
  <div align="center">
@@ -32,7 +32,7 @@ Requires-Dist: semver~=3.0
32
32
  </div>
33
33
 
34
34
  ## What does it do?
35
- `viur-cli` allows to control, maintain, develop and deploy a ViUR project from one central
35
+ `viur-cli` allows to control, maintain, develop and deploy a ViUR project from one central
36
36
  location by using the `viur` command.
37
37
 
38
38
 
@@ -52,7 +52,7 @@ $ viur -h
52
52
  will show all the commands that are currently supported by viur-cli
53
53
 
54
54
  ```sh
55
- $ viur --version
55
+ $ viur --version
56
56
  ```
57
57
  will show your current viur-cli version
58
58
 
@@ -66,7 +66,7 @@ you can use this to get started quickly with a new viur project from scratch.
66
66
  ```sh
67
67
  $ viur run [profile]
68
68
  ```
69
- run the appserver and start your app locally. You may specify a target profile.
69
+ run the appserver and start your app locally. You may specify a target profile.
70
70
 
71
71
 
72
72
  ```sh
@@ -75,7 +75,7 @@ $ viur check [--dev]
75
75
  Runs a security check for the python environment and for each npm project registered under builds.
76
76
 
77
77
  ```sh
78
- $ viur package {install|update} {vi|scriptor|admin|all}
78
+ $ viur package {install|update} {vi|scriptor|admin|all}
79
79
  ```
80
80
  handles ViUR ecosystem package operations
81
81
 
@@ -94,7 +94,7 @@ Builds ViUR Project or specific apps
94
94
  Commands:
95
95
  - `app` Build a specific application
96
96
  - `clean` Clean up Build Artifacts
97
- - `release` Build all relevant applications to deploy the project
97
+ - `release` Build all relevant applications to deploy the project
98
98
 
99
99
  ```sh
100
100
  $ viur cloud deploy {app|index|cloudfunction} {profile} {--ext|--yes|--name}
@@ -108,7 +108,7 @@ Scripts:
108
108
  - `profile` The project.json profile you want to Work from
109
109
 
110
110
  ```sh
111
- $ viur cloud init {service} {profile}
111
+ $ viur cloud init {service} {profile}
112
112
  ```
113
113
  This Function makes the init deployment for a ViUR project.
114
114
  This Function needs to be called so that the development server works locally.
@@ -120,7 +120,7 @@ $ viur cloud {enable|disable} backup
120
120
  Enable/ Disable the Backup buckets you need to Backup a cloud project in the Google Cloud Console
121
121
 
122
122
  ```sh
123
- $ viur cloud setup {gcloud|gcroles}
123
+ $ viur cloud setup {gcloud|gcroles}
124
124
  ```
125
125
  Scripts:
126
126
  - `gcloud` This Function setups your project to work on the gcloud plattform
@@ -128,7 +128,7 @@ Scripts:
128
128
 
129
129
 
130
130
  ```sh
131
- $ viur cloud get {gcroles}
131
+ $ viur cloud get {gcroles}
132
132
  ```
133
133
  Scripts:
134
134
  - `gcroles` This function lets you get Roles for your google appengine Workspace in a readable .json Format
@@ -144,8 +144,8 @@ Scripts:
144
144
 
145
145
  Options:
146
146
  - `vi`
147
- - `admin`
148
- - `scriptor`
147
+ - `admin`
148
+ - `scriptor`
149
149
  - `all`
150
150
 
151
151
  ```sh
@@ -170,20 +170,20 @@ It contains the default viur project profile and it can be expanded with several
170
170
  ### Example project.json
171
171
  ```json lines
172
172
  {
173
- /*
173
+ /*
174
174
  The format Key, Value pair defines the project json format, the viur-cli uses
175
175
  */
176
176
  "format": "2.0.0",
177
177
  /*
178
178
  The first level contains of your profiles
179
- "default" is a profile, which is inherited by "develop" and "live" and can be customized for particular versions
179
+ "default" is a profile, which is inherited by "develop" and "live" and can be customized for particular versions
180
180
  and/or GAE projects. Therefore, every profile can contain all keys from the "default" profile.*/
181
181
  "default": {
182
182
  /*
183
183
  The builds level declares steps for the `viur build` command.
184
184
  It can contain viur components and other components that need to be build before project deployment
185
185
  */
186
- "builds": {
186
+ "builds": {
187
187
  "admin": {
188
188
  "command": "viur install admin",
189
189
  "kind": "exec",
@@ -194,6 +194,12 @@ It contains the default viur project profile and it can be expanded with several
194
194
  "kind": "npm",
195
195
  "source": ""
196
196
  }
197
+ /* OPTIONAL arguments, can be set in default or in a specific profile */
198
+ "appyaml": "app_stub.yaml", // Use a name other than "app.yaml"
199
+ "appyaml_substitition": true, // Set to true to replace only standard variables in app.yaml
200
+ "appyaml_substitition": { // Set to an object to replace these in addition to the standard variables in app.yaml
201
+ "$REGION": "europe-west3"
202
+ }
197
203
  },
198
204
  "gcloud": {
199
205
  "functions": { //Declarations for a cloud function
@@ -215,9 +221,9 @@ It contains the default viur project profile and it can be expanded with several
215
221
  "version": "live-$(year)-$(month)-$(day)", // Version string; Variables can be used here.
216
222
  "application_name": "my-live-app-viur3" // Name of the GAE project *4
217
223
  },
218
- "develop": {
219
- "application_name": "my-dev-app-viur3",
220
- "version": "dev-$(user)"
224
+ "develop": {
225
+ "application_name": "my-dev-app-viur3",
226
+ "version": "dev-$(user)"
221
227
  }
222
228
  }
223
229
 
@@ -252,14 +258,14 @@ Scripts:
252
258
  - `pyodide` run the get_pyodide command
253
259
  - `ssl-fix` ssl fix for MacOS
254
260
 
255
- for example the 2to3 script helps porting viur2 project to viur3, it can be used to automatically rename some things that are deprecated
261
+ for example the 2to3 script helps porting viur2 project to viur3, it can be used to automatically rename some things that are deprecated
256
262
  in viur3 as well, so you can use it whenever a new core version is released for viur3 projects as well:
257
263
 
258
264
  ```sh
259
265
  $ viur tool 2to3 -d .
260
266
  ```
261
- will dry-run the script in the current directory and not make any changes, only suggestions. If you want to make the changes,
262
- leave out the -d argument and if you are a daring go-getter and like to live dangerously, replace the -d with -x,
267
+ will dry-run the script in the current directory and not make any changes, only suggestions. If you want to make the changes,
268
+ leave out the -d argument and if you are a daring go-getter and like to live dangerously, replace the -d with -x,
263
269
  which will write the suggested changes without making a backup of the changed files.
264
270
 
265
271
  ## Development
@@ -291,7 +297,7 @@ viur-cli depends on
291
297
 
292
298
  ## License
293
299
 
294
- Copyright © 2024 by Mausbrand Informationssysteme GmbH.<br>
300
+ Copyright © 2025 by Mausbrand Informationssysteme GmbH.<br>
295
301
  Mausbrand and ViUR are registered trademarks of Mausbrand Informationssysteme GmbH.
296
302
 
297
303
  This project is free software under the MIT license.<br>
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
 
14
14
  ## What does it do?
15
- `viur-cli` allows to control, maintain, develop and deploy a ViUR project from one central
15
+ `viur-cli` allows to control, maintain, develop and deploy a ViUR project from one central
16
16
  location by using the `viur` command.
17
17
 
18
18
 
@@ -32,7 +32,7 @@ $ viur -h
32
32
  will show all the commands that are currently supported by viur-cli
33
33
 
34
34
  ```sh
35
- $ viur --version
35
+ $ viur --version
36
36
  ```
37
37
  will show your current viur-cli version
38
38
 
@@ -46,7 +46,7 @@ you can use this to get started quickly with a new viur project from scratch.
46
46
  ```sh
47
47
  $ viur run [profile]
48
48
  ```
49
- run the appserver and start your app locally. You may specify a target profile.
49
+ run the appserver and start your app locally. You may specify a target profile.
50
50
 
51
51
 
52
52
  ```sh
@@ -55,7 +55,7 @@ $ viur check [--dev]
55
55
  Runs a security check for the python environment and for each npm project registered under builds.
56
56
 
57
57
  ```sh
58
- $ viur package {install|update} {vi|scriptor|admin|all}
58
+ $ viur package {install|update} {vi|scriptor|admin|all}
59
59
  ```
60
60
  handles ViUR ecosystem package operations
61
61
 
@@ -74,7 +74,7 @@ Builds ViUR Project or specific apps
74
74
  Commands:
75
75
  - `app` Build a specific application
76
76
  - `clean` Clean up Build Artifacts
77
- - `release` Build all relevant applications to deploy the project
77
+ - `release` Build all relevant applications to deploy the project
78
78
 
79
79
  ```sh
80
80
  $ viur cloud deploy {app|index|cloudfunction} {profile} {--ext|--yes|--name}
@@ -88,7 +88,7 @@ Scripts:
88
88
  - `profile` The project.json profile you want to Work from
89
89
 
90
90
  ```sh
91
- $ viur cloud init {service} {profile}
91
+ $ viur cloud init {service} {profile}
92
92
  ```
93
93
  This Function makes the init deployment for a ViUR project.
94
94
  This Function needs to be called so that the development server works locally.
@@ -100,7 +100,7 @@ $ viur cloud {enable|disable} backup
100
100
  Enable/ Disable the Backup buckets you need to Backup a cloud project in the Google Cloud Console
101
101
 
102
102
  ```sh
103
- $ viur cloud setup {gcloud|gcroles}
103
+ $ viur cloud setup {gcloud|gcroles}
104
104
  ```
105
105
  Scripts:
106
106
  - `gcloud` This Function setups your project to work on the gcloud plattform
@@ -108,7 +108,7 @@ Scripts:
108
108
 
109
109
 
110
110
  ```sh
111
- $ viur cloud get {gcroles}
111
+ $ viur cloud get {gcroles}
112
112
  ```
113
113
  Scripts:
114
114
  - `gcroles` This function lets you get Roles for your google appengine Workspace in a readable .json Format
@@ -124,8 +124,8 @@ Scripts:
124
124
 
125
125
  Options:
126
126
  - `vi`
127
- - `admin`
128
- - `scriptor`
127
+ - `admin`
128
+ - `scriptor`
129
129
  - `all`
130
130
 
131
131
  ```sh
@@ -150,20 +150,20 @@ It contains the default viur project profile and it can be expanded with several
150
150
  ### Example project.json
151
151
  ```json lines
152
152
  {
153
- /*
153
+ /*
154
154
  The format Key, Value pair defines the project json format, the viur-cli uses
155
155
  */
156
156
  "format": "2.0.0",
157
157
  /*
158
158
  The first level contains of your profiles
159
- "default" is a profile, which is inherited by "develop" and "live" and can be customized for particular versions
159
+ "default" is a profile, which is inherited by "develop" and "live" and can be customized for particular versions
160
160
  and/or GAE projects. Therefore, every profile can contain all keys from the "default" profile.*/
161
161
  "default": {
162
162
  /*
163
163
  The builds level declares steps for the `viur build` command.
164
164
  It can contain viur components and other components that need to be build before project deployment
165
165
  */
166
- "builds": {
166
+ "builds": {
167
167
  "admin": {
168
168
  "command": "viur install admin",
169
169
  "kind": "exec",
@@ -174,6 +174,12 @@ It contains the default viur project profile and it can be expanded with several
174
174
  "kind": "npm",
175
175
  "source": ""
176
176
  }
177
+ /* OPTIONAL arguments, can be set in default or in a specific profile */
178
+ "appyaml": "app_stub.yaml", // Use a name other than "app.yaml"
179
+ "appyaml_substitition": true, // Set to true to replace only standard variables in app.yaml
180
+ "appyaml_substitition": { // Set to an object to replace these in addition to the standard variables in app.yaml
181
+ "$REGION": "europe-west3"
182
+ }
177
183
  },
178
184
  "gcloud": {
179
185
  "functions": { //Declarations for a cloud function
@@ -195,9 +201,9 @@ It contains the default viur project profile and it can be expanded with several
195
201
  "version": "live-$(year)-$(month)-$(day)", // Version string; Variables can be used here.
196
202
  "application_name": "my-live-app-viur3" // Name of the GAE project *4
197
203
  },
198
- "develop": {
199
- "application_name": "my-dev-app-viur3",
200
- "version": "dev-$(user)"
204
+ "develop": {
205
+ "application_name": "my-dev-app-viur3",
206
+ "version": "dev-$(user)"
201
207
  }
202
208
  }
203
209
 
@@ -232,14 +238,14 @@ Scripts:
232
238
  - `pyodide` run the get_pyodide command
233
239
  - `ssl-fix` ssl fix for MacOS
234
240
 
235
- for example the 2to3 script helps porting viur2 project to viur3, it can be used to automatically rename some things that are deprecated
241
+ for example the 2to3 script helps porting viur2 project to viur3, it can be used to automatically rename some things that are deprecated
236
242
  in viur3 as well, so you can use it whenever a new core version is released for viur3 projects as well:
237
243
 
238
244
  ```sh
239
245
  $ viur tool 2to3 -d .
240
246
  ```
241
- will dry-run the script in the current directory and not make any changes, only suggestions. If you want to make the changes,
242
- leave out the -d argument and if you are a daring go-getter and like to live dangerously, replace the -d with -x,
247
+ will dry-run the script in the current directory and not make any changes, only suggestions. If you want to make the changes,
248
+ leave out the -d argument and if you are a daring go-getter and like to live dangerously, replace the -d with -x,
243
249
  which will write the suggested changes without making a backup of the changed files.
244
250
 
245
251
  ## Development
@@ -271,7 +277,7 @@ viur-cli depends on
271
277
 
272
278
  ## License
273
279
 
274
- Copyright © 2024 by Mausbrand Informationssysteme GmbH.<br>
280
+ Copyright © 2025 by Mausbrand Informationssysteme GmbH.<br>
275
281
  Mausbrand and ViUR are registered trademarks of Mausbrand Informationssysteme GmbH.
276
282
 
277
283
  This project is free software under the MIT license.<br>
@@ -20,10 +20,10 @@ package_dir =
20
20
  packages = find:
21
21
  python_requires = >=3.11
22
22
  install_requires =
23
- app_server~=0.9
23
+ app_server~=1.0
24
24
  click~=8.1.7
25
25
  pipfile-requirements~=0.3
26
- requests~=2.31
26
+ requests~=2.0
27
27
  semver~=3.0
28
28
 
29
29
  [options.packages.find]
@@ -32,7 +32,6 @@ where = src
32
32
  [options.entry_points]
33
33
  console_scripts =
34
34
  viur = viur_cli:cli
35
- viur-2to3 = viur_cli.scripts.viur_2to3:main
36
35
  get-pyodide = viur_cli.scripts.get_pyodide:main
37
36
 
38
37
  [egg_info]
@@ -1,18 +1,16 @@
1
1
  import setuptools
2
- import os
3
2
  from subprocess import call
4
3
  from setuptools.command.install import install
5
4
  from setuptools.command.develop import develop
6
5
 
7
6
 
8
-
9
-
10
7
  class PostDevelopCommand(develop):
11
8
  """Post-installation for development mode."""
12
9
  def run(self):
13
10
  develop.run(self)
14
11
  call(['./postinstall.sh'])
15
12
 
13
+
16
14
  class PostInstallCommand(install):
17
15
  """Post-installation for installation mode."""
18
16
  def run(self):