1
- # Copyright (c) 2018, 2023 , Oracle and/or its affiliates.
1
+ # Copyright (c) 2018, 2024 , Oracle and/or its affiliates.
2
2
# Copyright (c) 2013, Regents of the University of California
3
3
#
4
4
# All rights reserved.
@@ -935,8 +935,7 @@ def deploy_local_maven_repo():
935
935
# build GraalPy and all the necessary dependencies, so that we can deploy them
936
936
mx .run_mx (["build" ])
937
937
# deploy maven artifacts
938
- import mx_sdk_vm_impl
939
- version = mx_sdk_vm_impl .graalvm_version ('graalvm' )
938
+ version = GRAAL_VERSION
940
939
path = os .path .join (SUITE .get_mx_output_dir (), 'public-maven-repo' )
941
940
licenses = ['EPL-2.0' , 'PSF-License' , 'GPLv2-CPE' , 'ICU,GPLv2' , 'BSD-simplified' , 'BSD-new' , 'UPL' , 'MIT' ]
942
941
deploy_args = [
@@ -954,7 +953,7 @@ def deploy_local_maven_repo():
954
953
mx .rmtree (path , ignore_errors = True )
955
954
os .mkdir (path )
956
955
mx .maven_deploy (deploy_args )
957
- return path
956
+ return path , version
958
957
959
958
960
959
def python_jvm (_ = None ):
@@ -1403,10 +1402,10 @@ def graalpython_gate_runner(args, tasks):
1403
1402
# JUnit tests with Maven
1404
1403
with Task ('GraalPython integration JUnit with Maven' , tasks , tags = [GraalPythonTags .junit_maven ]) as task :
1405
1404
if task :
1406
- mvn_repo_path = pathlib .Path (deploy_local_maven_repo ()).as_uri ()
1405
+ mvn_repo_path , artifacts_version = deploy_local_maven_repo ()
1406
+ mvn_repo_path = pathlib .Path (mvn_repo_path ).as_uri ()
1407
1407
central_override = mx_urlrewrites .rewriteurl ('https://repo1.maven.org/maven2/' )
1408
1408
pom_path = os .path .join (SUITE .dir , 'graalpython/com.oracle.graal.python.test.integration/pom.xml' )
1409
- artifacts_version = GRAAL_VERSION + '-dev'
1410
1409
mvn_cmd_base = ['-f' , pom_path ,
1411
1410
f'-Dcom.oracle.graal.python.test.polyglot.version={ artifacts_version } ' ,
1412
1411
f'-Dcom.oracle.graal.python.test.polyglot_repo={ mvn_repo_path } ' ,
@@ -1481,14 +1480,13 @@ def graalpython_gate_runner(args, tasks):
1481
1480
'JAVA_HOME' : graalvm_jdk (),
1482
1481
'PYTHON_STANDALONE_HOME' : graalpy_standalone_home ('jvm' )
1483
1482
}
1484
- mvn_repo_path = deploy_local_maven_repo ()
1483
+ mvn_repo_path , version = deploy_local_maven_repo ()
1485
1484
# setup maven downloader overrides
1486
1485
env ['MAVEN_REPO_OVERRIDE' ] = "," .join ([
1487
1486
f"{ pathlib .Path (mvn_repo_path ).as_uri ()} /" ,
1488
1487
mx_urlrewrites .rewriteurl ('https://repo1.maven.org/maven2/' ),
1489
1488
])
1490
- import mx_sdk_vm_impl
1491
- env ["org.graalvm.maven.downloader.version" ] = mx_sdk_vm_impl .graalvm_version ('graalvm' )
1489
+ env ["org.graalvm.maven.downloader.version" ] = version
1492
1490
env ["org.graalvm.maven.downloader.repository" ] = f"{ pathlib .Path (mvn_repo_path ).as_uri ()} /"
1493
1491
# run the test
1494
1492
mx .logv (f"running with os.environ extended with: { env = } " )
@@ -2048,6 +2046,9 @@ def _python_checkpatchfiles():
2048
2046
'numpy-1.23.1.patch' ,
2049
2047
'numpy-1.23.4.patch' ,
2050
2048
'numpy-1.23.5.patch' ,
2049
+ # pythran started putting the while license text in the field. It's MIT
2050
+ 'pythran-0.12.0.patch' ,
2051
+ 'pythran-0.13.patch' ,
2051
2052
# libcst is MIT
2052
2053
'libcst-1.0.1.patch' ,
2053
2054
# Empty license field, skip it. It's MIT
0 commit comments