diff --git a/HISTORY.rst b/HISTORY.rst index 7c5114da..992ef36f 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -9,13 +9,17 @@ Unreleased 2.0.8 ===== +* Added **Django 4.0** compatibility. Thanks to @kevinmarsh (#760) * Add tests for **Django 4.0**, **Python 3.9** and **Python 3.10**. Thank to @kevinmarsh (#739) * Introduce CODE_OF_CONDUCT.md for the project. Thank to @hugovk (#758) * Add precision in the documentation for PipelineCachedStorage. Thank to @gatsinski (#739) +* Drop support for slimit compressor (#765) due to package not released + an official version for Python 3 and not any new package release from 2013. * Edit github actions matrix: django 3.2.9 support python 3.10, remove python 4.0 (doesn't exist) and exclude pypy-3.8 for django-main. +* Add .pre-commit-config.yaml. Thanks to @hugovk (#762) * Update package.json due to CoffeeScript on NPM has moved to "coffeescript" * Update setup.py with Django 4.0 and Python 3.10 diff --git a/docs/compressors.rst b/docs/compressors.rst index 1d9d8b3a..72977140 100644 --- a/docs/compressors.rst +++ b/docs/compressors.rst @@ -158,21 +158,6 @@ Install the jsmin library with your favorite Python package manager :: pip install jsmin -SlimIt compressor -================= - -The slimit compressor uses `SlimIt `_ to -compress javascripts. - -To use it add this to your ``PIPELINE['JS_COMPRESSOR']`` :: - - PIPELINE['JS_COMPRESSOR'] = 'pipeline.compressors.slimit.SlimItCompressor' - -Install the slimit library with your favorite Python package manager :: - - pip install slimit - - Terser compressor =================== diff --git a/pipeline/compressors/slimit.py b/pipeline/compressors/slimit.py deleted file mode 100644 index 717fe4d9..00000000 --- a/pipeline/compressors/slimit.py +++ /dev/null @@ -1,11 +0,0 @@ -from pipeline.compressors import CompressorBase - - -class SlimItCompressor(CompressorBase): - """ - JS compressor based on the Python library slimit - (http://pypi.python.org/pypi/slimit/). - """ - def compress_js(self, js): - from slimit import minify - return minify(js) diff --git a/tests/tests/test_compressor.py b/tests/tests/test_compressor.py index 1c49e004..c3ba84d6 100644 --- a/tests/tests/test_compressor.py +++ b/tests/tests/test_compressor.py @@ -226,10 +226,6 @@ def test_jsmin(self): self._test_compressor('pipeline.compressors.jsmin.JSMinCompressor', 'js', 'pipeline/compressors/jsmin.js') - def test_slimit(self): - self._test_compressor('pipeline.compressors.slimit.SlimItCompressor', - 'js', 'pipeline/compressors/slimit.js') - def test_csshtmljsminify(self): self._test_compressor('pipeline.compressors.csshtmljsminify.CssHtmlJsMinifyCompressor', 'css', 'pipeline/compressors/csshtmljsminify.css') diff --git a/tox.ini b/tox.ini index dbf27c29..0acaecbf 100644 --- a/tox.ini +++ b/tox.ini @@ -44,7 +44,6 @@ deps = coverage jsmin==3.0.0 ply==3.4 - slimit==0.8.1 css-html-js-minify==2.5.5 setenv = DJANGO_SETTINGS_MODULE = tests.settings