diff --git a/HISTORY.rst b/HISTORY.rst index 4008fbfc..a89d20ec 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -9,6 +9,11 @@ This project adheres to `Semantic Versioning `_. --------------------- +`2.5.0`_ (2022-08-30) +--------------------- +* `#481`_: Added query output as charts using new setting ``EXPLORER_CHARTS_ENABLED`` and 2 additional dependencies (Fix `#480`_) +* `#478`_: Improve template block inheritance to allow easier customisation. (Fix `#477`_) + `2.4.2`_ (2022-08-30) --------------------- * `#484`_: Added ``DEFAULT_AUTO_FIELD`` (Fix `#483`_) @@ -397,6 +402,8 @@ Initial Release .. _#470: https://github.com/groveco/django-sql-explorer/pull/470 .. _#471: https://github.com/groveco/django-sql-explorer/pull/471 .. _#475: https://github.com/groveco/django-sql-explorer/pull/475 +.. _#478: https://github.com/groveco/django-sql-explorer/pull/478 +.. _#481: https://github.com/groveco/django-sql-explorer/pull/481 .. _#484: https://github.com/groveco/django-sql-explorer/pull/484 .. _#269: https://github.com/groveco/django-sql-explorer/issues/269 @@ -410,6 +417,8 @@ Initial Release .. _#433: https://github.com/groveco/django-sql-explorer/issues/433 .. _#440: https://github.com/groveco/django-sql-explorer/issues/440 .. _#443: https://github.com/groveco/django-sql-explorer/issues/443 +.. _#477: https://github.com/groveco/django-sql-explorer/issues/477 +.. _#480: https://github.com/groveco/django-sql-explorer/issues/480 .. _#483: https://github.com/groveco/django-sql-explorer/issues/483 .. _furo: https://github.com/pradyunsg/furo diff --git a/docs/features.rst b/docs/features.rst index 2157d1db..784376d0 100644 --- a/docs/features.rst +++ b/docs/features.rst @@ -129,8 +129,14 @@ To enable this feature, set ``EXPLORER_CHARTS_ENABLED`` setting to ``True`` and .. code-block:: console - pip install matplotlib - pip install seaborn + pip install django-sql-explorer[graphs] + +Or if you already have the package installed, add the additional dependencies + +.. code-block:: console + + pip install "matplotlib<4" + pip install "seaborn<0.12" This will add the "Pie chart" and the "Line chart" tabs alongside the "Preview" and the "Pivot" tabs in the query results view. diff --git a/explorer/__init__.py b/explorer/__init__.py index 7cc18385..1b12785a 100644 --- a/explorer/__init__.py +++ b/explorer/__init__.py @@ -1,8 +1,8 @@ __version_info__ = { 'major': 2, - 'minor': 4, - 'micro': 2, - 'releaselevel': 'final', + 'minor': 5, + 'micro': 0, + 'releaselevel': 'beta', 'serial': 0 } diff --git a/setup.py b/setup.py index 55a2c13e..ddb33e7b 100644 --- a/setup.py +++ b/setup.py @@ -83,6 +83,10 @@ def read(fname): 'sqlparse>=0.4.0', ], extras_require={ + "graphs": [ + 'matplotlib<4', + 'seaborn<0.12' + ], "xls": [ 'xlsxwriter>=1.2.1' ]