Skip to content

Commit

Permalink
Merge pull request #107 from getindata/release-0.15.0
Browse files Browse the repository at this point in the history
Release 0.15.0
  • Loading branch information
grzegorz8 authored Nov 2, 2023
2 parents 72991f4 + 04df930 commit dbf7eb0
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ jobs:
- name: Wheel
run: |
python setup.py sdist
- name: Build docker image
uses: docker/build-push-action@v3
with:
push: false
tags: getindata/streaming-jupyter-integrations:latest
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## [Unreleased]

## [0.15.0] - 2023-11-02

### Added

- Support Flink 1.18

## [0.14.5] - 2023-10-03

### Fixed
Expand Down Expand Up @@ -249,7 +255,9 @@

- First release

[Unreleased]: https://github.com/getindata/streaming-jupyter-integrations/compare/0.14.5...HEAD
[Unreleased]: https://github.com/getindata/streaming-jupyter-integrations/compare/0.15.0...HEAD

[0.15.0]: https://github.com/getindata/streaming-jupyter-integrations/compare/0.14.5...0.15.0

[0.14.5]: https://github.com/getindata/streaming-jupyter-integrations/compare/0.14.4...0.14.5

Expand Down
50 changes: 50 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
FROM jupyter/base-notebook:python-3.8.8

WORKDIR /app/

USER $NB_USER

RUN python -V
RUN python -m pip install virtualenv pipdeptree

USER root

RUN ["/bin/bash", "-c", "python -m venv venv"]

USER $NB_USER

RUN ["/bin/bash", "-c", "source venv/bin/activate"]
RUN ["/bin/bash", "-c", "pip install --upgrade pip"]

USER root

RUN apt update && apt-get install -y software-properties-common curl wget yarn
RUN apt-add-repository ppa:openjdk-r/ppa
RUN apt-get update && \
apt-get install -y openjdk-11-jdk

USER $NB_USER

RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
RUN source ~/.nvm/nvm.sh && \
nvm install node 19.0.1

RUN pip install jupyterlab-lsp "nbclassic>=0.2.8"

COPY requirements.txt ./
RUN pip install -r requirements.txt

USER root

COPY . ./
RUN chown $NB_USER ./
RUN source ~/.nvm/nvm.sh && \
pip install .

USER $NB_USER

ENV JUPYTER_ENABLE_LAB=yes
ENV FLINK_HOME=/opt/conda/lib/python3.8/site-packages/pyflink

RUN chown -R $NB_USER:users $FLINK_HOME
USER $NB_USER
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,27 @@ the pipeline does not end with `.execute()`, the execution is triggered by the J

## Local development

There are currently 2 options for running `streaming_jupyter_integrations` for development. We can either
use a Docker image or install it on our machine.

### Docker image

You can build a `Docker` image of `Jupyter Notebooks` by running the command below.
It will contain functionality that was developed in this project.
```bash
docker build --tag streaming_jupyter_integrations_image .
```

After the image is built, we can run it using this command.
```bash
docker run --name streaming_jupyter_integrations -p 8888:8888 streaming_jupyter_integrations_image
```

After that we should be able to reach our Jupyterhub running on Docker under:
http://127.0.0.1:8888/

### Local installation

Note: You will need NodeJS to build the extension package.

The `jlpm` command is JupyterLab's pinned version of
Expand All @@ -200,6 +221,8 @@ jupyter labextension develop . --overwrite
jlpm build
```

### pre-commit

The project uses [pre-commit](https://pre-commit.com/) hooks to ensure code quality, mostly by linting.
To use it, [install pre-commit](https://pre-commit.com/#install) and then run
```shell
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ types-PyYAML~=6.0.0
yarn-api-client~=1.0.0

ipywidgets
apache-flink>=1.15,<1.17
apache-flink>=1.15,<=1.18
pandas
py4j
requests
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.14.5
current_version = 0.15.0

[tox:tox]
envlist = py38
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from setuptools import find_packages, setup
from setuptools.command.install import install

__version__ = "0.14.5"
__version__ = "0.15.0"

HERE = Path(__file__).parent.resolve()

Expand Down

0 comments on commit dbf7eb0

Please sign in to comment.