forked from saimn/sigal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (23 loc) · 873 Bytes
/
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
COLORBOX_PATH=sigal/themes/colorbox/static/css
GALLERIA_PATH=sigal/themes/galleria/static/css
PHOTOSWIPE_PATH=sigal/themes/photoswipe/static
all: colorbox galleria photoswipe
init:
pip install -r requirements.txt
docs:
make -C docs html
colorbox:
cat $(COLORBOX_PATH)/{base,skeleton,colorbox,style}.css | cssmin > $(COLORBOX_PATH)/style.min.css
galleria:
cat $(GALLERIA_PATH)/{normalize,style}.css | cssmin > $(GALLERIA_PATH)/style.min.css
photoswipe:
cat $(PHOTOSWIPE_PATH)/styles.css $(PHOTOSWIPE_PATH)/default-skin/default-skin.css $(PHOTOSWIPE_PATH)/photoswipe.css | cssmin > $(PHOTOSWIPE_PATH)/styles.min.css
test:
py.test
coverage:
py.test --cov sigal --cov-report term --cov-report=html
publish: colorbox galleria photoswipe
python setup.py register
python setup.py sdist bdist_wheel
twine upload dist/*
.PHONY: colorbox galleria photoswipe docs