rbx.cp 0.10.0rc0__py3-none-any.whl → 0.10.2__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.
rbx/box/checkers.py CHANGED
@@ -30,7 +30,7 @@ def compile_checker(progress: Optional[StatusProgress] = None) -> str:
30
30
  try:
31
31
  digest = compile_item(checker, sanitized=SanitizationLevel.PREFER)
32
32
  except Exception as e:
33
- console.console.print('[error]Failed compiling checker.[/error]')
33
+ console.console.print('[error]Failed compiling checker[/error]')
34
34
  raise typer.Exit(1) from e
35
35
  return digest
36
36
 
rbx/box/contest/main.py CHANGED
@@ -16,7 +16,6 @@ from rbx.box.contest.contest_package import (
16
16
  within_contest,
17
17
  )
18
18
  from rbx.box.contest.schema import ContestProblem
19
- from rbx.box.linting import fix_package
20
19
  from rbx.box.packaging import contest_main as packaging
21
20
  from rbx.box.schema import Package
22
21
  from rbx.config import open_editor
@@ -75,7 +74,7 @@ def create(
75
74
 
76
75
  with cd.new_package_cd(dest_path):
77
76
  contest_utils.clear_all_caches()
78
- fix_package()
77
+ # fix_package()
79
78
  presets.generate_lock()
80
79
 
81
80
 
@@ -98,7 +97,7 @@ def init(
98
97
  presets.install_contest(pathlib.Path.cwd(), fetch_info)
99
98
 
100
99
  contest_utils.clear_all_caches()
101
- fix_package()
100
+ # fix_package()
102
101
  presets.generate_lock()
103
102
 
104
103
 
rbx/box/creation.py CHANGED
@@ -5,7 +5,6 @@ import typer
5
5
 
6
6
  from rbx import console, utils
7
7
  from rbx.box import package, presets
8
- from rbx.box.linting import fix_package
9
8
 
10
9
 
11
10
  def create(
@@ -43,6 +42,6 @@ def create(
43
42
  problem['name'] = name
44
43
  utils.save_ruyaml(dest_path / 'problem.rbx.yml', ru, problem)
45
44
 
46
- fix_package(dest_path)
45
+ # fix_package(dest_path)
47
46
 
48
47
  presets.generate_lock(dest_path)
rbx/box/linting.py CHANGED
@@ -51,9 +51,9 @@ def fix_yaml(
51
51
  )
52
52
  _, changed = yamlfix.fix_files([str(path)], dry_run=False, config=config)
53
53
 
54
- if model_cls is not None:
55
- if fix_language_server(path, model_cls):
56
- changed = True
54
+ # if model_cls is not None:
55
+ # if fix_language_server(path, model_cls):
56
+ # changed = True
57
57
 
58
58
  if changed and verbose:
59
59
  console.console.print(
@@ -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,14 +1,3 @@
1
- \documentclass[a4paper,11pt]{article}
2
-
3
- \def\lang{\VAR{lang}}
4
- \usepackage{icpc}
5
-
6
- %- if problem.blocks.preamble is defined
7
- \VAR{problem.blocks.preamble}
8
- %- endif
9
-
10
- \begin{document}
11
-
12
1
  \includeProblem
13
2
  %- if problem.short_name is defined
14
3
  [\VAR{problem.short_name}]
@@ -49,9 +38,8 @@
49
38
  %- endif
50
39
 
51
40
  %- if problem.blocks.notes is defined
52
- \subsection*{Observações}
41
+ \subsection*{\strNotes}
53
42
  \VAR{problem.blocks.notes}
54
43
  %- endif
55
44
  }
56
- \end{document}
57
45
 
@@ -49,7 +49,7 @@
49
49
  %- endif
50
50
 
51
51
  %- if problem.blocks.notes is defined
52
- \subsection*{Observações}
52
+ \subsection*{\strNotes}
53
53
  \VAR{problem.blocks.notes}
54
54
  %- endif
55
55
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rbx.cp
3
- Version: 0.10.0rc0
3
+ Version: 0.10.2
4
4
  Summary:
5
5
  Author: Roberto Sales
6
6
  Requires-Python: >=3.9.1,<4.0.0
@@ -4,7 +4,7 @@ rbx/autoenum.py,sha256=cusv8ClXRlDVvhZ8eDrtYcL_2peXlHugAey_ht8roXk,12025
4
4
  rbx/box/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  rbx/box/builder.py,sha256=MDm2qqmhedAbhn3rWP6cDwbBsGhV6sz_2sg1zLkPDw0,3613
6
6
  rbx/box/cd.py,sha256=_XAzb3kV1NUaaRs8hc9SGDo10O1yh2_gr1EiAKzfUjI,2711
7
- rbx/box/checkers.py,sha256=2eLfMOzJajoca26M4rOBxUxve3-BpxcMu_q2upI1Pcg,13017
7
+ rbx/box/checkers.py,sha256=wjS64fDrEkTjU6f80strt4QEBHPo4FQDh9ijELhOQT0,13016
8
8
  rbx/box/cli.py,sha256=a_tjWct-pin60cZ3OIg3SsyCjIoSWR0m6_lepFxDbDE,29778
9
9
  rbx/box/code.py,sha256=4GChCeUaHjT7stvtPAURbCL1_V238geG3xmXQjbdV20,26708
10
10
  rbx/box/compile.py,sha256=Kzn5mEQu4vb91W9vjyt0DS6cfPJzFLTUoowFj7uHLUo,2539
@@ -13,10 +13,10 @@ rbx/box/contest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  rbx/box/contest/build_contest_statements.py,sha256=SLAhvYPlRD1gCKJRxnDWYsJeF9xMir9L1_cYISG3JD4,12028
14
14
  rbx/box/contest/contest_package.py,sha256=r6BGq3S4Ezj3Ep7pCmtvz3SN44npb2_rKJEoT5lSOqk,2985
15
15
  rbx/box/contest/contest_utils.py,sha256=fsWHG1e65wq9zvRY3tdf32VF0nU1yzGTOBX5yjXiNk4,1102
16
- rbx/box/contest/main.py,sha256=fAxT9KUuKOyCujmJOjtqj0EJB9guTO85jebzYbVPS7A,8388
16
+ rbx/box/contest/main.py,sha256=e_DjbrwpXTFZQaVWJO7prJyehJ702GkVEAGEraRK6h4,8352
17
17
  rbx/box/contest/schema.py,sha256=eb7xtyq078YYWYHueximNhyHFINzwgLMFm1j9U3LxBQ,7461
18
18
  rbx/box/contest/statements.py,sha256=wTLmCO3VlGUcN-CzBf-uKUSOAbLUnDeZhdMcsIuF63A,3803
19
- rbx/box/creation.py,sha256=I3sclB5WTK_pcXDnYU6LEbvGVSHwRS_30L3GVAz-QqM,1369
19
+ rbx/box/creation.py,sha256=oTAC11XV2Pw2YAlF_d11Eo7A1fD6ItlpFMpLEzMLyFI,1331
20
20
  rbx/box/deferred.py,sha256=II3X9e87JCOZtmspnHh-n4PFqh-FsH_oc0XJHZ9ZYVQ,691
21
21
  rbx/box/download.py,sha256=tLW5gLVeLk0gHMEMwScSoHIXQPkXuPsqXzItsrsnUZY,3070
22
22
  rbx/box/dump_schemas.py,sha256=3j5t47_vJmXj0BCczxDX6ByOcsfolGEDNCBXlPpk86w,593
@@ -32,7 +32,7 @@ rbx/box/header.py,sha256=ifErXcIxG5lM5AyRiHDr7JE401vR4ORNXCNpHXxN_ls,2001
32
32
  rbx/box/lang.py,sha256=GaWvf4rgukflIZ9ti4MUKSJcz9wm2mIVuFcrO-pA8L8,669
33
33
  rbx/box/lazy_importing_main.py,sha256=6Z8As7qVFFT619xHH9Xt8VCH57NjC4aDxfAgkWiUwT8,116
34
34
  rbx/box/lazy_importing_test.py,sha256=B0-b3y_DkxEmtVfu4NfmVsgVdFl6kRCsEL6GLMHJISo,628
35
- rbx/box/linting.py,sha256=XdIgn8uRmPt06mLaP9ROnn6P1aSRdery6FkiLazLDM8,3181
35
+ rbx/box/linting.py,sha256=wRE0hKCduTBHZYBFmmis_d9AMTsDu0Q-AjByCeTnkrY,3187
36
36
  rbx/box/main.py,sha256=a8CYi77kOywPFly4-ucEIJLXQW-1NFp91kK2fA42YTE,86
37
37
  rbx/box/naming.py,sha256=pOG37X_wQM9CCSYwJIUf-b-ZHEs_nchO7wQEdP_quJg,1367
38
38
  rbx/box/package.py,sha256=ezSiqCl0EYEiasMeg8XF79Kyh6kqvabmrobNveEzcLM,13554
@@ -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
@@ -223,9 +223,9 @@ rbx/resources/presets/default/problem/testplan/random.py,sha256=-iPorU24QHfp39EY
223
223
  rbx/resources/presets/default/problem/testplan/random.txt,sha256=2BA_AM8IAKEcrUTJhnzWnNJN8whDN82E2137NhFkt2U,137
224
224
  rbx/resources/presets/default/problem/validator.cpp,sha256=w4gl1u30Dx1N9oRTVtIg_rPlIyL6QdN_Bi5FDpp4gyw,317
225
225
  rbx/resources/presets/default/problem/wcmp.cpp,sha256=gbjJe3Vf9-YzHCEqBUq30aI3jMZXhqBDn3jjecYOn-w,902
226
- rbx/resources/presets/default/shared/contest_template.rbx.tex,sha256=p7fb3pNh9l-0gSXrsjuJ_4c11X2CFPp_Ef6sYtr7bc0,1285
226
+ rbx/resources/presets/default/shared/contest_template.rbx.tex,sha256=-oEgAhjnOLURinkgU7iGdRp8ixyEGksUmAkBXedZJcE,1086
227
227
  rbx/resources/presets/default/shared/icpc.sty,sha256=A_bSsldpeyzxRCYWpc6k55P5zrDZFpHaIcvZ_WOVW30,8043
228
- rbx/resources/presets/default/shared/problem_template.rbx.tex,sha256=p7fb3pNh9l-0gSXrsjuJ_4c11X2CFPp_Ef6sYtr7bc0,1285
228
+ rbx/resources/presets/default/shared/problem_template.rbx.tex,sha256=AjziXNWluAGsQiPQ2r477RkrMpNQJ1kcgidU8T_C4KA,1281
229
229
  rbx/resources/templates/rbx.h,sha256=Iwtmr2gdDYmZ2VlIurmleBb_uEpriWd4EX0dJta8xUA,2179
230
230
  rbx/resources/templates/template.cpp,sha256=xXWpWo7fa7HfmPNqkmHcmv3i46Wm0ZL-gPmkRfGvLn4,317
231
231
  rbx/run.py,sha256=8WsEAdj7FwYSc9itfJ977n5HN5CYN63T__HRYI6IB1A,1515
@@ -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.0rc0.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
243
- rbx_cp-0.10.0rc0.dist-info/METADATA,sha256=EHyOY6PqaUM-PolY0_5ZmX_cNKqD3T6tFq-C95FYfZ0,4628
244
- rbx_cp-0.10.0rc0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
245
- rbx_cp-0.10.0rc0.dist-info/entry_points.txt,sha256=qBTLBOeifT1F00LWaEewRRE_jQPgvH7BUdJfZ-dYsFU,57
246
- rbx_cp-0.10.0rc0.dist-info/RECORD,,
242
+ rbx_cp-0.10.2.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
243
+ rbx_cp-0.10.2.dist-info/METADATA,sha256=N3YFqZSgUBovfboMBrudFCv1pgRhArY9Y6slQE4bQoA,4625
244
+ rbx_cp-0.10.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
245
+ rbx_cp-0.10.2.dist-info/entry_points.txt,sha256=qBTLBOeifT1F00LWaEewRRE_jQPgvH7BUdJfZ-dYsFU,57
246
+ rbx_cp-0.10.2.dist-info/RECORD,,