From 57a7c53f9f9ded269a94975a25b992319a49ac18 Mon Sep 17 00:00:00 2001 From: Yuanle Song Date: Thu, 8 Sep 2016 14:28:44 +0800 Subject: [PATCH] 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 --- operational | 5 +++++ project.clj | 2 +- src/leiningen/new/python/Makefile | 9 +++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/operational b/operational index 5c486de..2fd4e4f 100644 --- a/operational +++ b/operational @@ -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 diff --git a/project.clj b/project.clj index c099b23..c534eef 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(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" diff --git a/src/leiningen/new/python/Makefile b/src/leiningen/new/python/Makefile index 4391fed..4d3fb3e 100644 --- a/src/leiningen/new/python/Makefile +++ b/src/leiningen/new/python/Makefile @@ -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) -- GitLab