rbx.cp 0.5.67__py3-none-any.whl → 0.5.69__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/solutions.py CHANGED
@@ -725,26 +725,24 @@ def expand_solutions_with_source(sols: List[str]) -> List[Tuple[Solution, bool]]
725
725
  pkg_sols = {str(sol.path): sol for sol in pkg.solutions}
726
726
 
727
727
  # Download remote sols.
728
- sols = remote.expand_files(sols)
728
+ path_sols = remote.expand_files(sols)
729
729
 
730
730
  # Ensure sols exist.
731
- sols = [sol for sol in sols if pathlib.Path(sol).is_file()]
731
+ path_sols = [sol for sol in path_sols if sol.is_file()]
732
732
 
733
733
  seen_sols = set()
734
734
  res: List[Tuple[Solution, bool]] = []
735
- for sol in sols:
736
- if sol in seen_sols:
735
+ for sol in path_sols:
736
+ if str(sol) in seen_sols:
737
737
  # This solution was already added.
738
738
  continue
739
- if sol in pkg_sols:
739
+ if str(sol) in pkg_sols:
740
740
  # This solution is in the package.
741
- res.append((pkg_sols[sol], False))
741
+ res.append((pkg_sols[str(sol)], False))
742
742
  else:
743
743
  # This solution is fetched from some source.
744
- res.append(
745
- (Solution(path=pathlib.Path(sol), outcome=ExpectedOutcome.ANY), True)
746
- )
747
- seen_sols.add(sol)
744
+ res.append((Solution(path=sol, outcome=ExpectedOutcome.ANY), True))
745
+ seen_sols.add(str(sol))
748
746
  return res
749
747
 
750
748
 
@@ -115,6 +115,12 @@ if [ -n "$(sed -n -E "/$regex/p" src/$name)" ]; then
115
115
  sed -i -E "s/$regex/public class Main\1/" src/Main.java
116
116
  fi
117
117
 
118
+ echo "Klass is $klass"
119
+
120
+ cat <<EOF >src/Manifest.txt
121
+ Main-Class: $klass
122
+ EOF
123
+
118
124
  cat <<EOF >compileit.sh
119
125
  #!/bin/bash
120
126
  javac=$(which javac)
@@ -140,7 +146,7 @@ find . -name "*.java" | while read lin; do
140
146
  echo \$? > ../compileit.retcode
141
147
  done
142
148
  rm -f ../$jarfile
143
- \$jar cvfe ../$jarfile \$klass *
149
+ \$jar cfm ../$jarfile Manifest.txt *
144
150
  exit 0
145
151
  EOF
146
152
  chmod 755 compileit.sh
@@ -182,6 +188,7 @@ fi
182
188
  if [ -f "stderr0" ]; then
183
189
  cat "stderr0"
184
190
  fi
191
+
185
192
  rm -rf src/
186
193
  if [ "$ret" != "0" ]; then
187
194
  echo "Compilation Error: $ret"
@@ -115,13 +115,13 @@ if [ ! -x "\$cc" ]; then
115
115
  exit 47
116
116
  fi
117
117
  cd src
118
- "\$cc" -m py_compile "$name"
119
- pyc_ret=\$?
120
- if [ "\$pyc_ret" != "0" ]; then
121
- echo "python syntax check failed: \$pyc_ret"
122
- echo \$pyc_ret > ../compileit.retcode
123
- exit 0
124
- fi
118
+ # "\$cc" -m py_compile "$name"
119
+ # pyc_ret=\$?
120
+ # if [ "\$pyc_ret" != "0" ]; then
121
+ # echo "python syntax check failed: \$pyc_ret"
122
+ # echo \$pyc_ret > ../compileit.retcode
123
+ # exit 0
124
+ # fi
125
125
 
126
126
  echo "#!/usr/bin/python2" | cat - "$name" > "../$exe"
127
127
  chmod 755 "../$exe"
@@ -115,13 +115,13 @@ if [ ! -x "\$cc" ]; then
115
115
  exit 47
116
116
  fi
117
117
  cd src
118
- "\$cc" -m py_compile "$name"
119
- pyc_ret=\$?
120
- if [ "\$pyc_ret" != "0" ]; then
121
- echo "python syntax check failed: \$pyc_ret"
122
- echo \$pyc_ret > ../compileit.retcode
123
- exit 0
124
- fi
118
+ # "\$cc" -m py_compile "$name"
119
+ # pyc_ret=\$?
120
+ # if [ "\$pyc_ret" != "0" ]; then
121
+ # echo "python syntax check failed: \$pyc_ret"
122
+ # echo \$pyc_ret > ../compileit.retcode
123
+ # exit 0
124
+ # fi
125
125
 
126
126
  echo "#!/usr/bin/python3" | cat - "$name" > "../$exe"
127
127
  chmod 755 "../$exe"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rbx.cp
3
- Version: 0.5.67
3
+ Version: 0.5.69
4
4
  Summary:
5
5
  Author: Roberto Sales
6
6
  Requires-Python: >=3.9,<4.0
@@ -53,7 +53,7 @@ rbx/box/retries.py,sha256=70n2avWa7GYSyNcmhml8qp1K21Fmp-JNjvYC9b_UaNg,4721
53
53
  rbx/box/sanitizers/warning_stack.py,sha256=RI97_GJgdjTKIXY_r0EKp5h0qQQSDSdNDh5K7zINrqs,2861
