Skip to content

Commit e747dce

Browse files
committed
Merge branch 'release/1.4'
2 parents 772ecd1 + 804c302 commit e747dce

File tree

88 files changed

+2561
-778
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+2561
-778
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ build
22
compressor/tests/static/CACHE
33
compressor/tests/static/custom
44
compressor/tests/static/js/066cd253eada.js
5+
compressor/tests/static/test.txt*
6+
57
dist
68
MANIFEST
79
*.pyc
@@ -10,3 +12,4 @@ MANIFEST
1012
docs/_build/
1113
.sass-cache
1214
.coverage
15+
.tox

.travis.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
language: python
2-
python:
3-
- "2.6"
4-
- "2.7"
52
before_install:
6-
- export PIP_USE_MIRRORS=true
7-
- export PIP_INDEX_URL=https://simple.crate.io/
83
- sudo apt-get update
94
- sudo apt-get install csstidy libxml2-dev libxslt-dev
105
install:
11-
- pip install -e .
12-
- pip install -r requirements/tests.txt Django==$DJANGO
6+
- pip install tox coveralls
137
script:
14-
- make test
8+
- tox
159
env:
16-
- DJANGO=1.3.7
17-
- DJANGO=1.4.5
18-
- DJANGO=1.5
19-
branches:
20-
only:
21-
- develop
10+
- TOXENV=py33-1.6.X
11+
- TOXENV=py32-1.6.X
12+
- TOXENV=py27-1.6.X
13+
- TOXENV=py26-1.6.X
14+
- TOXENV=py33-1.5.X
15+
- TOXENV=py32-1.5.X
16+
- TOXENV=py27-1.5.X
17+
- TOXENV=py26-1.5.X
18+
- TOXENV=py27-1.4.X
19+
- TOXENV=py26-1.4.X
2220
notifications:
2321
irc: "irc.freenode.org#django-compressor"
22+
after_success: coveralls

AUTHORS

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ Jonathan Lukens
5555
Julian Scheid
5656
Julien Phalip
5757
Justin Lilly
58+
Lucas Tan
5859
Luis Nell
5960
Lukas Lehner
60-
Lukasz Balcerzak
61+
Łukasz Balcerzak
62+
Łukasz Langa
6163
Maciek Szczesniak
6264
Maor Ben-Dayan
6365
Mark Lavin
@@ -89,4 +91,4 @@ Ulrich Petri
8991
Ulysses V
9092
Vladislav Poluhin
9193
wesleyb
92-
Wilson Júnior
94+
Wilson Júnior

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
django_compressor
22
-----------------
3-
Copyright (c) 2009-2013 Django Compressor authors (see AUTHORS file)
3+
Copyright (c) 2009-2014 Django Compressor authors (see AUTHORS file)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
include AUTHORS
22
include README.rst
33
include LICENSE
4+
include Makefile
5+
include tox.ini
46
recursive-include docs *
7+
recursive-include requirements *
58
recursive-include compressor/templates/compressor *.html
69
recursive-include compressor/tests/media *.js *.css *.png *.coffee
710
recursive-include compressor/tests/test_templates *.html

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
testenv:
2+
pip install -e .
3+
pip install -r requirements/tests.txt
4+
pip install Django
5+
16
test:
2-
flake8 compressor --ignore=E501,E128
7+
flake8 compressor --ignore=E501,E128,E701,E261,E301,E126,E127,E131
38
coverage run --branch --source=compressor `which django-admin.py` test --settings=compressor.test_settings compressor
49
coverage report --omit=compressor/test*,compressor/filters/jsmin/rjsmin*,compressor/filters/cssmin/cssmin*,compressor/utils/stringformat*
10+
11+
.PHONY: test

README.rst

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
Django Compressor
22
=================
33

4-
.. image:: https://secure.travis-ci.org/jezdez/django_compressor.png?branch=develop
4+
.. image:: https://coveralls.io/repos/django-compressor/django-compressor/badge.png?branch=develop
5+
:target: https://coveralls.io/r/django-compressor/django-compressor?branch=develop
6+
7+
.. image:: https://pypip.in/v/django_compressor/badge.png
8+
:target: https://pypi.python.org/pypi/django_compressor
9+
10+
.. image:: https://pypip.in/d/django_compressor/badge.png
11+
:target: https://pypi.python.org/pypi/django_compressor
12+
13+
.. image:: https://secure.travis-ci.org/django-compressor/django-compressor.png?branch=develop
514
:alt: Build Status
6-
:target: http://travis-ci.org/jezdez/django_compressor
15+
:target: http://travis-ci.org/django-compressor/django-compressor
716

