rbx.cp 0.10.0__py3-none-any.whl → 0.10.1__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.
@@ -17,6 +17,8 @@ from rbx.grading.judge.digester import digest_cooperatively
17
17
 
18
18
  app = typer.Typer(no_args_is_help=True)
19
19
 
20
+ _FALLBACK_PRESET_URI = 'rsalesc/rbx/rbx/resources/presets/default'
21
+
20
22
 
21
23
  def _find_preset_yaml(root: pathlib.Path = pathlib.Path()) -> Optional[pathlib.Path]:
22
24
  found = root / 'preset.rbx.yml'
@@ -476,7 +478,7 @@ def get_preset_fetch_info_with_fallback(
476
478
  # Use active preset if any, otherwise use the default preset.
477
479
  if get_active_preset_or_null() is not None:
478
480
  return None
479
- default_preset = get_preset_fetch_info('default')
481
+ default_preset = get_preset_fetch_info(_FALLBACK_PRESET_URI)
480
482
  if default_preset is None:
481
483
  console.console.print(
482
484
  '[error]Internal error: could not find [item]default[/item] preset.[/error]'
@@ -651,14 +653,15 @@ def _install_preset_from_fetch_info(
651
653
  update=update,
652
654
  )
653
655
  return
654
- if _install_preset_from_resources(
655
- fetch_info,
656
- dest,
657
- ensure_contest=ensure_contest,
658
- ensure_problem=ensure_problem,
659
- update=update,
660
- ):
661
- return
656
+ # NOTE: Disabled for now.
657
+ # if _install_preset_from_resources(
658
+ # fetch_info,
659
+ # dest,
660
+ # ensure_contest=ensure_contest,
661
+ # ensure_problem=ensure_problem,
662
+ # update=update,
663
+ # ):
664
+ # return
662
665
  console.console.print(
663
666
  f'[error]Preset [item]{fetch_info.name}[/item] not found.[/error]'
664
667
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rbx.cp
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary:
5
5
  Author: Roberto Sales
6
6
  Requires-Python: >=3.9.1,<4.0.0
@@ -50,7 +50,7 @@ rbx/box/packaging/polygon/polygon_api.py,sha256=mPKEqiwANJ1nr-JhOgzGMaDhnbljsAgz
50
50
  rbx/box/packaging/polygon/test.py,sha256=bgEju5PwudgyfwxXJagm8fM6CJVlWM6l_-2q1V-oKaQ,3069
51
51
  rbx/box/packaging/polygon/upload.py,sha256=6dIbjwygKtirLBkbh40UgtHU1NHGxSMoFAtg2BcC2II,12902
52
52
  rbx/box/packaging/polygon/xml_schema.py,sha256=ZgcLyvxggMUccbTNdzflue5G-FTN2_ZmOGGF7FD0Y5A,2851
53
- rbx/box/presets/__init__.py,sha256=tD3BDA4KTcHQv3BEKVuKn4KKAD2N8IysoK9hvF5lJr8,33291
53
+ rbx/box/presets/__init__.py,sha256=ccQVAkS5FFlQGMKUH05GhThSHmYChTVU8LABIjsat0c,33416
54
54
  rbx/box/presets/fetch.py,sha256=900aq9S8e12TlgSenG0iHgtF4OWgqavZsptgI_a1YKM,2508
55
55
  rbx/box/presets/lock_schema.py,sha256=8PKL7UMX4dkdVpCPLwYtaNIIrZpAfHGvTfnF8bRFedM,1708
56
56
  rbx/box/presets/schema.py,sha256=iOGWHqJ9Z-ljQV8ljOjQMuCwqJQLJKm_pYX9cLjZbmE,2432
@@ -239,8 +239,8 @@ rbx/testcase.py,sha256=yKOq3CAJZ1YTmInvnoIs0u1iJnRj_X85XiWbLI-p9d8,1951
239
239
  rbx/testcase_rendering.py,sha256=nfmv6dSEqd4aR3TsaODwkKGK6AXty_DDKtWf_ejiQpI,2084
240
240
  rbx/testing_utils.py,sha256=x_PqD8Zd2PkN91NxVHUnSTs044-1WK5KKtttKQBXpFs,2083
241
241
  rbx/utils.py,sha256=YvN0q1vaLR9HxUfXKOTx1iN6Bp_fI8YNTQiJ8TNq7eM,4957
242
- rbx_cp-0.10.0.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
243
- rbx_cp-0.10.0.dist-info/METADATA,sha256=enMjCkrXf0RTETfvUM5fhfF1R04yMl4me39ESaA0tKU,4625
244
- rbx_cp-0.10.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
245
- rbx_cp-0.10.0.dist-info/entry_points.txt,sha256=qBTLBOeifT1F00LWaEewRRE_jQPgvH7BUdJfZ-dYsFU,57
246
- rbx_cp-0.10.0.dist-info/RECORD,,
242
+ rbx_cp-0.10.1.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
243
+ rbx_cp-0.10.1.dist-info/METADATA,sha256=R1fvzRgSUQdibCM14_aWM-qKG1SkSD8u2RUP901TRio,4625
244
+ rbx_cp-0.10.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
245
+ rbx_cp-0.10.1.dist-info/entry_points.txt,sha256=qBTLBOeifT1F00LWaEewRRE_jQPgvH7BUdJfZ-dYsFU,57
246
+ rbx_cp-0.10.1.dist-info/RECORD,,