rbx.cp 0.17.6__py3-none-any.whl → 0.17.8__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/__version__.py +1 -1
- rbx/box/schema.py +7 -0
- rbx/box/tooling/boca/scrape.py +2 -3
- rbx/box/tooling/boca/scraper.py +1 -2
- rbx/grading/judge/sandboxes/stupid_sandbox.py +4 -1
- rbx/resources/presets/default/preset.rbx.yml +1 -1
- rbx/utils.py +1 -1
- {rbx_cp-0.17.6.dist-info → rbx_cp-0.17.8.dist-info}/METADATA +1 -1
- {rbx_cp-0.17.6.dist-info → rbx_cp-0.17.8.dist-info}/RECORD +12 -12
- {rbx_cp-0.17.6.dist-info → rbx_cp-0.17.8.dist-info}/WHEEL +1 -1
- {rbx_cp-0.17.6.dist-info → rbx_cp-0.17.8.dist-info}/LICENSE +0 -0
- {rbx_cp-0.17.6.dist-info → rbx_cp-0.17.8.dist-info}/entry_points.txt +0 -0
rbx/__version__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '0.17.
|
1
|
+
__version__ = '0.17.8'
|
rbx/box/schema.py
CHANGED
@@ -106,6 +106,11 @@ class ExpectedOutcome(AutoEnum):
|
|
106
106
|
|
107
107
|
Especially useful for environments where TLE and RTE are indistinguishable."""
|
108
108
|
|
109
|
+
JUDGE_FAILED = alias('judge failed', 'jf') # type: ignore
|
110
|
+
"""Expected outcome for solutions that finish with a judge failed verdict.
|
111
|
+
|
112
|
+
Only useful for checker tests."""
|
113
|
+
|
109
114
|
def style(self) -> str:
|
110
115
|
if self == ExpectedOutcome.ANY:
|
111
116
|
return 'orange'
|
@@ -161,6 +166,8 @@ class ExpectedOutcome(AutoEnum):
|
|
161
166
|
return outcome in {Outcome.RUNTIME_ERROR} or outcome.is_slow()
|
162
167
|
if self == ExpectedOutcome.OUTPUT_LIMIT_EXCEEDED:
|
163
168
|
return outcome == Outcome.OUTPUT_LIMIT_EXCEEDED
|
169
|
+
if self == ExpectedOutcome.JUDGE_FAILED:
|
170
|
+
return outcome == Outcome.JUDGE_FAILED
|
164
171
|
return False
|
165
172
|
|
166
173
|
def get_matches(self) -> List[Outcome]:
|
rbx/box/tooling/boca/scrape.py
CHANGED
@@ -22,9 +22,8 @@ def scrape_boca(into_path: pathlib.Path):
|
|
22
22
|
|
23
23
|
def work(run: BocaRun):
|
24
24
|
scraper.download_run(
|
25
|
-
run
|
26
|
-
|
27
|
-
pathlib.Path(into_path) / run.problem_shortname,
|
25
|
+
run,
|
26
|
+
pathlib.Path(into_path),
|
28
27
|
name=f'{run.run_number}-{run.site_number}-{run.outcome.short_name().lower()}',
|
29
28
|
)
|
30
29
|
|
rbx/box/tooling/boca/scraper.py
CHANGED
@@ -4,7 +4,6 @@ import hashlib
|
|
4
4
|
import os
|
5
5
|
import pathlib
|
6
6
|
import re
|
7
|
-
import shutil
|
8
7
|
import time
|
9
8
|
import typing
|
10
9
|
from typing import Any, Callable, List, NoReturn, Optional, Tuple, Union
|
@@ -635,7 +634,7 @@ class BocaScraper:
|
|
635
634
|
)
|
636
635
|
final_path = into_dir / filename
|
637
636
|
final_path.parent.mkdir(parents=True, exist_ok=True)
|
638
|
-
|
637
|
+
final_path.write_text(detailed_run.code)
|
639
638
|
return final_path
|
640
639
|
|
641
640
|
def _set_starttime(
|
@@ -335,8 +335,11 @@ class StupidSandbox(SandboxBase):
|
|
335
335
|
else:
|
336
336
|
raise RuntimeError(f'Unknown pid: {pid}')
|
337
337
|
|
338
|
-
for p in (interactor, program
|
338
|
+
for p in (interactor, program):
|
339
339
|
p.close()
|
340
|
+
if should_tee:
|
341
|
+
for p in (solution_tee, interactor_tee):
|
342
|
+
p.close()
|
340
343
|
|
341
344
|
return typing.cast(Tuple[SandboxLog, SandboxLog], tuple(results))
|
342
345
|
|
rbx/utils.py
CHANGED
@@ -52,7 +52,7 @@ def get_upgrade_command(
|
|
52
52
|
parsed_version = (
|
53
53
|
semver.VersionInfo.parse(version) if isinstance(version, str) else version
|
54
54
|
) or get_semver()
|
55
|
-
return f'
|
55
|
+
return f'uv tool install {PIP_NAME}@{parsed_version.major}'
|
56
56
|
|
57
57
|
|
58
58
|
def check_version_compatibility_between(
|
@@ -1,5 +1,5 @@
|
|
1
1
|
rbx/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
rbx/__version__.py,sha256=
|
2
|
+
rbx/__version__.py,sha256=YJo_Aah7IjrrnqgQ0geT3JVZmcyVLd5hsYZZzqkenbQ,23
|
3
3
|
rbx/annotations.py,sha256=_TkLhgZWiUyon3bonHwUo03ls1jY8LwgcR4bVgtgnc0,3519
|
4
4
|
rbx/autoenum.py,sha256=cusv8ClXRlDVvhZ8eDrtYcL_2peXlHugAey_ht8roXk,12025
|
5
5
|
rbx/box/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -61,7 +61,7 @@ rbx/box/remote.py,sha256=hCdiZSmh6Y1vnSEwLZ_gtAMYV-WLVlU3iVnvcObRpRc,5274
|
|
61
61
|
rbx/box/retries.py,sha256=BZsi4sYBjm3VK5zb_pBQSYQuKo3ZntmtEFoVPZHg4QI,4982
|
62
62
|
rbx/box/sanitizers/issue_stack.py,sha256=nHtF8bksTIbvOlmDEy72SoXnXfQyIDBHU_3NOn-X1Ss,3534
|
63
63
|
rbx/box/sanitizers/warning_stack.py,sha256=3-5quni5NWMs2k2NI6MWVFR_ec8BeGFVZ29xyifZ_dY,2882
|
64
|
-
rbx/box/schema.py,sha256=
|
64
|
+
rbx/box/schema.py,sha256=Q4rDXssTVsmf8kc_0tvZ1SnyXauYi-XubV2WiLBHIBY,20292
|
65
65
|
rbx/box/setter_config.py,sha256=vyZbsbgkjelZOblMLX5A1j4CLqPNQkrv83IZr_3-46Y,5301
|
66
66
|
rbx/box/solutions.py,sha256=Id5X9711p5VX0kZfVXpj_klADPz8k5GvQsV3oXvhgrU,52848
|
67
67
|
rbx/box/state.py,sha256=MMf3DvfQji0jKEliCHct2Tpp_0epL1tvP8HbHNArQIc,166
|
@@ -93,8 +93,8 @@ rbx/box/tooling/boca/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
93
93
|
rbx/box/tooling/boca/debug_utils.py,sha256=Rs1ptMWsy32jl_DJZASeOfyqh8HCJdhIXufdbxpE_oM,4732
|
94
94
|
rbx/box/tooling/boca/main.py,sha256=knl1rpaHIwA63KkzMJMZQrejzMpbTPBhYqGx1IpuNm4,289
|
95
95
|
rbx/box/tooling/boca/manual_scrape.py,sha256=iuNtOHrWczdaWNNRMKGYkgr-wSwgtjZedpz5-sX5IRQ,724
|
96
|
-
rbx/box/tooling/boca/scrape.py,sha256=
|
97
|
-
rbx/box/tooling/boca/scraper.py,sha256=
|
96
|
+
rbx/box/tooling/boca/scrape.py,sha256=7p4DW0smqX0_6o-C1KFIAve3YI7zfIZkP0Y9kAgHDLE,956
|
97
|
+
rbx/box/tooling/boca/scraper.py,sha256=XwKeRI5Dn9dBHRVA2CXu9qIjsxkAsi5bPDpVwdr7fRk,33740
|
98
98
|
rbx/box/tooling/converter.py,sha256=cTRUuZ7GToMuAUo6VE7tOtaeNkXHJZE29me0yopvvsY,2544
|
99
99
|
rbx/box/tooling/main.py,sha256=uj6XHjJMF3nyb4enbbTK8XbUAuiRLT_RP1kVwSMqV5E,2003
|
100
100
|
rbx/box/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -135,7 +135,7 @@ rbx/grading/judge/digester.py,sha256=gtOIe_iL4PEWA7OKelW1gjSI-nBvbOpDPJGV8VQyjSg
|
|
135
135
|
rbx/grading/judge/program.py,sha256=VJ-ItHGsumAvR7YWYtnmAFairfAIu_ASHfyhu7bqvRw,10671
|
136
136
|
rbx/grading/judge/sandbox.py,sha256=e9Nstf9EoFGE0OBQgqcz5BD5hYDegIeGP5dWVZSA29Q,21342
|
137
137
|
rbx/grading/judge/sandboxes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
138
|
-
rbx/grading/judge/sandboxes/stupid_sandbox.py,sha256=
|
138
|
+
rbx/grading/judge/sandboxes/stupid_sandbox.py,sha256=0Pw-Jvh2A7Jbm5mpx3r4mojP9HgFkDhSREWFuS3ixKs,11765
|
139
139
|
rbx/grading/judge/sandboxes/tee.py,sha256=fLulB8fV7k5cO-ikRgURpsETrvr6LoUSjGxFM3GZs5U,672
|
140
140
|
rbx/grading/judge/storage.py,sha256=8o3pz0Ansanc5t23XGtshJHCD_q4dIR_XorpeVEvg1g,15621
|
141
141
|
rbx/grading/limits.py,sha256=zCyRTEtUQFd1RKL_fFKl3qSiRSIDCalBaSLlt1yhi0Y,896
|
@@ -201,7 +201,7 @@ rbx/resources/presets/default/contest/statement/info.rbx.tex,sha256=Wz8Tbmi2lPWM
|
|
201
201
|
rbx/resources/presets/default/contest/statement/instructions.tex,sha256=JG_eR13ukZgEahrrmrbg40H8cUzpoUE8QLocihN-fZ8,2414
|
202
202
|
rbx/resources/presets/default/contest/statement/logo.png,sha256=RLNYmZoc-BR6AZKkmr4UEg3h01YeFzvy604jMAQC7aA,414485
|
203
203
|
rbx/resources/presets/default/env.rbx.yml,sha256=quSPG5Xs9KroYLATNLPNtORLGRWtrLLt2Fx81T1enAM,1692
|
204
|
-
rbx/resources/presets/default/preset.rbx.yml,sha256=
|
204
|
+
rbx/resources/presets/default/preset.rbx.yml,sha256=j9TYuDEd4NVbVg1Q7KcFl0Af8Rt_vIcw-3mhNmKi_bQ,520
|
205
205
|
rbx/resources/presets/default/problem/.gitignore,sha256=1rt95y9Q7ZHIQn28JyZQUdD5zkpRosjAl9ZqoQmX2cE,149
|
206
206
|
rbx/resources/presets/default/problem/gens/gen.cpp,sha256=rn6sGRjZ1sFE1Rq02r6488iquY9xTrutcvLv4d1sohA,178
|
207
207
|
rbx/resources/presets/default/problem/manual_tests/samples/000.in,sha256=w66OEtCJGqjUNj8cJrqgImgGVm8W_OlIUtF255ds-ow,4
|
@@ -222,9 +222,9 @@ rbx/resources/presets/default/shared/problem_template.rbx.tex,sha256=KDibf4LtUio
|
|
222
222
|
rbx/resources/templates/rbx.h,sha256=0AZds9R0PmuPgnlTENb33Y81LW0LlnmOJFaoN8oG3Yo,3638
|
223
223
|
rbx/resources/templates/template.cpp,sha256=xXWpWo7fa7HfmPNqkmHcmv3i46Wm0ZL-gPmkRfGvLn4,317
|
224
224
|
rbx/testing_utils.py,sha256=vNNdaytowJfuopszVHeFzVtHWlPfipPW4zpqCOvdZKU,2908
|
225
|
-
rbx/utils.py,sha256=
|
226
|
-
rbx_cp-0.17.
|
227
|
-
rbx_cp-0.17.
|
228
|
-
rbx_cp-0.17.
|
229
|
-
rbx_cp-0.17.
|
230
|
-
rbx_cp-0.17.
|
225
|
+
rbx/utils.py,sha256=ua7qzt5rrpTKgEZXC6cKVDVklOReIYWL6sNsSWkrWE4,11355
|
226
|
+
rbx_cp-0.17.8.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
227
|
+
rbx_cp-0.17.8.dist-info/METADATA,sha256=TtEtoCRE5ToPgHA0W3hbbVtDWN1utV9NXYYdBN0mM5w,4799
|
228
|
+
rbx_cp-0.17.8.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
229
|
+
rbx_cp-0.17.8.dist-info/entry_points.txt,sha256=Gw2_BZ5Jon61biaH_ETbAQGXy8fR5On9gw2U4A1erpo,40
|
230
|
+
rbx_cp-0.17.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|