Skip to content

Commit

Permalink
Update Streamlit QS
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ committed Aug 20, 2024
1 parent 5f78681 commit dc38a46
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Update Rust Axum Quickstarter ([#1024](https://github.com/opendevstack/ods-quickstarters/pull/1024))
- Gitleaks docs fix and update ([#1028](https://github.com/opendevstack/ods-quickstarters/issues/1028))
- Enable OpenSSL vendored compilation for Rust Jenkins Agent ([#1026](https://github.com/opendevstack/ods-quickstarters/pull/1026))
- Update Streamlit Quickstarter ([#1030](https://github.com/opendevstack/ods-quickstarters/issues/1030))

### Added

Expand Down
8 changes: 4 additions & 4 deletions docs/modules/quickstarters/pages/ds-streamlit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Provisions a streamlit based dashboard with authentication.

== Frameworks used

* https://docs.python.org/3.11[Python 3.11]
* https://docs.python.org/3.12[Python 3.12]
* https://docs.streamlit.io/library/changelog[streamlit]
* https://pandas.pydata.org/[pandas]
* https://plotly.com/python/[plotly]
Expand All @@ -46,9 +46,9 @@ The quickstarter sets up in OpenShift a pod with two containers. The main `ds-st

It is strongly recommended when you are developing a Python project to use separated environments.
For this purpose usually one can use Python's
https://docs.python.org/3.11/library/venv.html[venv] core package (check how to use it in the next steps).
https://docs.python.org/3.12/library/venv.html[venv] core package (check how to use it in the next steps).

NOTE: since the version of Python is 3.11, ensure your system's python executable is also in version 3.11
NOTE: since the version of Python is 3.12, ensure your system's python executable is also in version 3.12

[source,bash]
----
Expand All @@ -75,7 +75,7 @@ version: 1.0.1
type: ods
role: dashboard
runtime: streamlit
runtimeVersion: 1.29.0
runtimeVersion: 1.37.1
```

== How this quickstarter is built through Jenkins
Expand Down
2 changes: 1 addition & 1 deletion ds-streamlit/Jenkinsfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def createTestVirtualenv(def context) {
stage('Create virtualenv for tests') {
sh(
script: """
python3.11 -m venv testvenv
python3.12 -m venv testvenv
. ./testvenv/bin/activate
pip install --upgrade pip
pip install -r test_requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion ds-streamlit/files/docker_streamlit/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi9/python-311
FROM registry.access.redhat.com/ubi9/python-312

ARG nexusHostWithBasicAuth
ARG nexusHostWithoutScheme
Expand Down
6 changes: 3 additions & 3 deletions ds-streamlit/files/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
streamlit==1.30.0
plotly==5.18.0
pandas==2.1.4
streamlit==1.37.1
plotly==5.23.0
pandas==2.2.2
10 changes: 5 additions & 5 deletions ds-streamlit/files/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-r ./requirements.txt

mypy==1.7.1
flake8==6.1.0
pytest==7.4.3
pytest-cov==4.1.0
black==23.11.0
mypy==1.11.1
flake8==7.1.1
pytest==8.3.2
pytest-cov==5.0.0
black==24.8.0

0 comments on commit dc38a46

Please sign in to comment.