miracle2k / django-assets

Django webassets integration.
BSD 2-Clause "Simplified" License
89 stars 79 forks source link

"assets build" fails in Django 4.1 #102

Open AetherUnbound opened 1 year ago

AetherUnbound commented 1 year ago

It appears that running python manage.py assets build with Django 4.1 fails with the following exception:

Traceback (most recent call last):
  File "/tmp/build_74533dba/manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/app/.heroku/python/lib/python3.10/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/app/.heroku/python/lib/python3.10/site-packages/django/core/management/__init__.py", line 440, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/app/.heroku/python/lib/python3.10/site-packages/django/core/management/__init__.py", line 279, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/app/.heroku/python/lib/python3.10/site-packages/django/core/management/__init__.py", line 49, in load_command_class
    return module.Command()
  File "/app/.heroku/python/lib/python3.10/site-packages/django/core/management/base.py", line 274, in __init__
    raise TypeError("requires_system_checks must be a list or tuple.")
TypeError: requires_system_checks must be a list or tuple.

This appears to be because of this line: https://github.com/miracle2k/django-assets/blob/f2232d3759ac72a1207e24449bf1813437aa1ca6/django_assets/management/commands/assets.py#L40