From cc8f2ad09b03a75ef639dc0719e70151a0e1f475 Mon Sep 17 00:00:00 2001 From: Yuanle Song Date: Tue, 6 Sep 2016 14:31:27 +0800 Subject: [PATCH] v0.11.0 add "make pipfreeze" this will run "pip freeze" command. --- project.clj | 2 +- src/leiningen/new/python/Makefile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/project.clj b/project.clj index 4612f46..4dd7c61 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject python/lein-template "0.10.1" +(defproject python/lein-template "0.11.0" :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 4bdc782..789ca8c 100644 --- a/src/leiningen/new/python/Makefile +++ b/src/leiningen/new/python/Makefile @@ -41,6 +41,8 @@ uninstall: bootstrap $(PIP) uninstall {{name}} # TODO not tested. deb: utils/build-deb +pipfreeze: + $(PIP) freeze wheel: bootstrap-dev @echo "building wheelhouse..." $(PIP) install wheel @@ -75,4 +77,4 @@ install-git-hooks-force: loc: find . -regex '.*\.pyw?$$' -exec wc -l {} \+ | tail -n 1 which cloc >/dev/null && cloc {{name}}/ -.PHONY: default build debug run uwsgi shell venv bootstrap bootstrap-dev install uninstall deb wheel check check-coding-style pylint-full test clean full-clean TAGS update-git-hooks install-git-hooks install-git-hooks-force loc +.PHONY: default build debug run uwsgi shell venv bootstrap bootstrap-dev install uninstall deb pipfreeze wheel check check-coding-style pylint-full test clean full-clean TAGS update-git-hooks install-git-hooks install-git-hooks-force loc -- GitLab