Loading README.md +15 −0 Original line number Diff line number Diff line Loading @@ -2,12 +2,27 @@ A Leiningen template for standard python project. Features: * auto bootstrap virtualenv, only python is needed * auto generated setup.py file * auto create deb package for distribution * create offline wheelhouse for fast production release * auto create git repo * allow you to install git hooks easily ## Usage To create a new python project, run lein new python foo Dependencies for the generated python project: make - used as a build tool. fpm - used to create deb package. ## License Copyright © 2014 Yuanle Song <sylecn@gmail.com> Loading project.clj +1 −1 Original line number Diff line number Diff line (defproject python/lein-template "0.3.1" (defproject python/lein-template "0.3.2" :description "lein template for a python project" :url "http://emacsos.com/lein/python" :license {:name "Eclipse Public License" Loading src/leiningen/new/python/Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ wheel: bootstrap-dev bin/pip install --use-wheel wheel bin/pip wheel -f http://apt.yygamedev.com/python/ -r requirements.txt check: test pylint: bootstrap pylint: bootstrap-dev $(PEP8) $(PYTHON_MODULES) $(PYLINT) -E $(PYTHON_MODULES) pylint-full: pylint Loading src/leiningen/new/python/deb-scripts/after-install.sh +3 −1 Original line number Diff line number Diff line Loading @@ -10,6 +10,8 @@ if [ "$RUN_AS_USER" != root ]; then chown -R "$RUN_AS_USER":"$RUN_AS_USER" "$LOGDIR" fi make -C "$PREFIX" bootstrap install cd "$PREFIX" make bootstrap install # install crontab, upstart job, nginx site file, logrotate config etc # start {{name}} || true Loading
README.md +15 −0 Original line number Diff line number Diff line Loading @@ -2,12 +2,27 @@ A Leiningen template for standard python project. Features: * auto bootstrap virtualenv, only python is needed * auto generated setup.py file * auto create deb package for distribution * create offline wheelhouse for fast production release * auto create git repo * allow you to install git hooks easily ## Usage To create a new python project, run lein new python foo Dependencies for the generated python project: make - used as a build tool. fpm - used to create deb package. ## License Copyright © 2014 Yuanle Song <sylecn@gmail.com> Loading
project.clj +1 −1 Original line number Diff line number Diff line (defproject python/lein-template "0.3.1" (defproject python/lein-template "0.3.2" :description "lein template for a python project" :url "http://emacsos.com/lein/python" :license {:name "Eclipse Public License" Loading
src/leiningen/new/python/Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ wheel: bootstrap-dev bin/pip install --use-wheel wheel bin/pip wheel -f http://apt.yygamedev.com/python/ -r requirements.txt check: test pylint: bootstrap pylint: bootstrap-dev $(PEP8) $(PYTHON_MODULES) $(PYLINT) -E $(PYTHON_MODULES) pylint-full: pylint Loading
src/leiningen/new/python/deb-scripts/after-install.sh +3 −1 Original line number Diff line number Diff line Loading @@ -10,6 +10,8 @@ if [ "$RUN_AS_USER" != root ]; then chown -R "$RUN_AS_USER":"$RUN_AS_USER" "$LOGDIR" fi make -C "$PREFIX" bootstrap install cd "$PREFIX" make bootstrap install # install crontab, upstart job, nginx site file, logrotate config etc # start {{name}} || true