| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
Closes #1185.
|
| | |
|
| | |
|
| |
|
|
|
| |
* Officially support Python 3.11
* Implement __hash__ in LazyScriptNamePrefixedUrl to fix Python 3.11 tests
|
| |
|
| |
Django 3.1 has been dropped.
|
| | |
|
| | |
|
| |
|
|
|
| |
* Reformat with black
* Update flake8 ignores
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
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>
|
| | |
|
| |
|
|
|
|
|
| |
* Implement separate storage for the offline manifest, fixes #1112
* correctly use urljoin() for URLs; added example to docs
* Updated changelog
|
| | |
|
| | |
|
| |
|
|
|
| |
* 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+
|
| | |
|
| |
|
|
| |
When COMPRESS_OFFLINE_CONTEXT is a generator we need to avoid calling
len() on it to output the number of contexts in verbose mode.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
Fixes: #1077
|
| |
|
|
|
|
|
|
| |
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
* 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
* Remove now unused import
* Remove obsolete test
|
| |\
| |
| | |
THREADING: Make template compression threaded to improve performance
|
| | |
| |
| |
| | |
THREADING: Switch from no max to max pool of 4 processes
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| | |
Co-authored-by: Sergey Bondar <sbondar@milosolutions.com>
|
| | |
| |
| |
| |
| |
| |
| | |
* Remove deprecated providing_args
* Update signals.py
Co-authored-by: Johannes Linke <karyon@users.noreply.github.com>
|
| | |
| |
| |
| | |
#1018. (#1019)
|
| | |
| |
| | |
Co-authored-by: Kyle Dickerson <dickerson9@llnl.gov>
|
| | |
| |
| | |
Closes #990
|
| | | |
|
| | | |
|
| |/
|
|
|
|
|
|
| |
This reverts commit 068bdfa5a2912cd7471543a7a652be67135cf95f, reversing
changes made to 37318acbb7db4dc9b146939361422b94bfe80b5f.
# Conflicts:
# compressor/storage.py
# tests/tests/storages.py
|
| | |
|
| | |
|
| |
|
| |
smart_text is deprecated in favor of its alias, smart_str in Django 3.0
|
| | |
|
| | |
|
| |
|
|
| |
* Update flake8 to be compatible with newer versions of python
|
| | |
|
| |
|
|
| |
Calmjs minifier.
|
| | |
|
| | |
|