vantage6 4.3.4__py3-none-any.whl → 4.4.0rc3__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.

Potentially problematic release.


This version of vantage6 might be problematic. Click here for more details.

tests_cli/test_wizard.py CHANGED
@@ -71,7 +71,15 @@ class WizardTest(unittest.TestCase):
71
71
  def test_server_wizard(self):
72
72
  with patch(f"{module_path}.q") as q:
73
73
  q.prompt.side_effect = self.prompts
74
- q.confirm.return_value.ask.side_effect = [True, True, True, True, True]
74
+ q.confirm.return_value.ask.side_effect = [
75
+ True,
76
+ True,
77
+ True,
78
+ True,
79
+ True,
80
+ True,
81
+ False,
82
+ ]
75
83
 
76
84
  config = server_configuration_questionaire("vantage6")
77
85
 
@@ -87,6 +95,7 @@ class WizardTest(unittest.TestCase):
87
95
  "vpn_server",
88
96
  "rabbitmq",
89
97
  "two_factor_auth",
98
+ "algorithm_stores",
90
99
  ]
91
100
 
92
101
  for key in keys:
vantage6/cli/__build__ CHANGED
@@ -1 +1 @@
1
- 0
1
+ 3
vantage6/cli/_version.py CHANGED
@@ -7,7 +7,7 @@ with open(os.path.join(here, "__build__")) as fp:
7
7
  __build__ = json.load(fp)
8
8
 
9
9
  # Module version
10
- version_info = (4, 3, 4, "final", __build__, 0)
10
+ version_info = (4, 4, 0, "candidate", __build__, 0)
11
11
 
12
12
  # Module version stage suffix map
13
13
  _specifier_ = {"alpha": "a", "beta": "b", "candidate": "rc", "final": ""}
@@ -371,6 +371,28 @@ def server_configuration_questionaire(instance_name: str) -> dict:
371
371
  "start_with_server": run_rabbit_locally,
372
372
  }
373
373
 
374
+ # add algorithm stores to this server
375
+ is_add_community_store = q.confirm(
376
+ "Do you want to make the algorithms from the community algorithm store "
377
+ "available to your users?"
378
+ ).ask()
379
+ algorithm_stores = []
380
+ if is_add_community_store:
381
+ algorithm_stores.append(
382
+ {"name": "Community store", "url": "https://store.cotopaxi.vantage6.ai"}
383
+ )
384
+ add_more_stores = q.confirm(
385
+ "Do you want to add more algorithm stores?", default=False
386
+ ).ask()
387
+ while add_more_stores:
388
+ store_name = q.text(message="Enter the name of the store:").ask()
389
+ store_url = q.text(message="Enter the URL of the store:").ask()
390
+ algorithm_stores.append({"name": store_name, "url": store_url})
391
+ add_more_stores = q.confirm(
392
+ "Do you want to add more algorithm stores?", default=False
393
+ ).ask()
394
+ config["algorithm_stores"] = algorithm_stores
395
+
374
396
  return config
375
397
 
376
398
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vantage6
3
- Version: 4.3.4
3
+ Version: 4.4.0rc3
4
4
  Summary: vantage6 command line interface
5
5
  Home-page: https://github.com/vantage6/vantage6
6
6
  Requires-Python: >=3.10
@@ -15,8 +15,8 @@ Requires-Dist: questionary ==1.10.0
15
15
  Requires-Dist: rich ==13.5.2
16
16
  Requires-Dist: schema ==0.7.5
17
17
  Requires-Dist: SQLAlchemy ==1.4.46
18
- Requires-Dist: vantage6-common ==4.3.4
19
- Requires-Dist: vantage6-client ==4.3.4
18
+ Requires-Dist: vantage6-common ==4.4.0rc3
19
+ Requires-Dist: vantage6-client ==4.4.0rc3
20
20
  Provides-Extra: dev
21
21
  Requires-Dist: coverage ==6.4.4 ; extra == 'dev'
22
22
  Requires-Dist: black ; extra == 'dev'
@@ -2,13 +2,13 @@ tests_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  tests_cli/test_example.py,sha256=0fw_v-lgZEacshWSDwLNyLMA1_xc48bKUGM3ll-n1L0,146
3
3
  tests_cli/test_node_cli.py,sha256=izMUo9r5GjIvXnDjPtaQTQtd9mbb14Z1HFTgobxLmk4,15937
4
4
  tests_cli/test_server_cli.py,sha256=nilQYLV4GuKdNaYRaMO5y13h6P3mw8Dvvf8H84RS43I,5857
