File tree Expand file tree Collapse file tree 6 files changed +37
-30
lines changed
static_precompiler/management/commands Expand file tree Collapse file tree 6 files changed +37
-30
lines changed Original file line number Diff line number Diff line change 22Changelog
33*********
44
5+ Dev
6+ ===
7+
8+ - Add support for Django 4.1
9+
5102.1
611===
712
Original file line number Diff line number Diff line change 11FROM andreyfedoseev/django-static-precompiler:18.04
2- RUN apt-get update && \
3- apt-get install -y \
2+ ARG DEBIAN_FRONTEND=noninteractive
3+ ENV TZ=Etc/UTC
4+ RUN apt update && \
5+ apt install software-properties-common -y && \
6+ add-apt-repository ppa:deadsnakes/ppa -y && \
7+ apt install -y \
48 python3.6-dev \
59 python3.8-dev \
10+ python3.9-dev \
11+ python3.9-distutils \
12+ python3.10-dev \
13+ python3.10-distutils \
14+ python3.11-dev \
15+ python3.11-distutils \
616 python3-pip \
717 sqlite3
818RUN mkdir /app
Original file line number Diff line number Diff line change 11all :
2- docker- compose build
2+ docker compose build
33
44shell :
5- docker- compose run --rm app /bin/bash
5+ docker compose run --rm app /bin/bash
66
77test :
8- docker- compose run --rm app tox
8+ docker compose run --rm app tox
99
1010upload :
1111 python setup.py sdist upload
1212
1313check-flake8 :
14- docker- compose run --rm app flake8
14+ docker compose run --rm app flake8
1515
1616check-black :
17- docker- compose run --rm app black --check ./static_precompiler
17+ docker compose run --rm app black --check ./static_precompiler
1818
1919apply-black :
20- docker- compose run --rm app black ./static_precompiler
20+ docker compose run --rm app black ./static_precompiler
2121
2222check-isort :
23- docker- compose run --rm app isort --check ./static_precompiler
23+ docker compose run --rm app isort --check ./static_precompiler
2424
2525apply-isort :
26- docker- compose run --rm app isort ./static_precompiler
26+ docker compose run --rm app isort ./static_precompiler
Original file line number Diff line number Diff line change 1- pytest<4
2- pytest-django==3.1 .2
1+ pytest==6.2.5
2+ pytest-django==4.5 .2
33pretend
44watchdog
55libsass
66coverage
7- pytest-cov==2.5.1
7+ pytest-cov==4.0.0
88tox
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class Command(django.core.management.base.BaseCommand):
8383
8484 help = "Compile static files."
8585
86- requires_system_checks = False
86+ requires_system_checks = []
8787
8888 def add_arguments (self , parser ):
8989 for argument , parameters in ARGUMENTS :
@@ -129,9 +129,5 @@ def handle(self, **options):
129129 watch_dirs (scanned_dirs , verbosity )
130130
131131
132- if django .VERSION < (1 , 8 ):
133- import optparse
134-
135- Command .option_list = django .core .management .base .NoArgsCommand .option_list + tuple (
136- optparse .make_option (argument , ** argument_parameters ) for argument , argument_parameters in ARGUMENTS
137- )
132+ if django .VERSION < (3 , 2 ):
133+ Command .requires_system_checks = False
Original file line number Diff line number Diff line change 11[tox]
22envlist =
3- py36-django20,
4- py36-django21,
53 py36-django22,
6- py36-django30 ,
7- py36-django31,
8- py38-django40
9-
4+ py38-django32 ,
5+ py39-django40
6+ py310-django41
7+ py311-django41
108[testenv]
119passenv = GEM_PATH
1210deps =
1311 -rrequirements-test.txt
14- django20: Django>=2.0,<2.1
15- django21: Django>=2.1,<2.2
1612 django22: Django>=2.2,<3.0
17- django30: Django>=3.0,<3.1
18- django31: Django>=3.1,<4
13+ django32: Django>=3.2,<4
1914 django40: Django>=4.0,<4.1
15+ django41: Django>=4.1,<4.2
2016commands = py.test static_precompiler --cov static_precompiler --cov-report xml --cov-append
2117setenv =
2218 PYTHONPATH = {toxinidir}
You can’t perform that action at this time.
0 commit comments