817
Django Compressor combines and compresses linked and inline Javascript
9-
or CSS in a Django templates into cacheable static files by using the
18+
or CSS in a Django template into cacheable static files by using the
1019
``compress`` template tag.
1120

1221
HTML in between ``{% compress js/css %}`` and ``{% endcompress %}`` is
@@ -19,10 +28,10 @@ compresses it using ``jsmin``.
1928

2029
As the final result the template tag outputs a ``<script>`` or ``<link>``
2130
tag pointing to the optimized file. These files are stored inside a folder
22-
and given an unique name based on their content. Alternatively it can also
31+
and given a unique name based on their content. Alternatively it can also
2332
return the resulting content to the original template directly.
2433

25-
Since the file name is dependend on the content these files can be given
34+
Since the file name is dependent on the content these files can be given
2635
a far future expiration date without worrying about stale browser caches.
2736

2837
The concatenation and compressing process can also be jump started outside
@@ -39,9 +48,10 @@ html5lib_ based parser, as well as an abstract base class that makes it easy to
3948
write a custom parser.
4049

4150
Django Compressor also comes with built-in support for `CSS Tidy`_,
42-
`YUI CSS and JS`_ compressor, the Google's `Closure Compiler`_, a Python
43-
port of Douglas Crockford's JSmin_, a Python port of the YUI CSS Compressor
44-
cssmin_ and a filter to convert (some) images into `data URIs`_.
51+
`YUI CSS and JS`_ compressor, `yUglify CSS and JS`_ compressor, the Google's
52+
`Closure Compiler`_, a Python port of Douglas Crockford's JSmin_, a Python port
53+
of the YUI CSS Compressor cssmin_ and a filter to convert (some) images into
54+
`data URIs`_.
4555

4656
If your setup requires a different compressor or other post-processing
4757
tool it will be fairly easy to implement a custom filter. Simply extend
@@ -51,21 +61,21 @@ More documentation about the usage and settings of Django Compressor can be
5161
found on `django-compressor.readthedocs.org`_.
5262

5363
The source code for Django Compressor can be found and contributed to on
54-
`github.com/jezdez/django_compressor`_. There you can also file tickets.
64+
`github.com/django-compressor/django-compressor`_. There you can also file tickets.
5565

56-
The `in-development version`_ of Django Compressor can be installed with
57-
``pip install django_compressor==dev`` or ``easy_install django_compressor==dev``.
66+
The in-development version of Django Compressor can be installed with
67+
``pip install http://github.com/django-compressor/django-compressor/tarball/develop``.
5868

5969
.. _BeautifulSoup: http://www.crummy.com/software/BeautifulSoup/
6070
.. _lxml: http://lxml.de/
6171
.. _html5lib: http://code.google.com/p/html5lib/
6272
.. _CSS Tidy: http://csstidy.sourceforge.net/
6373
.. _YUI CSS and JS: http://developer.yahoo.com/yui/compressor/
74+
.. _yUglify CSS and JS: https://github.com/yui/yuglify
6475
.. _Closure Compiler: http://code.google.com/closure/compiler/
6576
.. _JSMin: http://www.crockford.com/javascript/jsmin.html
6677
.. _cssmin: https://github.com/zacharyvoase/cssmin
6778
.. _data URIs: http://en.wikipedia.org/wiki/Data_URI_scheme
6879
.. _django-compressor.readthedocs.org: http://django-compressor.readthedocs.org/en/latest/
69-
.. _github.com/jezdez/django_compressor: https://github.com/jezdez/django_compressor
70-
.. _in-development version: http://github.com/jezdez/django_compressor/tarball/develop#egg=django_compressor-dev
80+
.. _github.com/django-compressor/django-compressor: https://github.com/django-compressor/django-compressor
7181

compressor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# following PEP 386
2-
__version__ = "1.3"
2+
__version__ = "1.4a1"

0 commit comments

Comments
 (0)