Skip to content

Commit c5885b3

Browse files
committed
[GR-6672] [GR-9653] [GR-9642] Bump imports to work with 1.0 release changes once merged to master
PullRequest: graalpython-open/26
2 parents 3e0daeb + f2627e5 commit c5885b3

File tree

8 files changed

+24
-23
lines changed

8 files changed

+24
-23
lines changed

ci.jsonnet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@
201201
baseGraalGate + {tags:: "python-"+type} + getPlatform(platform) + {name: "python-"+ type +"-"+platform},
202202

203203
local styleGate = baseGraalGate + eclipseMixin + linuxMixin + {
204-
// temporarily disabled - tags:: "style,fullbuild,python-license",
205-
tags:: "python-license",
204+
tags:: "style,fullbuild,python-license",
206205
name: "python-style",
207206

208207
timelimit: TIME_LIMIT["1h"],

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/BuiltinFunctions.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ public void initialize(PythonCore core) {
157157
builtinConstants.put(BuiltinNames.__DEBUG__, !optimazeFlag);
158158
}
159159

160-
161160
// abs(x)
162161
@Builtin(name = ABS, fixedNumOfArguments = 1)
163162
@GenerateNodeFactory

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/list/ListBuiltins.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ protected Object doGeneric(Object self, Object idx) {
232232
if (!isValidIndexType(idx)) {
233233
throw raise(TypeError, "list indices must be integers or slices, not %p", idx);
234234
}
235-
throw raise(TypeError, "descriptor '__delitem__' requires a 'list' object but received a '%p'", idx);
235+
throw raise(TypeError, "descriptor '__delitem__' requires a 'list' object but received a '%p'", idx);
236236
}
237237

238238
protected boolean isValidIndexType(Object idx) {
@@ -318,7 +318,7 @@ protected Object doGeneric(Object self, Object idx) {
318318
if (!isValidIndexType(idx)) {
319319
throw raise(TypeError, "list indices must be integers or slices, not %p", idx);
320320
}
321-
throw raise(TypeError, "descriptor '__getitem__' requires a 'list' object but received a '%p'", idx);
321+
throw raise(TypeError, "descriptor '__getitem__' requires a 'list' object but received a '%p'", idx);
322322
}
323323

324324
protected boolean isValidIndexType(Object idx) {
@@ -400,7 +400,7 @@ protected Object doGeneric(Object self, Object idx, Object value) {
400400
if (!isValidIndexType(idx)) {
401401
throw raise(TypeError, "list indices must be integers or slices, not %p", idx);
402402
}
403-
throw raise(TypeError, "descriptor '__setitem__' requires a 'list' object but received a '%p'", idx);
403+
throw raise(TypeError, "descriptor '__setitem__' requires a 'list' object but received a '%p'", idx);
404404
}
405405

406406
protected boolean isValidIndexType(Object idx) {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/classes/AbstractObjectIsSubclassNode.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import com.oracle.truffle.api.dsl.NodeChild;
4545
import com.oracle.truffle.api.dsl.NodeChildren;
4646
import com.oracle.truffle.api.dsl.Specialization;
47-
import com.oracle.truffle.api.nodes.ExplodeLoop;
4847
import com.oracle.truffle.api.nodes.NodeInfo;
4948

5049
@NodeInfo(shortName = "cpython://Objects/abstract.c/abstract_issubclass")

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/statement/AssertNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public class AssertNode extends StatementNode {
4343
@Child private CastToBooleanNode condition;
4444
@Child private PNode message;
4545
@Child private LookupAndCallUnaryNode callNode;
46-
@CompilerDirectives.CompilationFinal private Boolean assertionsEnabled = null;
47-
46+
@CompilerDirectives.CompilationFinal private Boolean assertionsEnabled = null;
47+
4848
public AssertNode(CastToBooleanNode condition, PNode message) {
4949
this.condition = condition;
5050
this.message = message;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PythonOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ private PythonOptions() {
9696
@Option(category = OptionCategory.USER, help = "") //
9797
public static final OptionKey<Boolean> PythonInspectFlag = new OptionKey<>(false);
9898

99-
@Option(category = OptionCategory.USER, help = "Remove assert statements and any code conditional on the value of __debug__.")
100-
public static final OptionKey<Boolean> PythonOptimizeFlag = new OptionKey<>(false);
101-
99+
@Option(category = OptionCategory.USER, help = "Remove assert statements and any code conditional on the value of __debug__.") public static final OptionKey<Boolean> PythonOptimizeFlag = new OptionKey<>(
100+
false);
101+
102102
public static OptionDescriptors createDescriptors() {
103103
return new PythonOptionsOptionDescriptors();
104104
}

mx.graalpython/mx_graalpython.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ def python_gate(args):
293293
find_jdt()
294294
if not os.environ.get("ECLIPSE_EXE"):
295295
find_eclipse()
296+
if "--tags" not in args:
297+
args += ["--tags", "fullbuild,style,python-junit,python-unittest,python-license,python-downstream"]
296298
return mx.command_function("gate")(args)
297299

298300

@@ -361,9 +363,9 @@ def graalpython_gate_runner(args, tasks):
361363
with Task('GraalPython GraalVM build', tasks, tags=[GraalPythonTags.downstream, GraalPythonTags.graalvm]) as task:
362364
if task:
363365
mx.run_mx(
364-
["--strict-compliance", "--dynamicimports", "/substratevm,/vm",
366+
["--dynamicimports", "/substratevm,/vm",
365367
"build", "--force-deprecation-as-warning", "--dependencies",
366-
"graalpython.image"],
368+
"GRAAL_MANAGEMENT,graalpython.image"],
367369
nonZeroIsFatal=True
368370
)
369371
vmdir = os.path.join(mx.suite("truffle").dir, "..", "vm")
@@ -540,32 +542,31 @@ def python_checkcopyrights(args):
540542
#
541543
# ----------------------------------------------------------------------------------------------------------------------
542544
mx_sdk.register_graalvm_component(mx_sdk.GraalVmLanguage(
545+
suite=_suite,
543546
name='Graal.Python',
544547
short_name='pyn',
545548
dir_name='python',
546-
documentation_files=['link:<support>/README_GRAALPYTHON.md'],
547-
license_files=['link:<support>/GraalCE_Python_license_3rd_party_license.txt'],
549+
license_files=['link:GraalCE_Python_license_3rd_party_license.txt'],
548550
third_party_license_files=[],
549551
truffle_jars=[
550-
'dependency:graalpython:GRAALPYTHON',
551-
'dependency:graalpython:GRAALPYTHON-ENV',
552+
'graalpython:GRAALPYTHON',
552553
],
553554
support_distributions=[
554-
'extracted-dependency:graalpython:GRAALPYTHON_GRAALVM_SUPPORT',
555-
'extracted-dependency:graalpython:GRAALPYTHON_GRAALVM_DOCS',
555+
'graalpython:GRAALPYTHON_GRAALVM_SUPPORT',
556+
'graalpython:GRAALPYTHON_GRAALVM_DOCS',
556557
],
557558
launcher_configs=[
558559
mx_sdk.LanguageLauncherConfig(
559560
destination='bin/<exe:graalpython>',
560-
jar_distributions=['dependency:graalpython:GRAALPYTHON-LAUNCHER'],
561+
jar_distributions=['graalpython:GRAALPYTHON-LAUNCHER'],
561562
main_class='com.oracle.graal.python.shell.GraalPythonMain',
562563
build_args=[
563564
'--language:python',
564565
'--language:llvm',
565566
]
566567
)
567568
],
568-
), _suite)
569+
))
569570

570571

571572
# ----------------------------------------------------------------------------------------------------------------------

mx.graalpython/suite.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
{
3434
"name": "regex",
35-
"version": "5a45980a4cb8b32a3d964a99d6e356717fcdb678",
35+
"version": "3535ccebc4c19ebe9be7da93aaab1bca37afea5a",
3636
"subdir": True,
3737
"urls": [
3838
{"url": "https://github.com/oracle/graal", "kind": "git"},
@@ -208,6 +208,9 @@
208208
"GRAALPYTHON-ENV": {
209209
},
210210

211+
"GRAALPYTHON-ZIP": {
212+
},
213+
211214
"GRAALPYTHON": {
212215
"dependencies": [
213216
"com.oracle.graal.python",

0 commit comments

Comments
 (0)