diff --git a/.github/workflows/webviz-core-components.yml b/.github/workflows/webviz-core-components.yml index 5036332e..0fa4b988 100644 --- a/.github/workflows/webviz-core-components.yml +++ b/.github/workflows/webviz-core-components.yml @@ -19,16 +19,16 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - name: 📖 Checkout commit locally uses: actions/checkout@v3 - - name: 🐍 Set up Python ${{ matrix.python-version }} + - name: 🐍 Set up Python 3.8 uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python-version }} + python-version: 3.8 # For compiling the JavaScript part we need dash<2.5, which is not supported on recent versions of Python - name: ℹī¸ Node and npm versions run: | @@ -50,6 +50,11 @@ jobs: run: | npm run build --prefix ./react + - name: 🐍 Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: đŸ“Ļ Install webviz-core-components with dependencies run: | pip install --upgrade pip diff --git a/CHANGELOG.md b/CHANGELOG.md index 28c22ba1..067566f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [UNRELEASED] - YYYY-MM-DD +## [0.7.0] - 2024-01-29 ### Fixed @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - [#275](https://github.com/equinor/webviz-core-components/pull/275) - Added `WebvizDialog` component. New dialog component which handles multiple instances simultaneously, where the currently active dialog is placed on top and highlighted with box shadow. +- [#299](https://github.com/equinor/webviz-core-components/pull/299) - Support Python 3.11 and 3.12. ### Changed diff --git a/README.md b/README.md index a6524a16..342bd592 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Total alerts](https://img.shields.io/lgtm/alerts/g/equinor/webviz-core-components.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/equinor/webviz-core-components/alerts/) [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/equinor/webviz-core-components.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/equinor/webviz-core-components/context:javascript) [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/equinor/webviz-core-components.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/equinor/webviz-core-components/context:python) -[![Python 3.8 | 3.9 | 3.10](https://img.shields.io/badge/python-3.8%20|%203.9%20|%203.10-blue.svg)](https://www.python.org/) +[![Python 3.8 | 3.9 | 3.10 | 3.11 | 3.12](https://img.shields.io/badge/python-3.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12-blue.svg)](https://www.python.org/) [![Code style: black](https://img.shields.io/badge/code%20style-black%20%28Python%29-000000.svg)](https://github.com/psf/black) [![code style: prettier](https://img.shields.io/badge/code_style-prettier%20%28JavaScript%29-ff69b4.svg)](https://github.com/prettier/prettier) diff --git a/setup.py b/setup.py index 285df2ee..ec32c96d 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ TESTS_REQUIRE = [ "bandit", - "black>=22.12", + "black>=22.12,<24", "dash[testing]", "flask<2.3", "pylint", diff --git a/tests/test_color_scales.py b/tests/test_color_scales.py index 57694774..b8910eaf 100644 --- a/tests/test_color_scales.py +++ b/tests/test_color_scales.py @@ -27,4 +27,4 @@ def test_colorscale(dash_duo): dash_duo.start_server(app) - assert dash_duo.get_logs() == [], "browser console should contain no error" + assert dash_duo.get_logs() is None, "browser console should contain no error" diff --git a/tests/test_graph.py b/tests/test_graph.py index 7d59f9d4..ffdc8266 100644 --- a/tests/test_graph.py +++ b/tests/test_graph.py @@ -42,4 +42,4 @@ def test_container_placeholder(dash_duo): dash_duo.start_server(app) - assert dash_duo.get_logs() == [], "browser console should contain no error" + assert dash_duo.get_logs() is None, "browser console should contain no error" diff --git a/tests/test_plugin_placeholder.py b/tests/test_plugin_placeholder.py index f633d741..be2e1d84 100644 --- a/tests/test_plugin_placeholder.py +++ b/tests/test_plugin_placeholder.py @@ -25,4 +25,4 @@ def test_plugin_placeholder(dash_duo): dash_duo.start_server(app) - assert dash_duo.get_logs() == [], "browser console should contain no error" + assert dash_duo.get_logs() is None, "browser console should contain no error"