5
- tests_cli/test_wizard.py,sha256=H8fhw4uh_o4Q4Yl5SQsIdZGbqaWa8jUBh4lnEaRsDio,4209
6
- vantage6/cli/__build__,sha256=X-zrZv_IbzjZUnhsbWlsecLbwjndTpG0ZynXOif7V-k,1
5
+ tests_cli/test_wizard.py,sha256=NPl3Kp6_Et0GatLfD-p5LagMbkFwEx-vHiOgKoVvxDM,4385
6
+ vantage6/cli/__build__,sha256=TgdAhWK-24tgzgXB3s_jrRa3IjCWfeAfZAt-Rym0n84,1
7
7
  vantage6/cli/__init__.py,sha256=dEbhLHe9VfU3otY3CQkMVrj39uPGWjqzAvHW2B2Flgs,62
8
- vantage6/cli/_version.py,sha256=MnnjtpTb3ICGyXGDtg-sh_OvQUH6a3HG8tpJbic6ho0,696
8
+ vantage6/cli/_version.py,sha256=3tutpIgrakq3Vbnxn8a1YQMsORbHRO3oJvEbbhNhcVc,700
9
9
  vantage6/cli/cli.py,sha256=b5Gvhn4PL4UWShAJB5lHOf37Q_VRUw3UMNgDECZuHHM,5945
10
10
  vantage6/cli/configuration_manager.py,sha256=cN4tQpQjLG5GaGrsjEP-5ed_LqvPApIkNkM1J6ai3n0,3588
11
- vantage6/cli/configuration_wizard.py,sha256=nWG5BSAWbCGEm1WKMrefXv6nyOF2l7-WAfqHp82zsRQ,17022
11
+ vantage6/cli/configuration_wizard.py,sha256=9dfAnBWsvxEEm2HX1_lUURSbSvFoc6d8YkoUYXKDqcI,17949
12
12
  vantage6/cli/globals.py,sha256=-d-y-ASioIMhvzVxNATyFOs5cKXGkiWf_75gqiT2B-M,1642
13
13
  vantage6/cli/utils.py,sha256=8_PZeihjopYXQU10gMwIKr87yDAq-_z2LKi0BcdhNEc,2365
14
14
  vantage6/cli/algorithm/create.py,sha256=2Ks0JnWNldsn9Eg2h_lqn-yIMaJ-OYs-B3cv58tCiIs,1628
@@ -64,8 +64,8 @@ vantage6/cli/template/server_import_config.j2,sha256=PRB0ym_FYjx9vhkmY9C0xzlv_85
64
64
  vantage6/cli/test/feature_tester.py,sha256=vTmJrqjA6J_GFWvZDmin4Nx1AO2Mhy21YacTr2vZi2U,2497
65
65
  vantage6/cli/test/integration_test.py,sha256=DT3qjl1lq7nVBflT5ed1Yu2aNT1cwHCqh8_hafi4e2k,3802
66
66
  vantage6/cli/test/common/diagnostic_runner.py,sha256=x_4ikihgoSTKI914pqlgVziBSg5LpV6MheO6O_GBCeA,6657
67
- vantage6-4.3.4.dist-info/METADATA,sha256=sNf4fhl8J4OFXg5IdcPHif7O2ulLKn2oNsXn8vxgb4g,10453
68
- vantage6-4.3.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
69
- vantage6-4.3.4.dist-info/entry_points.txt,sha256=YFBvwjxoeAGxYyPC-YevEgOBBYRGaXkS6jiOGGCLNy0,157
70
- vantage6-4.3.4.dist-info/top_level.txt,sha256=CYDIBS8jEfFq5YCs_Fuit54K9-3wdosZppTrsymIoUk,19
71
- vantage6-4.3.4.dist-info/RECORD,,
67
+ vantage6-4.4.0rc3.dist-info/METADATA,sha256=W92rDgPxODh3g8jmVWJRtdP-f8-pZhDthV4anwE2P8o,10462
68
+ vantage6-4.4.0rc3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
69
+ vantage6-4.4.0rc3.dist-info/entry_points.txt,sha256=YFBvwjxoeAGxYyPC-YevEgOBBYRGaXkS6jiOGGCLNy0,157
70
+ vantage6-4.4.0rc3.dist-info/top_level.txt,sha256=CYDIBS8jEfFq5YCs_Fuit54K9-3wdosZppTrsymIoUk,19
71
+ vantage6-4.4.0rc3.dist-info/RECORD,,