Commit 57a7c53f authored by Yuanle Song's avatar Yuanle Song
Browse files

v0.16.1 bugfix: add dependency for sanity-check

- add makefile dependency for sanity-check
- let bootstrap-dev auto create log dir on dev machine
parent de6fdd2f
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -39,6 +39,11 @@ see example ~/.pylintrc
** 2014-05-09 add sphinx support
* later								      :entry:
* done								      :entry:
** 2016-09-08 when bootstrap, create /var/log/{{name}} dir using sudo and chown to current user.
this makes it easier when developing.

- just add it in bootstrap-dev.

** DONE 2016-09-08 integrate sanity-check
- update yygame-utils pkg version
- in Makefile
+1 −1
Original line number Diff line number Diff line
(defproject python/lein-template "0.16.0"
(defproject python/lein-template "0.16.1"
  :description "lein template for a python project"
  :repositories [["snapshots"
                  {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots"
+7 −2
Original line number Diff line number Diff line
@@ -32,9 +32,14 @@ requirements:
	else \
		$(PIP) install -q --find-links=wheelhouse $(REQUIREMENTS); \
	fi
logdir:
	@if [ ! -d /var/log/{{name}} ]; then \
		sudo mkdir /var/log/{{name}}; \
		sudo chown -R ${USER} /var/log/{{name}}; \
	fi
bootstrap: venv requirements
bootstrap-dev: REQUIREMENTS += -r requirements-dev.txt
bootstrap-dev: venv requirements
bootstrap-dev: venv requirements logdir
install: bootstrap
	$(PYTHON) setup.py -q install
uninstall: bootstrap
@@ -49,7 +54,7 @@ wheel: bootstrap-dev
	$(PIP) wheel -w wheelhouse -f https://emacsos.com/python/packages/ $(REQUIREMENTS)

check: just-test
sanity-check:
sanity-check: bootstrap
	$(PYTHON) {{name}}/sanity_check.py
check-coding-style: bootstrap-dev
	$(PEP8) $(PYTHON_MODULES)