Skip to content

Commit

Permalink
Prepare for 0.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
tardieu committed Jun 18, 2021
1 parent e2a3573 commit 1e5b176
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 10 additions & 1 deletion scripts/rayvens-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
# limitations under the License.
#

rayvens_version=0.2.0

config="rayvens.yaml"
namespace="ray"
image="quay.io/ibm/rayvens"
image="quay.io/ibm/rayvens:$rayvens_version"
service_account="rayvens"
cpu="1"
mem="2G"
Expand All @@ -41,6 +43,7 @@ while [ -n "$1" ]; do
--mem) shift; mem=$1;;
--example) example="1";;
--preload) preload="1";;
--version) version="1";;

--dev)
kind="1";
Expand Down Expand Up @@ -78,6 +81,7 @@ Usage: rayvens-setup.sh [options]
--build build and push custom Rayvens container image from Rayvens source code in parent folder
--example generate example file "example.py" in current working directory
--preload preload main camel jars into maven repository
--version shows the version of this script
--kind setup a development Kind cluster on localhost instead of deploying to current Kubernetes context
(destroy existing Kind cluster if any, set Kubernetes context to Kind)
Expand All @@ -87,6 +91,11 @@ EOF
exit 0
fi

if [ -n "$version" ]; then
echo $rayvens_version
exit 0
fi

if [ -n "$preload" ]; then
tmp=$(mktemp -d)
cat > "$tmp"/Preloader.java << EOF
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# limitations under the License.
#

import re
from setuptools import setup

long_description = '''Rayvens augments [Ray](https://ray.io) with events. With
Expand All @@ -26,6 +27,9 @@
[https://github.com/project-codeflare/rayvens](https://github.com/project-codeflare/rayvens).
'''

with open('scripts/rayvens-setup.sh') as f:
version = re.findall('rayvens_version=([0-9.]+)', f.read())[0]

setup(
name='rayvens',
long_description=long_description,
Expand All @@ -36,7 +40,7 @@
'confluent-kafka>=1.6.1', 'ray[default,serve,k8s]>=1.3.0'
],
scripts=['scripts/rayvens-setup.sh'],
version='0.1',
version=version,
python_requires='>=3.6',
description='Rayvens augments Ray with events.',
license='Apache 2.0',
Expand Down

0 comments on commit 1e5b176

Please sign in to comment.