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 2
2
Changelog
3
3
*********
4
4
5
+ Dev
6
+ ===
7
+
8
+ - Add support for Django 4.1
9
+
5
10
2.1
6
11
===
7
12
Original file line number Diff line number Diff line change 1
1
FROM 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 \
4
8
python3.6-dev \
5
9
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 \
6
16
python3-pip \
7
17
sqlite3
8
18
RUN mkdir /app
Original file line number Diff line number Diff line change 1
1
all :
2
- docker- compose build
2
+ docker compose build
3
3
4
4
shell :
5
- docker- compose run --rm app /bin/bash
5
+ docker compose run --rm app /bin/bash
6
6
7
7
test :
8
- docker- compose run --rm app tox
8
+ docker compose run --rm app tox
9
9
10
10
upload :
11
11
python setup.py sdist upload
12
12
13
13
check-flake8 :
14
- docker- compose run --rm app flake8
14
+ docker compose run --rm app flake8
15
15
16
16
check-black :
17
- docker- compose run --rm app black --check ./static_precompiler
17
+ docker compose run --rm app black --check ./static_precompiler
18
18
19
19
apply-black :
20
- docker- compose run --rm app black ./static_precompiler
20
+ docker compose run --rm app black ./static_precompiler
21
21
22
22
check-isort :
23
- docker- compose run --rm app isort --check ./static_precompiler
23
+ docker compose run --rm app isort --check ./static_precompiler
24
24
25
25
apply-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
3
3
pretend
4
4
watchdog
5
5
libsass
6
6
coverage
7
- pytest-cov==2.5.1
7
+ pytest-cov==4.0.0
8
8
tox
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class Command(django.core.management.base.BaseCommand):
83
83
84
84
help = "Compile static files."
85
85
86
- requires_system_checks = False
86
+ requires_system_checks = []
87
87
88
88
def add_arguments (self , parser ):
89
89
for argument , parameters in ARGUMENTS :
@@ -129,9 +129,5 @@ def handle(self, **options):
129
129
watch_dirs (scanned_dirs , verbosity )
130
130
131
131
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 1
1
[tox]
2
2
envlist =
3
- py36-django20,
4
- py36-django21,
5
3
py36-django22,
6
- py36-django30 ,
7
- py36-django31,
8
- py38-django40
9
-
4
+ py38-django32 ,
5
+ py39-django40
6
+ py310-django41
7
+ py311-django41
10
8
[testenv]
11
9
passenv = GEM_PATH
12
10
deps =
13
11
-rrequirements-test.txt
14
- django20: Django>=2.0,<2.1
15
- django21: Django>=2.1,<2.2
16
12
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
19
14
django40: Django>=4.0,<4.1
15
+ django41: Django>=4.1,<4.2
20
16
commands = py.test static_precompiler --cov static_precompiler --cov-report xml --cov-append
21
17
setenv =
22
18
PYTHONPATH = {toxinidir}
You can’t perform that action at this time.
0 commit comments