summaryrefslogtreecommitdiff
path: root/compressor
Commit message (Collapse)AuthorAgeFilesLines
* Switched to importlib in tests. (#1186)Carlton Gibson2023-04-301-1/+1
| | | Closes #1185.
* Doc fixes, prepare 4.3.1Mathieu Pillard2023-01-221-1/+1
|
* Prepare 4.34.3Mathieu Pillard2023-01-061-1/+1
|
* Officially support Python 3.11 (#1168)Mathieu Pillard2023-01-061-0/+3
| | | | | * Officially support Python 3.11 * Implement __hash__ in LazyScriptNamePrefixedUrl to fix Python 3.11 tests
* Remove unnecessary Django version check (#1156)bcail2023-01-061-4/+1
| | | Django 3.1 has been dropped.
* Prepare 4.24.2Mathieu Pillard2023-01-061-1/+1
|
* Drop older versions of Django (2.2, 3.1) & Python (3.7) (#1150)Mathieu Pillard2022-10-312-29/+2
|
* Reformat with black (#1151)Mathieu Pillard2022-10-2847-1327/+1945
| | | | | * Reformat with black * Update flake8 ignores
* Bump flake8 from 4.0.1 to 5.0.4 in /requirements (#1135)dependabot[bot]2022-10-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | * Bump flake8 from 4.0.1 to 5.0.4 in /requirements Bumps [flake8](https://github.com/pycqa/flake8) from 4.0.1 to 5.0.4. - [Release notes](https://github.com/pycqa/flake8/releases) - [Commits](https://github.com/pycqa/flake8/compare/4.0.1...5.0.4) --- updated-dependencies: - dependency-name: flake8 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fix flake8 error Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mathieu Pillard <mpillard@mozilla.com>
* Bump jinja2 from 3.0.3 to 3.1.2 in /requirements (#1125)dependabot[bot]2022-10-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | * Bump jinja2 from 3.0.3 to 3.1.2 in /requirements Bumps [jinja2](https://github.com/pallets/jinja) from 3.0.3 to 3.1.2. - [Release notes](https://github.com/pallets/jinja/releases) - [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/jinja/compare/3.0.3...3.1.2) --- updated-dependencies: - dependency-name: jinja2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Remove obsolete jinja2.ext.with_ extension Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
* Bump version to 4.1Mathieu Pillard2022-08-031-1/+1
|
* Implement separate storage for the offline manifestth3hamm0r2022-05-275-18/+37
| | | | | | | * Implement separate storage for the offline manifest, fixes #1112 * correctly use urljoin() for URLs; added example to docs * Updated changelog
* Fixed compatibility with Django 4.1, fixes #1114 (#1115)th3hamm0r2022-05-241-2/+5
|
* Prepare 4.0Mathieu Pillard2022-04-231-1/+1
|
* Remove delete() call from CompressorFileStorage.get_available_name (#1107)Pēteris Caune2022-04-032-7/+16
| | | | | * Remove delete() call from CompressorFileStorage.get_available_name * Add a testcase for duplicate handling in save()
* Deprecate SlimItFilter, stop testing it with Python 3.7+ (#1102)Mathieu Pillard2022-02-232-5/+15
| | | * Deprecate SlimItFilter, stop testing it with Python 3.7+
* Bump version to 3.1Mathieu Pillard2021-12-181-1/+1
|
* Fix error with verbose offline compression and context generators (#1092)Mathieu Pillard2021-12-182-29/+64
| | | | When COMPRESS_OFFLINE_CONTEXT is a generator we need to avoid calling len() on it to output the number of contexts in verbose mode.
* Fixed race condition in _compress_template (#1086)Pēteris Caune2021-12-071-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compressor avoids rendering the same node multiple times by checking for a key in offline_manifest: ``` if key in offline_manifest: continue [... render template ...] offline_manifest[key] = result ``` Multiple _compress_template calls can run concurrently, creating a race condition: each checks for a key in offline manifest, then each proceeds to render template. Finally they try to save the same file at the same time, causing #1082. My proposed fix is to atomically * check if the manifest key exists * if it doesn't exist, set it to a placeholder value (None) So, in nutshell, the first "if" part becomes: ``` with offline_manifest_lock: if key in offline_manifest: continue offline_manifest[key] = None ``` I'm not sure where to store the lock, I've put it at the module level currently. Perhaps there's a way to avoid the lock entirely.
* Fixed test_precompiler_cache to clear cache before the test runs (#1078)Pēteris Caune2021-11-221-0/+3
| | | Fixes: #1077
* Added `LazyScriptNamePrefixedUrl.replace` override (#1079)Pēteris Caune2021-11-221-0/+12
| | | | | | | | This is needed for LazyScriptNamePrefixedUrl to work correctly with `urllib.parse`. Python's `urllib.parse` started to call the `replace` method here: https://bugs.python.org/issue43882
* Bump test requirements (#1057)Mathieu Pillard2021-04-231-6/+6
| | | | | | | | | * Bump test requirements * Don't keep mock: we're on Python 3 only now * Fix flake8 warning * Fix tests with BeautifulSoup 4.9.0
* Remove deprecated COMPRESS_CSS_FILTERS and COMPRESS_JS_FILTERS settings (#1056)Mathieu Pillard2021-04-232-82/+8
| | | | | | | * Remove deprecated COMPRESS_CSS_FILTERS and COMPRESS_JS_FILTERS settings * Remove now unused import * Remove obsolete test
* Merge pull request #912 from keithhackbarth/developMathieu Pillard2021-04-231-32/+41
|\ | | | | THREADING: Make template compression threaded to improve performance
| * THREADING: Switch from no max to max pool of 4 processesKeith Hackbarth2020-01-021-11/+5
| | | | | | | | THREADING: Switch from no max to max pool of 4 processes
| * THREADING: Make template compression threaded to improve performanceKeith Hackbarth2020-01-021-31/+46
| |
* | Prepare 3.0 versionMathieu Pillard2021-04-171-1/+1
| |
* | Don't use f-strings to keep compatibility with Python 3.5Mathieu Pillard2021-04-171-2/+3
| |
* | Add DeprecationWarning for COMPRESS_CSS_FILTERS / COMPRESS_JS_FILTERSMathieu Pillard2021-04-171-1/+5
| |
* | Shouldn't have changed thatMathieu Pillard2021-04-131-4/+4
| |
* | Enable rCSSMinFilter by defaultMathieu Pillard2021-04-139-51/+60
| |
* | Remove outdated codetufedtm2021-04-1322-69/+55
| |
* | extra logging in template tag (#1010)skiv232021-01-012-6/+26
| | | | | | Co-authored-by: Sergey Bondar <sbondar@milosolutions.com>
* | Remove deprecated providing_args in signals (#1020)Andrew Chen Wang2020-11-021-2/+2
| | | | | | | | | | | | | | * Remove deprecated providing_args * Update signals.py Co-authored-by: Johannes Linke <karyon@users.noreply.github.com>
* | Specify mode explicitly to GzipFile constructor to fix FutureWarning. Fixes ↵Karthikeyan Singaravelan2020-10-231-1/+1
| | | | | | | | #1018. (#1019)
* | Fix #979 - Correctly handle relative paths in "extends" tags. (#995)Kyle Dickerson2020-03-114-3/+42
| | | | | | Co-authored-by: Kyle Dickerson <dickerson9@llnl.gov>
* | Fix simple typo: compressable -> compressible (#991)Tim Gates2020-03-021-1/+1
| | | | | | Closes #990
* | Replace force_text with force_str (#988)Joren Vrancken2020-01-271-3/+3
| |
* | Remove "from __future__ import" and "coding: utf-8" (#986)Johannes Linke2020-01-0223-32/+0
| |
* | Remove a workaround for django <1.4. This reverts #160 (#983)Johannes Linke2020-01-022-31/+0
|/ | | | | | | | This reverts commit 068bdfa5a2912cd7471543a7a652be67135cf95f, reversing changes made to 37318acbb7db4dc9b146939361422b94bfe80b5f. # Conflicts: # compressor/storage.py # tests/tests/storages.py
* Remove python 2 logic (#982)Albert Wang2020-01-023-28/+9
|
* Remove six (#976)Albert Wang2020-01-0212-50/+37
|
* Switch from smart_text to smart_str (#977)Albert Wang2020-01-027-20/+20
| | | smart_text is deprecated in favor of its alias, smart_str in Django 3.0
* Release v2.4Albert Wang2019-12-201-1/+1
|
* Remove django 2.1 deprecationAlbert Wang2019-12-141-1/+5
|
* Update flake8 to be compatible with newer versions of python (#968)Albert Wang2019-12-149-25/+25
| | | | * Update flake8 to be compatible with newer versions of python
* Remove django.utils.six (#969)Albert Wang2019-12-051-1/+1
|
* Add tests for js minifiers and allow passing parser and unparsers to the ↵Alexander van Ratingen2019-10-122-9/+50
| | | | Calmjs minifier.
* Fix Calmjs links and package name.Alexander van Ratingen2019-10-121-1/+1
|
* Add support for the Calmjs javascript minifier.Alexander van Ratingen2019-10-121-0/+8
|