Changeset 27002


Ignore:
Timestamp:
05/10/22 12:14:58 (3 years ago)
Author:
jdquinn
Message:

CHG: Support for ISSM API for Python versions 2 and 3

Location:
issm/trunk-jpl/packagers
Files:
2 edited
5 copied
5 moved

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/packagers/linux/transfer-issm-linux-binaries.sh

    r25898 r27002  
    22
    33################################################################################
    4 # Transfers ISSM distributable package for Linux with MATLAB API to ISSM Web
    5 # site.
     4# Transfers ISSM distributable package for Linux to ISSM website.
    65#
    76# NOTE:
     
    1211# See also:
    1312# - packagers/linux/complete-issm-linux-binaries-matlab.sh
    14 # - packagers/linux/complete-issm-linux-binaries-python.sh
     13# - packagers/linux/complete-issm-linux-binaries-python-2.sh
     14# - packagers/linux/complete-issm-linux-binaries-python-3.sh
    1515################################################################################
    1616
  • TabularUnified issm/trunk-jpl/packagers/mac/commit_for_signing-issm-mac-binaries-python-2.sh

    r27000 r27002  
    22
    33################################################################################
    4 # Commits ISSM distributable package for macOS with Python API to repository
     4# Commits ISSM distributable package for macOS with Python 2 API to repository
    55# for signing. This repository is polled by a project running on a JPL
    66# Cybersecurity Jenkins server and performs the actual signing and
     
    2424#
    2525# See also:
    26 # - packagers/mac/complete-issm-mac-binaries-python.sh
    27 # - packagers/mac/sign-issm-mac-binaries-python.sh
     26# - packagers/mac/complete-issm-mac-binaries-python-2.sh
     27# - packagers/mac/sign-issm-mac-binaries-python-2.sh
    2828#
    2929# TODO:
     
    6565SIGNING_LOCK_FILE="signing.lock"
    6666UNSIGNED_REPO_COPY="./unsigned"
    67 UNSIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/unsigned"
     67UNSIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/2/unsigned"
    6868
    6969## Functions
  • TabularUnified issm/trunk-jpl/packagers/mac/commit_for_signing-issm-mac-binaries-python-3.sh

    r27000 r27002  
    22
    33################################################################################
    4 # Commits ISSM distributable package for macOS with Python API to repository
     4# Commits ISSM distributable package for macOS with Python 3 API to repository
    55# for signing. This repository is polled by a project running on a JPL
    66# Cybersecurity Jenkins server and performs the actual signing and
     
    2424#
    2525# See also:
    26 # - packagers/mac/complete-issm-mac-binaries-python.sh
    27 # - packagers/mac/sign-issm-mac-binaries-python.sh
     26# - packagers/mac/complete-issm-mac-binaries-python-3.sh
     27# - packagers/mac/sign-issm-mac-binaries-python-3.sh
    2828#
    2929# TODO:
     
    6565SIGNING_LOCK_FILE="signing.lock"
    6666UNSIGNED_REPO_COPY="./unsigned"
    67 UNSIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/unsigned"
     67UNSIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/3/unsigned"
    6868
    6969## Functions
  • TabularUnified issm/trunk-jpl/packagers/mac/complete-issm-mac-binaries-python-2.sh

    r27000 r27002  
    33################################################################################
    44# Wrapper script to build, package, send for signing, and transfer to ISSM Web
    5 # site ISSM distributable package for macOS with Python API.
     5# site ISSM distributable package for macOS with Python 2 API.
    66#
    77# Normally, we would put this directly into the project configuration under
     
    3535#       Jenkins server. Debugging may be perfomed locally by running,
    3636#
    37 #               packagers/mac/sign-issm-mac-binaries-python.sh
     37#               packagers/mac/sign-issm-mac-binaries-python-2.sh
    3838#
    3939#       with "ISSM_BINARIES_USER" and "ISSM_BINARIES_PASS" hardcoded to Apple
     
    5656## Constants
    5757#
    58 PKG="ISSM-macOS-Python" # Name of directory to copy distributable files to
     58PKG="ISSM-macOS-Python-2" # Name of directory to copy distributable files to
    5959SIGNED_REPO_COPY="./signed"
    60 SIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/signed"
     60SIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/2/signed"
    6161
    6262COMPRESSED_PKG="${PKG}.zip"
     
    9797# Build
    9898if [ ${build} -eq 1 ]; then
    99         ./jenkins/jenkins.sh ./jenkins/pine_island-mac-binaries-python
     99        ./jenkins/jenkins.sh ./jenkins/pine_island-mac-binaries-python-2
    100100
    101101        if [ $? -ne 0 ]; then
     
    106106# Package
    107107if [ ${package} -eq 1 ]; then
    108         ./packagers/mac/package-issm-mac-binaries-python.sh $1
     108        ./packagers/mac/package-issm-mac-binaries-python-2.sh $1
    109109
    110110        if [ $? -ne 0 ]; then
     
    117117# Commit for signing
    118118if [ ${sign} -eq 1 ]; then
    119         ./packagers/mac/commit_for_signing-issm-mac-binaries-python.sh $1
     119        ./packagers/mac/commit_for_signing-issm-mac-binaries-python-2.sh $1
    120120
    121121        if [ $? -ne 0 ]; then
  • TabularUnified issm/trunk-jpl/packagers/mac/complete-issm-mac-binaries-python-3.sh

    r27000 r27002  
    33################################################################################
    44# Wrapper script to build, package, send for signing, and transfer to ISSM Web
    5 # site ISSM distributable package for macOS with Python API.
     5# site ISSM distributable package for macOS with Python 3 API.
    66#
    77# Normally, we would put this directly into the project configuration under
     
    3535#       Jenkins server. Debugging may be perfomed locally by running,
    3636#
    37 #               packagers/mac/sign-issm-mac-binaries-python.sh
     37#               packagers/mac/sign-issm-mac-binaries-python-3.sh
    3838#
    3939#       with "ISSM_BINARIES_USER" and "ISSM_BINARIES_PASS" hardcoded to Apple
     
    5656## Constants
    5757#
    58 PKG="ISSM-macOS-Python" # Name of directory to copy distributable files to
     58PKG="ISSM-macOS-Python-3" # Name of directory to copy distributable files to
    5959SIGNED_REPO_COPY="./signed"
    60 SIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/signed"
     60SIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/3/signed"
    6161
    6262COMPRESSED_PKG="${PKG}.zip"
     
    9797# Build
    9898if [ ${build} -eq 1 ]; then
    99         ./jenkins/jenkins.sh ./jenkins/pine_island-mac-binaries-python
     99        ./jenkins/jenkins.sh ./jenkins/pine_island-mac-binaries-python-3
    100100
    101101        if [ $? -ne 0 ]; then
     
    106106# Package
    107107if [ ${package} -eq 1 ]; then
    108         ./packagers/mac/package-issm-mac-binaries-python.sh $1
     108        ./packagers/mac/package-issm-mac-binaries-python-3.sh $1
    109109
    110110        if [ $? -ne 0 ]; then
     
    117117# Commit for signing
    118118if [ ${sign} -eq 1 ]; then
    119         ./packagers/mac/commit_for_signing-issm-mac-binaries-python.sh $1
     119        ./packagers/mac/commit_for_signing-issm-mac-binaries-python-3.sh $1
    120120
    121121        if [ $? -ne 0 ]; then
  • TabularUnified issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-python-2.sh

    r27000 r27002  
    22
    33################################################################################
    4 # Packages and tests ISSM distributable package for macOS with Python API.
     4# Packages and tests ISSM distributable package for macOS with Python 2 API.
    55#
    66# Options:
     
    1616#
    1717# See also:
    18 # - packagers/mac/complete-issm-mac-binaries-python.sh
    19 # - packagers/mac/sign-issm-mac-binaries-python.sh
     18# - packagers/mac/complete-issm-mac-binaries-python-2.sh
     19# - packagers/mac/sign-issm-mac-binaries-python-2.sh
    2020################################################################################
    2121
  • TabularUnified issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-python-3.sh

    r27000 r27002  
    22
    33################################################################################
    4 # Packages and tests ISSM distributable package for macOS with Python API.
     4# Packages and tests ISSM distributable package for macOS with Python 3 API.
    55#
    66# Options:
     
    1616#
    1717# See also:
    18 # - packagers/mac/complete-issm-mac-binaries-python.sh
    19 # - packagers/mac/sign-issm-mac-binaries-python.sh
     18# - packagers/mac/complete-issm-mac-binaries-python-3.sh
     19# - packagers/mac/sign-issm-mac-binaries-python-3.sh
    2020################################################################################
    2121
     
    129129        export PYTHONUNBUFFERED=1 # We don't want Python to buffer output, otherwise issm.exe output is not captured
    130130
     131        # Ensure that runme.py uses Python 3 interpreter
     132        sed -i "s|/usr/bin/env python|/usr/local/bin/python3|g" ./runme.py
     133
    131134        # Run tests, redirecting output to logfile and suppressing output to console
    132135        ./runme.py ${PYTHON_NROPTIONS} &> python.log 2>&1
  • TabularUnified issm/trunk-jpl/packagers/mac/sign-issm-mac-binaries-python-2.sh

    r27000 r27002  
    55# Cybersecurity server for signing macOS applications. Polls SCM of the
    66# Subversion repository hosted at
    7 # https://issm.ess.uci.edu/svn/issm-binaries/mac/matlab/unsigned to trigger new
    8 # builds.
     7# https://issm.ess.uci.edu/svn/issm-binaries/mac/python/2/unsigned to trigger
     8# new builds.
    99#
    1010# In order to replicate the requried Jenkins project configuration:
     
    8686NOTARIZATION_LOGFILE_PATH="."
    8787PASSWORD=${ISSM_BINARIES_PASS}
    88 PKG="ISSM-macOS-Python"
     88PKG="ISSM-macOS-Python-2"
    8989PRIMARY_BUNDLE_ID="gov.nasa.jpl.issm.python"
    9090SIGNED_REPO_COPY="./signed"
    91 SIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/signed"
     91SIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/2/signed"
    9292SIGNING_LOCK_FILE="signing.lock"
    9393SUCCESS_LOGFILE="${SIGNED_REPO_COPY}/success.log"
    9494UNSIGNED_REPO_COPY="./unsigned"
    95 UNSIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/unsigned"
     95UNSIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/2/unsigned"
    9696USERNAME=${ISSM_BINARIES_USER}
    9797
  • TabularUnified issm/trunk-jpl/packagers/mac/sign-issm-mac-binaries-python-3.sh

    r27000 r27002  
    55# Cybersecurity server for signing macOS applications. Polls SCM of the
    66# Subversion repository hosted at
    7 # https://issm.ess.uci.edu/svn/issm-binaries/mac/matlab/unsigned to trigger new
    8 # builds.
     7# https://issm.ess.uci.edu/svn/issm-binaries/mac/python/3/unsigned to trigger
     8# new builds.
    99#
    1010# In order to replicate the requried Jenkins project configuration:
     
    8686NOTARIZATION_LOGFILE_PATH="."
    8787PASSWORD=${ISSM_BINARIES_PASS}
    88 PKG="ISSM-macOS-Python"
     88PKG="ISSM-macOS-Python-3"
    8989PRIMARY_BUNDLE_ID="gov.nasa.jpl.issm.python"
    9090SIGNED_REPO_COPY="./signed"
    91 SIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/signed"
     91SIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/3/signed"
    9292SIGNING_LOCK_FILE="signing.lock"
    9393SUCCESS_LOGFILE="${SIGNED_REPO_COPY}/success.log"
    9494UNSIGNED_REPO_COPY="./unsigned"
    95 UNSIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/unsigned"
     95UNSIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/python/3/unsigned"
    9696USERNAME=${ISSM_BINARIES_USER}
    9797
  • TabularUnified issm/trunk-jpl/packagers/mac/test-issm-mac-binaries-python-2.sh

    r27000 r27002  
    22
    33################################################################################
    4 # This script is intended to test ISSM macOS MATLAB binaries on an end-user
     4# This script is intended to test ISSM macOS Python 2 binaries on an end-user
    55# machine after successful packaging and signing.
    66#
     
    1111#
    1212INSTALL_DIR=.
    13 PKG="ISSM-macOS-Python"
     13PKG="ISSM-macOS-Python-2"
    1414PYTHON_NROPTIONS="--benchmark all --exclude 125 126 234 235 418 420 435 444 445 701 702 703 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1201 1202 1203 1204 1205 1206 1207 1208 1301 1302 1303 1304 1401 1402 1601 1602 2002 2003 2004 2005 2006 2007 2008 2010 2011 2021 2051 2052 2053 2084 2085 2090 2101 2424 2425 3001:3200 3201 3202 3300 3480 3481 4001 4002 4003" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded
    1515
  • TabularUnified issm/trunk-jpl/packagers/mac/test-issm-mac-binaries-python-3.sh

    r27000 r27002  
    22
    33################################################################################
    4 # This script is intended to test ISSM macOS MATLAB binaries on an end-user
     4# This script is intended to test ISSM macOS Python 3 binaries on an end-user
    55# machine after successful packaging and signing.
    66#
     
    1111#
    1212INSTALL_DIR=.
    13 PKG="ISSM-macOS-Python"
     13PKG="ISSM-macOS-Python-3"
    1414PYTHON_NROPTIONS="--benchmark all --exclude 125 126 234 235 418 420 435 444 445 701 702 703 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1201 1202 1203 1204 1205 1206 1207 1208 1301 1302 1303 1304 1401 1402 1601 1602 2002 2003 2004 2005 2006 2007 2008 2010 2011 2021 2051 2052 2053 2084 2085 2090 2101 2424 2425 3001:3200 3201 3202 3300 3480 3481 4001 4002 4003" # NOTE: Combination of test suites from basic, Dakota, and Solid Earth builds, with tests that require a restart and those that require the JVM excluded
    1515
  • TabularUnified issm/trunk-jpl/packagers/mac/transfer-issm-mac-binaries.sh

    r26753 r27002  
    22
    33################################################################################
    4 # Transfers ISSM distributable package for macOS with MATLAB API to ISSM Web
    5 # site.
     4# Transfers ISSM distributable package for macOS to ISSM website.
    65#
    76# NOTE:
     
    1615# See also:
    1716# - packagers/mac/complete-issm-mac-binaries-matlab.sh
    18 # - packagers/mac/complete-issm-mac-binaries-python.sh
     17# - packagers/mac/complete-issm-mac-binaries-python-2.sh
     18# - packagers/mac/complete-issm-mac-binaries-python-3.sh
    1919################################################################################
    2020
Note: See TracChangeset for help on using the changeset viewer.