Skip to content

Commit a816f5d

Browse files
authored
Merge branch 'master' into yuglify-200
2 parents ab85d93 + 4ad598b commit a816f5d

File tree

7 files changed

+28
-7
lines changed

7 files changed

+28
-7
lines changed

.travis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,30 @@ matrix:
4646
python: "3.5"
4747
- env: TOXENV=py36-django111
4848
python: "3.6"
49-
- env: TOXENV=py34-django-master
49+
- env: TOXENV=py34-django20
5050
python: "3.4"
51+
- env: TOXENV=py35-django20
52+
python: "3.5"
53+
- env: TOXENV=py36-django20
54+
python: "3.6"
55+
- env: TOXENV=py37-django20
56+
python: "3.7-dev"
5157
- env: TOXENV=py35-django-master
5258
python: "3.5"
5359
- env: TOXENV=py36-django-master
5460
python: "3.6"
61+
- env: TOXENV=py37-django-master
62+
python: "3.7-dev"
5563
- env: TOXENV=docs
5664
python: "2.7"
5765
allow_failures:
58-
- env: TOXENV=py34-django-master
66+
- env: TOXENV=py34-django20
67+
- env: TOXENV=py35-django20
68+
- env: TOXENV=py36-django20
69+
- env: TOXENV=py37-django20
5970
- env: TOXENV=py35-django-master
6071
- env: TOXENV=py36-django-master
72+
- env: TOXENV=py37-django-master
6173
before_install:
6274
- nvm install node
6375
- nvm use node

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Pipeline
1717
:alt: PYPI
1818
:target: https://badge.fury.io/py/django-pipeline
1919

20+
.. image:: https://readthedocs.org/projects/django-pipeline/badge/?version=latest
21+
:alt: Documentation Status
22+
:target: https://django-pipeline.readthedocs.io/en/latest/?badge=latest
23+
24+
2025
Pipeline is an asset packaging library for Django, providing both CSS and
2126
JavaScript concatenation and compression, built-in JavaScript template support,
2227
and optional data-URI image and font embedding.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"cssmin": "latest",
2222
"google-closure-compiler": "latest",
2323
"uglify-js": "latest",
24-
"yuglify": "latest",
24+
"yuglify": "1.0.x",
2525
"yuicompressor": "latest"
2626
}
2727
}

pipeline/compilers/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ def execute_command(self, command, cwd=None, stdout_captured=None):
148148
# Decide what to do with captured stdout.
149149
if stdout:
150150
if stdout_captured:
151-
shutil.move(stdout.name, os.path.join(cwd or os.curdir, stdout_captured))
151+
output_filename = os.path.join(cwd or os.curdir, stdout_captured)
152+
shutil.move(stdout.name, output_filename)
153+
os.chmod(output_filename, 420) # 644 in decimal
152154
else:
153155
os.remove(stdout.name)

pipeline/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from __future__ import unicode_literals
33

44
import os
5-
import collections
5+
from collections import MutableMapping
66
import shlex
77

88
from django.conf import settings as _settings
@@ -91,7 +91,7 @@
9191
}
9292

9393

94-
class PipelineSettings(collections.MutableMapping):
94+
class PipelineSettings(MutableMapping):
9595
"""
9696
Container object for pipeline settings
9797
"""

tests/assets/compressors/yuglify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(function(){window.concat=function(){console.log(arguments)},window.cat=function(){console.log("hello world")}}).call(this)
1+
(function(){!function(){window.concat=function(){console.log(arguments)}}(),function(){window.cat=function(){console.log("hello world")}}()}).call(this);

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ basepython =
1212
py34: python3.4
1313
py35: python3.5
1414
py36: python3.6
15+
py37: python3.7
1516
deps =
1617
py{27,py}: mock
1718
py{27,py}: futures
@@ -21,6 +22,7 @@ deps =
2122
django19: Django>=1.9,<1.10
2223
django110: Django>=1.10,<1.11
2324
django111: Django>=1.11,<1.12
25+
django20: Django>=2.0,<2.1
2426
django-master: https://github.com/django/django/archive/master.tar.gz
2527
jinja2
2628
coverage

0 commit comments

Comments
 (0)