diff --git a/HISTORY.rst b/HISTORY.rst index 6459d14a..833b9b90 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -9,6 +9,10 @@ This project adheres to `Semantic Versioning `_. --------------------- +`3.0.1`_ (2022-12-16) +--------------------- +* `#515`_: Fix for running without optional packages + `3.0.0`_ (2022-12-15) --------------------- * Add support for Django >3.2 and drop support for <3.2 @@ -435,6 +439,7 @@ Initial Release .. _#505: https://github.com/groveco/django-sql-explorer/pull/505 .. _#506: https://github.com/groveco/django-sql-explorer/pull/506 .. _#508: https://github.com/groveco/django-sql-explorer/pull/508 +.. _#515: https://github.com/groveco/django-sql-explorer/pull/515 .. _#269: https://github.com/groveco/django-sql-explorer/issues/269 .. _#288: https://github.com/groveco/django-sql-explorer/issues/288 diff --git a/docs/features.rst b/docs/features.rst index 218b6b9c..d26987bb 100644 --- a/docs/features.rst +++ b/docs/features.rst @@ -47,7 +47,7 @@ Snapshots - Requires celery, obviously. Also uses boto3. All of these deps are optional and can be installed with - ``pip install -r optional-requirements.txt`` + ``pip install "django-sql-explorer[snapshots]"`` - The checkbox for opting a query into a snapshot is ALL THE WAY on the bottom of the query view (underneath the results table). - You must also have the setting ``EXPLORER_TASKS_ENABLED`` enabled. diff --git a/explorer/__init__.py b/explorer/__init__.py index 499cde23..d3214982 100644 --- a/explorer/__init__.py +++ b/explorer/__init__.py @@ -1,7 +1,7 @@ __version_info__ = { 'major': 3, 'minor': 0, - 'micro': 0, + 'patch': 1, 'releaselevel': 'final', 'serial': 0 } @@ -10,8 +10,8 @@ def get_version(short=False): assert __version_info__['releaselevel'] in ('alpha', 'beta', 'final') vers = ["%(major)i.%(minor)i" % __version_info__, ] - if __version_info__['micro']: - vers.append(".%(micro)i" % __version_info__) + if __version_info__['patch']: + vers.append(".%(patch)i" % __version_info__) if __version_info__['releaselevel'] != 'final' and not short: vers.append( '%s%i' % ( diff --git a/setup.py b/setup.py index 77327339..8f3d12c1 100644 --- a/setup.py +++ b/setup.py @@ -82,7 +82,7 @@ def read(fname): ], python_requires='>=3.8', install_requires=[ - 'Django>=3.2', + 'Django>=3.2.12', 'sqlparse>=0.4.0', ], extras_require={ @@ -90,8 +90,12 @@ def read(fname): "matplotlib<4", "seaborn<0.12" ], + "snapshots": [ + "boto3>=1.20.0", + "celery>=4.0" + ], "xls": [ - 'xlsxwriter>=1.2.1' + 'xlsxwriter>=1.3.6' ] }, cmdclass={