Skip to content

Commit 4c41997

Browse files
committed
Separate requirement files
1 parent eb27c60 commit 4c41997

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ matrix:
1414
- python: 3.3
1515
env: DJANGO='django>=1.4,<1.5'
1616
install:
17-
- pip install $DJANGO pep8 --use-mirrors
18-
- pip install python-coveralls --use-mirrors
17+
- pip install $DJANGO --use-mirrors
18+
- pip install -r requirements/travis.pip --use-mirrors
1919
script:
2020
- make coverage pep8
2121
after_success:

CONTRIBUTING.rst

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ A Makefile is provided to simplify the common tasks:
5050
make pep8 Run the PEP8 report
5151
make pylint Run the pylint report
5252
make doc Generate the documentation
53+
make minify Minify all JS files with yuglify
5354
make dist Generate a distributable package
5455
make minify Minify Django.js with yuglify
5556
make clean Remove all temporary and generated artifacts
@@ -70,14 +71,7 @@ and ensure the documentation is generating.
7071
You can run the javascript test suite in the browser (http://localhost:8000).
7172
Javascript tests are run in the test suite too, but it runs on the minified version of the javascript libary.
7273

73-
You can either minify it manually by running the provided script
74-
75-
.. code-block:: console
76-
77-
$ ./minify.sh
78-
$ python manage.py test djangojs
79-
80-
or use the Makefile ``minify`` task that minify the javascript:
74+
You can use the Makefile ``minify`` task that minify the javascript:
8175

8276
.. code-block:: console
8377

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ help:
1414
@echo ' make pep8 Run the PEP8 report '
1515
@echo ' make pylint Run the pylint report '
1616
@echo ' make doc Generate the documentation '
17+
@echo ' make minify Minify all JS files with yuglify '
1718
@echo ' make dist Generate a distributable package '
1819
@echo ' make minify Minify Django.js with yuglify '
1920
@echo ' make clean Remove all temporary and generated artifacts'
@@ -53,7 +54,8 @@ dist:
5354
@echo 'Done'
5455

5556
minify:
56-
@./minify.sh
57+
@echo 'Minifying javascript'
58+
@yuglify djangojs/static/js/djangojs/django.js
5759

5860
clean:
5961
rm -fr $(DISTDIR)

requirements/develop.pip

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
-r install.pip
2-
pep8
3-
pylint
4-
coverage
2+
-r test.pip
3+
-r reporting.pip

requirements/reporting.pip

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pep8
2+
pylint
3+
coverage

requirements/test.pip

Whitespace-only changes.

requirements/travis.pip

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-r test.pip
2+
-r reporting.pip
3+
python-coveralls

0 commit comments

Comments
 (0)