Skip to content

Commit e27b6d7

Browse files
committed
Get ready for 2.0.0 release
1 parent 69a6f94 commit e27b6d7

File tree

10 files changed

+25
-25
lines changed

10 files changed

+25
-25
lines changed

code/examples/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
ARG BASE_IMAGE=registry.access.redhat.com/ubi8/python-312
1111
FROM $BASE_IMAGE
1212

13-
ENV VRMF=9.4.3.0 \
13+
ENV VRMF=9.4.4.0 \
1414
genmqpkg_incnls=1 \
1515
genmqpkg_incsdk=1 \
1616
genmqpkg_inctls=1
@@ -107,7 +107,7 @@ ENV LD_LIBRARY_PATH=/opt/mqm/lib64
107107
# User 1001 is the default application user in this base container image
108108
USER 1001
109109

110-
# Install the MQ Python library. This will build against the installed SDK
110+
# Install the MQ Python library. This will build against the installed MQ SDK
111111
RUN pip install --verbose ibmmq
112112
# RUN pip install ibmmq
113113

code/examples/runInContainer.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Basic name for the container. If we have a version tag from a git clone, use that
77
# in the container tag. Otherwise just use "latest"
88
TAG=mq-python-example-connect
9-
VER=`git tag -l 2>/dev/null| sort | tail -1 `
9+
VER=`git tag -l 2>/dev/null| grep -v "^v1" | sort | tail -1 `
1010
if [ -z "$VER" ]
1111
then
1212
VER="latest"
@@ -29,14 +29,14 @@ then
2929
# set an environment variable to explicitly configure it.
3030
addr=`ip -4 addr | grep -v altname | grep "state UP" -A2 | grep inet | tail -n1 | awk '{print $2}' | cut -f1 -d'/'`
3131

32-
if [ ! -z "FORCE_ADDR" ]
32+
if [ ! -z "$FORCE_ADDR" ]
3333
then
3434
addr=$FORCE_ADDR
3535
fi
3636

3737
echo "Local address is $addr"
3838
port="1414"
39-
if [ ! -z "addr" ]
39+
if [ ! -z "$addr" ]
4040
then
4141
# Run the container.
4242
docker run --rm \

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# The version should correspond to PEP440 and gets normalised if
1818
# not in the right format. VRM can be followed with a|b|rc with a further numeric
1919
# to indicate alpha/beta/release-candidate versions.
20-
VERSION = '2.0.0b2'
20+
VERSION = '2.0.0'
2121

