rbx.cp 0.5.40__py3-none-any.whl → 0.5.45__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.
Files changed (57) hide show
  1. rbx/box/builder.py +6 -6
  2. rbx/box/checkers.py +100 -25
  3. rbx/box/cli.py +868 -0
  4. rbx/box/code.py +272 -84
  5. rbx/box/contest/statements.py +4 -2
  6. rbx/box/generators.py +55 -49
  7. rbx/box/generators_test.py +7 -7
  8. rbx/box/main.py +1 -868
  9. rbx/box/package.py +57 -2
  10. rbx/box/packaging/boca/packager.py +2 -1
  11. rbx/box/packaging/main.py +17 -9
  12. rbx/box/packaging/moj/packager.py +49 -10
  13. rbx/box/retries.py +5 -5
  14. rbx/box/schema.py +20 -4
  15. rbx/box/solutions.py +46 -108
  16. rbx/box/solutions_test.py +5 -6
  17. rbx/box/state.py +1 -0
  18. rbx/box/statements/build_statements.py +4 -2
  19. rbx/box/stresses.py +23 -12
  20. rbx/box/tasks.py +277 -0
  21. rbx/box/testcase_extractors.py +21 -21
  22. rbx/box/testcases/main.py +19 -14
  23. rbx/box/unit.py +10 -7
  24. rbx/box/validators.py +10 -10
  25. rbx/box/validators_test.py +3 -3
  26. rbx/grading/judge/cacher.py +0 -4
  27. rbx/grading/judge/digester.py +0 -3
  28. rbx/grading/judge/sandbox.py +15 -0
  29. rbx/grading/judge/sandboxes/stupid_sandbox.py +20 -6
  30. rbx/grading/judge/sandboxes/timeit.py +117 -7
  31. rbx/grading/judge/storage.py +0 -4
  32. rbx/grading/steps.py +76 -2
  33. rbx/grading/steps_with_caching.py +45 -3
  34. rbx/grading/steps_with_caching_run_test.py +51 -49
  35. rbx/main.py +0 -4
  36. rbx/resources/packagers/moj/scripts/compare.sh +25 -6
  37. rbx/test.py +6 -4
  38. {rbx_cp-0.5.40.dist-info → rbx_cp-0.5.45.dist-info}/METADATA +2 -2
  39. {rbx_cp-0.5.40.dist-info → rbx_cp-0.5.45.dist-info}/RECORD +42 -55
  40. {rbx_cp-0.5.40.dist-info → rbx_cp-0.5.45.dist-info}/WHEEL +1 -1
  41. rbx/testdata/box1/gen1.cpp +0 -7
  42. rbx/testdata/box1/gen2.cpp +0 -9
  43. rbx/testdata/box1/genScript.py +0 -2
  44. rbx/testdata/box1/hard-tle.sol.cpp +0 -26
  45. rbx/testdata/box1/ole.cpp +0 -17
  46. rbx/testdata/box1/problem.rbx.yml +0 -39
  47. rbx/testdata/box1/re.sol.cpp +0 -23
  48. rbx/testdata/box1/sol.cpp +0 -22
  49. rbx/testdata/box1/tests/1.in +0 -1
  50. rbx/testdata/box1/tle-and-incorrect.sol.cpp +0 -33
  51. rbx/testdata/box1/tle.sol.cpp +0 -35
  52. rbx/testdata/box1/validator.cpp +0 -11
  53. rbx/testdata/box1/wa.sol.cpp +0 -22
  54. rbx/testdata/caching/executable.py +0 -1
  55. rbx/testdata/compatible +0 -0
  56. {rbx_cp-0.5.40.dist-info → rbx_cp-0.5.45.dist-info}/LICENSE +0 -0
  57. {rbx_cp-0.5.40.dist-info → rbx_cp-0.5.45.dist-info}/entry_points.txt +0 -0
@@ -12,12 +12,12 @@ from rbx.testing_utils import print_directory_tree
12
12
 
13
13
 
14
14
  @pytest.mark.test_pkg('box1')
15
- def test_generator_works(pkg_from_testdata: pathlib.Path):
16
- generate_testcases()
15
+ async def test_generator_works(pkg_from_testdata: pathlib.Path):
16
+ await generate_testcases()
17
17
  entries = [
18
- entry.group_entry for entry in extract_generation_testcases_from_groups()
18
+ entry.group_entry for entry in await extract_generation_testcases_from_groups()
19
19
  ]
20
- generate_outputs_for_testcases(entries)
20
+ await generate_outputs_for_testcases(entries)
21
21
 
22
22
  # Debug when fail.
23
23
  print_directory_tree(pkg_from_testdata)
@@ -37,11 +37,11 @@ def test_generator_works(pkg_from_testdata: pathlib.Path):
37
37
 
38
38
 
39
39
  @pytest.mark.test_pkg('box1')
40
- def test_generator_cache_works(
40
+ async def test_generator_cache_works(
41
41
  pkg_from_testdata: pathlib.Path,
42
42
  ):
43
43
  # Run the first time.
44
- generate_testcases()
44
+ await generate_testcases()
45
45
  assert (
46
46
  package.get_build_testgroup_path('gen1') / '1-gen-000.in'
47
47
  ).read_text() == '123\n'
@@ -54,7 +54,7 @@ def test_generator_cache_works(
54
54
  gen_path.write_text(gen_path.read_text().replace('123', '4567'))
55
55
 
56
56
  # Run the second time.
57
- generate_testcases()
57
+ await generate_testcases()
58
58
 
59
59
  # Debug when fail.
60
60
  print_directory_tree(pkg_from_testdata)