2014-08-24 00:54:58 +02:00
|
|
|
COLORBOX_PATH=sigal/themes/colorbox/static/css
|
|
|
|
|
GALLERIA_PATH=sigal/themes/galleria/static/css
|
2015-07-25 14:27:26 +02:00
|
|
|
PHOTOSWIPE_PATH=sigal/themes/photoswipe/static
|
2014-08-24 00:54:58 +02:00
|
|
|
|
2015-07-25 14:27:26 +02:00
|
|
|
all: colorbox galleria photoswipe
|
2014-08-24 00:54:58 +02:00
|
|
|
|
2014-11-09 00:04:17 +01:00
|
|
|
init:
|
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
docs:
|
2014-09-04 22:46:34 +02:00
|
|
|
make -C docs html
|
2014-11-09 00:04:17 +01:00
|
|
|
|
2014-08-24 00:54:58 +02:00
|
|
|
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
|
|
|
|
|
|
2015-07-25 14:27:26 +02:00
|
|
|
photoswipe:
|
|
|
|
|
cat $(PHOTOSWIPE_PATH)/styles.css $(PHOTOSWIPE_PATH)/default-skin/default-skin.css $(PHOTOSWIPE_PATH)/photoswipe.css | cssmin > $(PHOTOSWIPE_PATH)/styles.min.css
|
|
|
|
|
|
2014-11-09 00:04:17 +01:00
|
|
|
test:
|
|
|
|
|
py.test
|
|
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
|
py.test --cov sigal --cov-report term --cov-report=html
|
|
|
|
|
|
2015-03-04 23:40:32 +01:00
|
|
|
publish: colorbox galleria
|
2014-11-09 00:04:17 +01:00
|
|
|
python setup.py register
|
2015-04-22 00:16:26 +02:00
|
|
|
python setup.py sdist bdist_wheel
|
|
|
|
|
twine upload dist/*
|
2014-11-09 00:04:17 +01:00
|
|
|
|
2014-09-04 22:46:34 +02:00
|
|
|
.PHONY: colorbox galleria docs
|