2222
# If the MQ SDK is in a non-default location, set MQ_FILE_PATH environment variable.
2323
custom_path = os.environ.get('MQ_FILE_PATH', None)
@@ -185,9 +185,9 @@ def get_locations_by_command_path(command_path):
185185
print('Here is the message:', msg)
186186
187187
Many more examples are in the `project repository
188-
<https://github.com/ibm-messaging/mq-mqi-python/tree/main/code/examples/>`_.
188+
<https://github.com/ibm-messaging/mq-mqi-python/tree/main/code/examples/>`_
189189
and in the `dev-patterns repository
190-
<https://github.com/ibm-messaging/mq-dev-patterns/tree/master/Python/>'_.
190+
<https://github.com/ibm-messaging/mq-dev-patterns/tree/master/Python/>`_.
191191
192192
"""
193193

tools/check

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ then
119119
exit 1
120120
fi
121121

122-
cd $src/code/examples
122+
cd $src
123123
echo
124124
echo "Looking for MQ VRMF info..."
125-
cmdlevel=`grep MQCMDL_CURRENT_LEVEL ../ibmmq/CMQSTRC.py | awk '{print $3}' | sed "s/,//g"`
125+
cmdlevel=`grep MQCMDL_CURRENT_LEVEL code/ibmmq/CMQSTRC.py | awk '{print $3}' | sed "s/,//g"`
126126
echo " Command level in repo = $cmdlevel"
127127

128128
# The Dockerfile ought to be pointing at the most recent version. Whose Redist Client
@@ -131,7 +131,7 @@ echo " Command level in repo = $cmdlevel"
131131
# Though we can point the container to download from a local server instead of public instead.
132132
#
133133
# No other files currently seem to have a VRMF dependency.
134-
for f in Dockerfile
134+
for f in code/examples/Dockerfile
135135
do
136136
vrmf=`grep "VRMF=" $f | cut -f2 -d" " | cut -f2 -d=`
137137
if [ -z "$vrmf" ]
@@ -303,8 +303,9 @@ main 2>&1 |\
303303

304304
echo
305305
echo "---------------------"
306-
grep -aq -E "WARN|ERR" $logFile
307-
if [ $? -eq 0 ]
306+
# It's ok to get a warning when an uninstall fails because it's not already installed
307+
cnt=`grep -a -E "WARN|ERR" $logFile | grep -v "Skipping" | wc -l`
308+
if [ $cnt -ne 0 ]
308309
then
309310
echo
310311
echo "ERROR: Checking process has a problem. Review $logFile for details."

tools/checkBaseLevel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ do
1919

2020
cd $curdir
2121
. $venv/bin/activate
22-
pip uninstall -y ibmmq
22+
pip uninstall -y ibmmq >/dev/null 2>&1
2323
cd ..
2424

2525
# Do an install of the local tree to check it builds

tools/copyDefs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# Files are renamed as they are copied, and the primary
99
# CMQC.py uses the correct platform-specific variant.
1010

11-
1211
# Copyright (c) 2025 IBM Corporation. All Rights Reserved.
1312

1413
function printSyntax {
@@ -19,9 +18,9 @@ Options:
1918
1 or USER : release-stream-USER-level_P
2019
2 or STREAM : release-stream-level_P
2120
3 or RELEASE: release-level_P
22-
4 or FREE : the full level as entered (no added _P)
23-
5 or GOLD : gold/level_P
24-
-l level (no default)
21+
4 or FREE : the full level as entered (no automatically added _P)
22+
5 or GOLD : gold/release-level_P
23+
-l level (no default, example "L251003.10")
2524
-m major number in output tree (default: $defaultMajor)
2625
-r release (default: $defaultRelease)
2726
-s stream (default: $defaultStream)
@@ -67,7 +66,7 @@ curdir=`pwd`
6766

6867
# Default values
6968
defaultMajor=p940
70-
defaultRelease=p943
69+
defaultRelease=p944
7170
defaultStream=dfct
7271
defaultFormat=USER
7372
defaultLevel="" # No default
@@ -144,7 +143,7 @@ case $FORMAT in
144143
;;
145144
5|GOLD)
146145
gold=true
147-
BUILD="gold/$LEVEL"
146+
BUILD="gold/$RELEASE-$LEVEL"
148147
;;
149148
*)
150149
printSyntax

tools/linter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fi
2121

2222
if false
2323
then
24-
pip uninstall -y ibmmq
24+
pip uninstall -y ibmmq >/dev/null 2>&1
2525
cd $root
2626
pip install -e .
2727
fi

tools/pyInst.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ then
1818
exit 1
1919
fi
2020

21-
pip uninstall -y $pkg
21+
pip uninstall -y $pkg >/dev/null 2>&1
2222
echo "Waiting ..."
2323
for i in 1 # 2 3 4 5 6 7 8 9 10 11 12
2424
do
@@ -42,4 +42,4 @@ fi
4242
python -i << EOF
4343
import $pkg
4444
print("MQRC_NOT_AUTHORIZED = ",$pkg.CMQC.MQRC_NOT_AUTHORIZED)
45-
EOF
45+
EOF

tools/runApp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ trap cleanup EXIT
2525

2626
if [ -z "$NOREBUILD" ]
2727
then
28-
pip uninstall -y ibmmq
28+
pip uninstall -y ibmmq >/dev/null 2>&1
2929

3030
# verbose="-v"
3131

tools/testInstClient.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fi
3131

3232
cd $venv
3333

34-
pip uninstall -y $pkg
34+
pip uninstall -y $pkg >/dev/null 2>&1
3535
# List available versions including pre-release
3636
echo
3737
pip index --index http://localhost:8080 --pre versions $pkg

0 commit comments

Comments
 (0)