Skip to content

Commit 3f226d0

Browse files
committed
Cleaning up tests, adding Jinja tests for skip_common_chunks
1 parent 0a65129 commit 3f226d0

File tree

9 files changed

+273
-242
lines changed

9 files changed

+273
-242
lines changed

.circleci/config.yml

Lines changed: 0 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -3,67 +3,43 @@ workflows:
33
version: 2
44
test:
55
jobs:
6-
- test-3.5-20
7-
- test-3.5-21
8-
- test-3.5-22
9-
10-
- test-3.6-20
11-
- test-3.6-21
126
- test-3.6-22
137
- test-3.6-30
148
- test-3.6-31
159
- test-3.6-32
1610

17-
- test-3.7-20
18-
- test-3.7-21
1911
- test-3.7-22
2012
- test-3.7-30
2113
- test-3.7-31
2214
- test-3.7-32
2315

24-
- test-3.8-20
25-
- test-3.8-21
2616
- test-3.8-22
2717
- test-3.8-30
2818
- test-3.8-31
2919
- test-3.8-32
3020

31-
- test-3.9-20
32-
- test-3.9-21
3321
- test-3.9-22
3422
- test-3.9-30
3523
- test-3.9-31
3624
- test-3.9-32
3725

3826
- done:
3927
requires:
40-
- test-3.5-20
41-
- test-3.5-21
42-
- test-3.5-22
43-
44-
- test-3.6-20
45-
- test-3.6-21
4628
- test-3.6-22
4729
- test-3.6-30
4830
- test-3.6-31
4931
- test-3.6-32
5032

51-
- test-3.7-20
52-
- test-3.7-21
5333
- test-3.7-22
5434
- test-3.7-30
5535
- test-3.7-31
5636
- test-3.7-32
5737

58-
- test-3.8-20
59-
- test-3.8-21
6038
- test-3.8-22
6139
- test-3.8-30
6240
- test-3.8-31
6341
- test-3.8-32
6442

65-
- test-3.9-20
66-
- test-3.9-21
6743
- test-3.9-22
6844
- test-3.9-30
6945
- test-3.9-31
@@ -118,37 +94,6 @@ jobs:
11894
environment:
11995
COVERALLS_PARALLEL: 1
12096

121-
test-3.5-20:
122-
<<: *test-template
123-
docker:
124-
- image: circleci/python:3.5-stretch-node
125-
environment:
126-
DJANGO_VERSION: "20"
127-
test-3.5-21:
128-
<<: *test-template
129-
docker:
130-
- image: circleci/python:3.5-stretch-node
131-
environment:
132-
DJANGO_VERSION: "21"
133-
test-3.5-22:
134-
<<: *test-template
135-
docker:
136-
- image: circleci/python:3.5-stretch-node
137-
environment:
138-
DJANGO_VERSION: "22"
139-
140-
test-3.6-20:
141-
<<: *test-template
142-
docker:
143-
- image: circleci/python:3.6-stretch-node
144-
environment:
145-
DJANGO_VERSION: "20"
146-
test-3.6-21:
147-
<<: *test-template
148-
docker:
149-
- image: circleci/python:3.6-stretch-node
150-
environment:
151-
DJANGO_VERSION: "21"
15297
test-3.6-22:
15398
<<: *test-template
15499
docker:
@@ -174,18 +119,6 @@ jobs:
174119
environment:
175120
DJANGO_VERSION: "32"
176121

177-
test-3.7-20:
178-
<<: *test-template
179-
docker:
180-
- image: circleci/python:3.7-stretch-node
181-
environment:
182-
DJANGO_VERSION: "20"
183-
test-3.7-21:
184-
<<: *test-template
185-
docker:
186-
- image: circleci/python:3.7-stretch-node
187-
environment:
188-
DJANGO_VERSION: "21"
189122
test-3.7-22:
190123
<<: *test-template
191124
docker:
@@ -211,18 +144,6 @@ jobs:
211144
environment:
212145
DJANGO_VERSION: "32"
213146

214-
test-3.8-20:
215-
<<: *test-template
216-
docker:
217-
- image: circleci/python:3.8-buster-node
218-
environment:
219-
DJANGO_VERSION: "20"
220-
test-3.8-21:
221-
<<: *test-template
222-
docker:
223-
- image: circleci/python:3.8-buster-node
224-
environment:
225-
DJANGO_VERSION: "21"
226147
test-3.8-22:
227148
<<: *test-template
228149
docker:
@@ -248,18 +169,6 @@ jobs:
248169
environment:
249170
DJANGO_VERSION: "32"
250171

251-
test-3.9-20:
252-
<<: *test-template
253-
docker:
254-
- image: circleci/python:3.9-buster-node
255-
environment:
256-
DJANGO_VERSION: "20"
257-
test-3.9-21:
258-
<<: *test-template
259-
docker:
260-
- image: circleci/python:3.9-buster-node
261-
environment:
262-
DJANGO_VERSION: "21"
263172
test-3.9-22:
264173
<<: *test-template
265174
docker:

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
twine==3.4.1
2-
Django==3.2.4
2+
Django==3.2.7
33
django-jinja==2.7.0
44
unittest2==1.1.0
55
wheel==0.36.2

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ def rel(*parts):
88
'''returns the relative path to a file wrt to the current directory'''
99
return os.path.abspath(os.path.join(os.path.dirname(__file__), *parts))
1010

11-
README = open('README.md', 'r').read()
11+
with open('README.md', 'r') as handler:
12+
README = handler.read()
1213

1314
with open(rel('webpack_loader', '__init__.py')) as handler:
14-
INIT_PY = handler.read()
15+
INIT_PY = handler.read()
1516

1617

1718
VERSION = re.findall("__version__ = '([^']+)'", INIT_PY)[0]
@@ -30,7 +31,6 @@ def rel(*parts):
3031
keywords = ['django', 'webpack', 'assets'], # arbitrary keywords
3132
classifiers = [
3233
'Programming Language :: Python',
33-
'Programming Language :: Python :: 3.5',
3434
'Programming Language :: Python :: 3.6',
3535
'Programming Language :: Python :: 3.7',
3636
'Programming Language :: Python :: 3.8',
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Example</title>
6+
{{ render_bundle('app1', 'js') }}
7+
{{ render_bundle('app2', 'js', skip_common_chunks=True) }}
8+
</head>
9+
10+
<body>
11+
<div id="react-app"></div>
12+
{{ render_bundle('app1', 'js', skip_common_chunks=True) }}
13+
{{ render_bundle('app2', 'js', skip_common_chunks=True) }}
14+
</body>
15+
</html>

0 commit comments

Comments
 (0)