Skip to content

Commit

Permalink
Zowe Suite v1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored Mar 25, 2020
2 parents 968667e + bad0eef commit a140647
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 0 deletions.
18 changes: 18 additions & 0 deletions conda/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@echo off
REM This program and the accompanying materials are
REM made available under the terms of the Eclipse Public License v2.0 which accompanies
REM this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html
REM
REM SPDX-License-Identifier: EPL-2.0
REM
REM Copyright Contributors to the Zowe Project.


if not exist %PREFIX%\share\zowe\app-server\zlux-app-server\defaults\plugins mkdir %PREFIX%\share\zowe\app-server\zlux-app-server\defaults\plugins
echo '{"identifier":"%PKG_NAME%","pluginLocation":"%PREFIX%/share/zowe/app-server/plugins/%PKG_NAME%/%PKG_VERSION%"}' ^
> %PREFIX%\share\zowe\app-server\zlux-app-server\defaults\plugins\%PKG_NAME%.json

if not exist %PREFIX%\share\zowe\app-server\plugins\%PKG_NAME%\%PKG_VERSION% mkdir %PREFIX%\share\zowe\app-server\plugins\%PKG_NAME%\%PKG_VERSION%
robocopy %SRC_DIR% %PREFIX%\share\zowe\app-server\plugins\%PKG_NAME%\%PKG_VERSION% * /E > nul

exit 0
20 changes: 20 additions & 0 deletions conda/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh

# This program and the accompanying materials are
# made available under the terms of the Eclipse Public License v2.0 which accompanies
# this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html
#
# SPDX-License-Identifier: EPL-2.0
#
# Copyright Contributors to the Zowe Project.

mkdir -p $PREFIX/share/zowe/app-server/plugins/$PKG_NAME/$PKG_VERSION
cp -r ${SRC_DIR}/* $PREFIX/share/zowe/app-server/plugins/$PKG_NAME/$PKG_VERSION
mkdir -p $PREFIX/share/zowe/app-server/zlux-app-server/defaults/plugins
echo "{\"identifier\":\"${PKG_NAME}\",\"pluginLocation\":\"${PREFIX}/share/zowe/app-server/plugins/${PKG_NAME}/${PKG_VERSION}\"}" \
> $PREFIX/share/zowe/app-server/zlux-app-server/defaults/plugins/${PKG_NAME}.json

cd $PREFIX/share/zowe/app-server/plugins/$PKG_NAME/$PKG_VERSION
rm -f build_env_setup.sh conda_build.sh metadata_conda_debug.yaml *.ppf

exit 0
31 changes: 31 additions & 0 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% set data = load_setup_py_data(setup_file='./setup.py', from_recipe_dir=True) %}

# This program and the accompanying materials are
# made available under the terms of the Eclipse Public License v2.0 which accompanies
# this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html
#
# SPDX-License-Identifier: EPL-2.0
#
# Copyright Contributors to the Zowe Project.

package:
name: "{{ data.get('name')|lower }}"
version: "{{ data.get('version') }}"

source:
path: ../../plugin

build:
number: "{{ data.get('buildnumber') }}"
string: "zowe"
{{ data.get('noarch') }}

# features:
# - zowe

about:
home: "{{ data.get('homepage') }}"
license: "{{ data.get('license') }}"
license_file: "LICENSE"
summary: "{{ data.get('description') }}"
doc_url: "https://docs.zowe.org"
53 changes: 53 additions & 0 deletions conda/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
from distutils.core import setup
import json
import os
import sys
import glob
# This program and the accompanying materials are
# made available under the terms of the Eclipse Public License v2.0 which accompanies
# this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html
#
# SPDX-License-Identifier: EPL-2.0
#
# Copyright Contributors to the Zowe Project.

print('Loading package attributes from pluginDefinition.json')
with open('./plugin/pluginDefinition.json', 'r') as f:
pluginDef = json.load(f)
if ('license' in pluginDef):
license = pluginDef['license']
else:
license = "UNKNOWN"

if ('webContent' in pluginDef):
if ('descriptionDefault' in pluginDef['webContent']):
description=pluginDef['webContent']['descriptionDefault']
else:
description=""
else:
description=""

if ('homepage' in pluginDef):
homepage=pluginDef['homepage']
else:
homepage=""

if ('descriptionDefault' in pluginDef):
description = pluginDef['descriptionDefault']

buildnumber=os.getenv('ZLUX_BUILD_NUMBER')

if (sys.platform != 'zos'):
noarch=" noarch: generic"
else:
noarch="# zos build"

setup(name=pluginDef['identifier'],
version=pluginDef['pluginVersion'],
description=description,
license=license,
homepage=homepage,
noarch=noarch,
buildnumber=buildnumber )

# uiVersion=f"- zowe-ui {uiVersion}"

0 comments on commit a140647

Please sign in to comment.