54
54
  rbx/box/schema.py,sha256=bJgO0KV75mGzCXv24jASFvZFP1peM_qP23_H5MpXM5M,16670
55
55
  rbx/box/setter_config.py,sha256=9iObg6BwxQhFAhIOk31Jc0BDDpRYVGf3SyLIOsWIltM,4393
56
- rbx/box/solutions.py,sha256=wxAXSYGZ3VVee5q6syuMd6v57xBji5nJ0H-gUEx_t4s,50918
56
+ rbx/box/solutions.py,sha256=VLd-v8Ns0qgJ0-wMD9AIW0v4Jiw3dvWzpLrhV1u9P1s,50900
57
57
  rbx/box/solutions_test.py,sha256=PX1TQoRzNd9mi1SGsG7WFrpqFgNrNX5Kwt0mkwFdoOA,1749
58
58
  rbx/box/state.py,sha256=MMf3DvfQji0jKEliCHct2Tpp_0epL1tvP8HbHNArQIc,166
59
59
  rbx/box/statements/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -144,11 +144,11 @@ rbx/resources/packagers/boca/compare.sh,sha256=a6AmQqwrIq616DHjp_S2l95wO7UiMVy0L
144
144
  rbx/resources/packagers/boca/compile/c,sha256=lHLvxzkG_he5jmxWrix0WT80ipMWWUZdOgOQMSpj8oo,4507
145
145
  rbx/resources/packagers/boca/compile/cc,sha256=B_18QkUGcjUg6yrTFlTQuMWnHpTWUKPZmFuk7Y0l1VA,4561
146
146
  rbx/resources/packagers/boca/compile/cpp,sha256=_1pJTSC7uADu-IIdQCaZyMbH8x01wfgxcdZ36oxXncI,4496
147
- rbx/resources/packagers/boca/compile/java,sha256=8T5JYBignVPYOUQyjSUb9eVAVe0x9OsLP5HZDL636W4,5178
147
+ rbx/resources/packagers/boca/compile/java,sha256=vh3IeWzvPWrEX0n9AmAHFlpQrq7MX1feLhHfdBP7onU,5259
148
148
  rbx/resources/packagers/boca/compile/kt,sha256=3B900QSD4jSXnX91gJbvI4ZmNELHSiBb584Tmx7XtOc,4026
149
149
  rbx/resources/packagers/boca/compile/pas,sha256=C5IwZzmZpIos49FrLGafRbdGPODNJn7N5JbnLX_FT_4,4576
150
- rbx/resources/packagers/boca/compile/py2,sha256=mo-Ar-fzhinDlBOKUQ-0iovKVKX-69obDOe71KIIGTo,4725
151
- rbx/resources/packagers/boca/compile/py3,sha256=UOXeXKfdoR90wVEWIH9BvETyTOJmSmtpLoR5nJKTeXQ,4725
150
+ rbx/resources/packagers/boca/compile/py2,sha256=UJknN4xiKP8oMN8tRZ92tDlESXgBfRO69QfyUyjijvA,4739
151
+ rbx/resources/packagers/boca/compile/py3,sha256=L5Yzl_G5kTdmx7N7-oW3Dm_sq4uQJleRmFq84WNfZXo,4739
152
152
  rbx/resources/packagers/boca/interactive/c,sha256=7AgLVL8TO0vGgpAyNVC08ceG83-_yPO7BIPHGLTerck,5720
153
153
  rbx/resources/packagers/boca/interactive/cc,sha256=7AgLVL8TO0vGgpAyNVC08ceG83-_yPO7BIPHGLTerck,5720
154
154
  rbx/resources/packagers/boca/interactive/cpp,sha256=BdyAz61YV1ojQGTKOXJXrMfN9zA9r4X3NnCRb4vJIEE,5719
@@ -217,8 +217,8 @@ rbx/testcase.py,sha256=yKOq3CAJZ1YTmInvnoIs0u1iJnRj_X85XiWbLI-p9d8,1951
217
217
  rbx/testcase_rendering.py,sha256=nfmv6dSEqd4aR3TsaODwkKGK6AXty_DDKtWf_ejiQpI,2084
218
218
  rbx/testing_utils.py,sha256=x_PqD8Zd2PkN91NxVHUnSTs044-1WK5KKtttKQBXpFs,2083
219
219
  rbx/utils.py,sha256=SfR844_i0ebRDMkmS_w1YdZiWPc6h2RGADygewlWRbA,4845
220
- rbx_cp-0.5.67.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
221
- rbx_cp-0.5.67.dist-info/METADATA,sha256=yhbY-Q4k_VRDdqXvgKqCgBRDhP1XxqXGRKUf4ISG_Jg,3604
222
- rbx_cp-0.5.67.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
223
- rbx_cp-0.5.67.dist-info/entry_points.txt,sha256=qBTLBOeifT1F00LWaEewRRE_jQPgvH7BUdJfZ-dYsFU,57
224
- rbx_cp-0.5.67.dist-info/RECORD,,
220
+ rbx_cp-0.5.69.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
221
+ rbx_cp-0.5.69.dist-info/METADATA,sha256=YpETtdyFx34gR3mFyvBUAM5Y62bWSbOiKW4FTfEvmT8,3604
222
+ rbx_cp-0.5.69.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
223
+ rbx_cp-0.5.69.dist-info/entry_points.txt,sha256=qBTLBOeifT1F00LWaEewRRE_jQPgvH7BUdJfZ-dYsFU,57
224
+ rbx_cp-0.5.69.dist-info/RECORD,,