From 1cc4cbd0a6bd55aab3b9f97b454b8f8c76e28bfa Mon Sep 17 00:00:00 2001 From: Martin Turoci Date: Tue, 31 May 2022 18:16:06 +0200 Subject: [PATCH] chore: Release v0.22.0 --- py/h2o_wave/version.py | 2 +- py/h2o_wave/version.py-r | 2 +- py/setup.py-r | 86 ++++++++++++++++++++++++++++++++++++++++ r/DESCRIPTION-r | 30 ++++++++++++++ 4 files changed, 118 insertions(+), 2 deletions(-) create mode 100644 py/setup.py-r create mode 100644 r/DESCRIPTION-r diff --git a/py/h2o_wave/version.py b/py/h2o_wave/version.py index e453371221..81edede8b4 100644 --- a/py/h2o_wave/version.py +++ b/py/h2o_wave/version.py @@ -1 +1 @@ -__version__ = '0.21.0' +__version__ = '0.22.0' diff --git a/py/h2o_wave/version.py-r b/py/h2o_wave/version.py-r index 2f15b8cd37..81edede8b4 100644 --- a/py/h2o_wave/version.py-r +++ b/py/h2o_wave/version.py-r @@ -1 +1 @@ -__version__ = '0.20.0' +__version__ = '0.22.0' diff --git a/py/setup.py-r b/py/setup.py-r new file mode 100644 index 0000000000..d5996ea548 --- /dev/null +++ b/py/setup.py-r @@ -0,0 +1,86 @@ +# Copyright 2020 H2O.ai, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import setuptools +import os +from glob import glob +from pathlib import Path + +with open('README.rst', 'r') as readme: + long_description = readme.read() + +with open('README.md', 'r') as readme_markdown: + conda_description = readme_markdown.read() + +platform = os.getenv('OS', 'darwin') +version = os.getenv('VERSION', 'DEV') +arch = os.getenv('ARCH', 'amd64') +base_path = os.path.join('..', 'build', f'wave-{version}-{platform}-{arch}') + + +def get_data_files(): + build_path = os.path.join(base_path, 'www') + data_dict = dict() + for p in Path(build_path).rglob('*'): + if os.path.isdir(p): + continue + *dirs, _ = p.relative_to(build_path).parts + key = os.path.join('www', *dirs) + if key in data_dict: + data_dict[key].append(str(p)) + else: + data_dict[key] = [str(p)] + return list(data_dict.items()) + + +setuptools.setup( + name='h2o_wave', + version=version, + author='Prithvi Prabhu', + author_email='prithvi@h2o.ai', + description='Python driver for H2O Wave Realtime Apps', + long_description=long_description, + conda_description=conda_description, + url='https://h2o.ai/products/h2o-wave', + packages=['h2o_wave'], + data_files=None if platform == 'any' else [('', glob(os.path.join(base_path, 'waved*')))] + get_data_files(), + classifiers=[ + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.7', + 'Operating System :: OS Independent', + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Topic :: Database', + 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', + 'Topic :: Communications :: Chat', + 'Topic :: Scientific/Engineering :: Visualization', + 'Topic :: Software Development :: Libraries :: Application Frameworks', + 'Topic :: Software Development :: Widget Sets', + 'Topic :: System :: Distributed Computing', + ], + python_requires='>=3.7.1', + install_requires=[ + 'Click', + 'httpx==0.16.1', + 'starlette==0.13.8', + 'uvicorn==0.17.6', + ], + entry_points=dict( + console_scripts=["wave = h2o_wave.cli:main"] + ), + extras_require=dict( + ml=['h2o_wave_ml'] + ), +) diff --git a/r/DESCRIPTION-r b/r/DESCRIPTION-r new file mode 100644 index 0000000000..55cbf6636d --- /dev/null +++ b/r/DESCRIPTION-r @@ -0,0 +1,30 @@ +Package: h2owave +Title: R Driver for H2O Wave Realtime Apps Framework +Version: 0.18.2 +Date: 2022-05-03 +Authors@R: c( + person(given = "Ashrith", + family = "Barthur", + role = c("aut", "cre"), + email = "ashrith.barthur@h2o.ai"), + person(given = "Prithvi", + family = "Prabhu", + role = c("aut"), + email = "prithvi.prabhu@h2o.ai") + ) +Description: H2O Wave is a lightweight software stack for programming interactive web applications entirely in R (no HTML/Javascript/CSS) required. It is designed to make it fast, fun and easy to build low-latency, realtime, collaborative, web-based applications. It ships batteries-included with a suite of form and data visualization components for rapidly prototyping analytical and decision-support applications. Wave’s components work in conjunction with the Wave relay server that facilitates realtime state synchronization between R and web browsers. +License: Apache License (>= 2.0) +URL: https://github.com/h2oai/wave +BugReports: https://github.com/h2oai/wave/issues +Encoding: UTF-8 +LazyData: true +Depends: + R(>= 3.5), + jsonlite, + devtools, + httr, + stringr, + httpuv, + R6(>= 2.0) +Roxygen: list(markdown = TRUE) +RoxygenNote: 7.1.2