File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1616# limitations under the License.
1717#
1818
19+ rayvens_version=0.2.0
20+
1921config=" rayvens.yaml"
2022namespace=" ray"
21- image=" quay.io/ibm/rayvens"
23+ image=" quay.io/ibm/rayvens: $rayvens_version "
2224service_account=" rayvens"
2325cpu=" 1"
2426mem=" 2G"
@@ -41,6 +43,7 @@ while [ -n "$1" ]; do
4143 --mem) shift ; mem=$1 ;;
4244 --example) example=" 1" ;;
4345 --preload) preload=" 1" ;;
46+ --version) version=" 1" ;;
4447
4548 --dev)
4649 kind=" 1" ;
@@ -78,6 +81,7 @@ Usage: rayvens-setup.sh [options]
7881 --build build and push custom Rayvens container image from Rayvens source code in parent folder
7982 --example generate example file "example.py" in current working directory
8083 --preload preload main camel jars into maven repository
84+ --version shows the version of this script
8185
8286 --kind setup a development Kind cluster on localhost instead of deploying to current Kubernetes context
8387 (destroy existing Kind cluster if any, set Kubernetes context to Kind)
8791 exit 0
8892fi
8993
94+ if [ -n " $version " ]; then
95+ echo $rayvens_version
96+ exit 0
97+ fi
98+
9099if [ -n " $preload " ]; then
91100 tmp=$( mktemp -d)
92101 cat > " $tmp " /Preloader.java << EOF
Original file line number Diff line number Diff line change 1414# limitations under the License.
1515#
1616
17+ import re
1718from setuptools import setup
1819
1920long_description = '''Rayvens augments [Ray](https://ray.io) with events. With
2627[https://github.com/project-codeflare/rayvens](https://github.com/project-codeflare/rayvens).
2728'''
2829
30+ with open ('scripts/rayvens-setup.sh' ) as f :
31+ version = re .findall ('rayvens_version=([0-9.]+)' , f .read ())[0 ]
32+
2933setup (
3034 name = 'rayvens' ,
3135 long_description = long_description ,
3640 'confluent-kafka>=1.6.1' , 'ray[default,serve,k8s]>=1.3.0'
3741 ],
3842 scripts = ['scripts/rayvens-setup.sh' ],
39- version = '0.1' ,
43+ version = version ,
4044 python_requires = '>=3.6' ,
4145 description = 'Rayvens augments Ray with events.' ,
4246 license = 'Apache 2.0' ,
You can’t perform that action at this time.
0 commit comments