-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
49 lines (41 loc) · 1.23 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.PHONY: test
test: pep8
python runtests.py
.PHONY: travis
travis:
pip install -r requirements_test.txt --use-mirrors
export OPPS_TRAVIS=True
python setup.py develop
.PHONY: install
install:
pip install -r requirements_test.txt --use-mirrors
.PHONY: pep8
pep8:
@flake8 . --ignore=E501,F403,E126,E127,E128,E303 --exclude=migrations
.PHONY: sdist
sdist: test
@python setup.py sdist upload
.PHONY: clean
clean:
@find ./ -name '*.pyc' -exec rm -f {} \;
@find ./ -name 'Thumbs.db' -exec rm -f {} \;
@find ./ -name '*~' -exec rm -f {} \;
.PHONY: makemessages
makemessages:
echo "making messages";\
cd opps/infographics;\
django-admin.py makemessages -l en_US;\
cd ../../;\
.PHONY: compilemessages
compilemessages:
echo "compiling messages";\
cd opps/infographics;\
django-admin.py compilemessages;\
cd ../../;\
.PHONY: tx
tx:
mkdir -p opps/infographics/locale/en_US/LC_MESSAGES
touch opps/infographics/locale/en_US/LC_MESSAGES/django.po
tx set --auto-remote https://www.transifex.com/projects/p/opps/resource/infographics/
tx set --auto-local -r opps.infographics "opps/infographics/locale/<lang>/LC_MESSAGES/django.po" --source-language=en_US --source-file "opps/infographics/locale/en_US/LC_MESSAGES/django.po" --execute
tx pull -f