diff --git a/django_components/component.py b/django_components/component.py index eabc9ca8..b3d97d52 100644 --- a/django_components/component.py +++ b/django_components/component.py @@ -7,13 +7,12 @@ from django.template.base import NodeList, TokenType from django.template.loader import get_template from django.utils.safestring import mark_safe -from six import with_metaclass # Allow "component.AlreadyRegistered" instead of having to import these everywhere from django_components.component_registry import AlreadyRegistered, ComponentRegistry, NotRegistered # noqa -class Component(with_metaclass(MediaDefiningClass)): +class Component(metaclass=MediaDefiningClass): def __init__(self, component_name): self.__component_name = component_name diff --git a/requirements-dev.in b/requirements-dev.in index 52babe2a..b6e91999 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -1,5 +1,4 @@ django -six tox pytest flake8 diff --git a/requirements-dev.txt b/requirements-dev.txt index f5ca0a06..274f94ef 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,28 +2,64 @@ # This file is autogenerated by pip-compile # To update, run: # -# pip-compile --output-file=requirements-dev.txt requirements-dev.in +# pip-compile requirements-dev.in # -appdirs==1.4.4 # via virtualenv -asgiref==3.3.0 # via django -attrs==20.2.0 # via pytest -distlib==0.3.1 # via virtualenv -django==3.1.3 # via -r requirements-dev.in -filelock==3.0.12 # via tox, virtualenv -flake8==3.8.4 # via -r requirements-dev.in -iniconfig==1.1.1 # via pytest -isort==5.6.4 # via -r requirements-dev.in -mccabe==0.6.1 # via flake8 -packaging==20.4 # via pytest, tox -pluggy==0.13.1 # via pytest, tox -py==1.9.0 # via pytest, tox -pycodestyle==2.6.0 # via flake8 -pyflakes==2.2.0 # via flake8 -pyparsing==2.4.7 # via packaging -pytest==6.1.2 # via -r requirements-dev.in -pytz==2020.4 # via django -six==1.15.0 # via -r requirements-dev.in, packaging, tox, virtualenv -sqlparse==0.4.1 # via django -toml==0.10.2 # via pytest, tox -tox==3.20.1 # via -r requirements-dev.in -virtualenv==20.1.0 # via tox +appdirs==1.4.4 + # via virtualenv +asgiref==3.3.0 + # via django +attrs==20.2.0 + # via pytest +distlib==0.3.1 + # via virtualenv +django==3.1.3 + # via -r requirements-dev.in +filelock==3.0.12 + # via + # tox + # virtualenv +flake8==3.8.4 + # via -r requirements-dev.in +iniconfig==1.1.1 + # via pytest +isort==5.6.4 + # via -r requirements-dev.in +mccabe==0.6.1 + # via flake8 +packaging==20.4 + # via + # pytest + # tox +pluggy==0.13.1 + # via + # pytest + # tox +py==1.9.0 + # via + # pytest + # tox +pycodestyle==2.6.0 + # via flake8 +pyflakes==2.2.0 + # via flake8 +pyparsing==2.4.7 + # via packaging +pytest==6.1.2 + # via -r requirements-dev.in +pytz==2020.4 + # via django +six==1.15.0 + # via + # packaging + # tox + # virtualenv +sqlparse==0.4.1 + # via django +toml==0.10.2 + # via + # pytest + # tox +tox==3.20.1 + # via -r requirements-dev.in +virtualenv==20.1.0 + # via tox