Commit 99ece486 authored by Yuanle Song's avatar Yuanle Song
Browse files

v0.17.0 add "make test-prod"

bugfix: updated yygame-utils version to 0.17.1, makes it work on some early
2.7.x version.
parent 8a1bb677
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
(defproject python/lein-template "0.16.3"
(defproject python/lein-template "0.17.0"
  :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
@@ -11,6 +11,7 @@ DEFAULT_PYTHON := $(shell ./utils/choose_default_python.py)
VIRTUALENV := ./utils/virtualenv-15.0.2/virtualenv.py

REQUIREMENTS := -r requirements.txt
DEV_REQUIREMENTS := -r requirements-dev.txt

default: check-coding-style
build:
@@ -38,7 +39,7 @@ logdir:
		sudo chown -R ${USER} /var/log/{{name}}; \
	fi
bootstrap: venv requirements
bootstrap-dev: REQUIREMENTS += -r requirements-dev.txt
bootstrap-dev: REQUIREMENTS += $(DEV_REQUIREMENTS)
bootstrap-dev: venv requirements logdir
install: bootstrap
	$(PYTHON) setup.py -q install
@@ -67,6 +68,10 @@ test: check-coding-style
just-test:
	$(PYTEST) $(PYTHON_MODULES)

install-dev-no-wheel:
	$(PIP) install -q -i https://pypi.tuna.tsinghua.edu.cn/simple -f https://emacsos.com/python/packages/ $(DEV_REQUIREMENTS)
test-prod: install-dev-no-wheel test

clean:
	find . -name "__pycache__" -type d -exec rm -rf {} \; || true
	find . -name "*.pyc" -type f -exec rm -rf {} \; || true
@@ -84,4 +89,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 pipfreeze 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 just-test test-prod clean full-clean TAGS update-git-hooks install-git-hooks install-git-hooks-force loc
+1 −1
Original line number Diff line number Diff line
yygame-utils==0.16.0
yygame-utils==0.17.1
# raven==3.6.1
+2 −1
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ if [ ! -d wheelhouse ]; then
	make wheel
fi

# add dependencies on libpq5 if you use psycopg2.
fpm -t deb -s dir -n "$PKG_NAME" -v "$VERSION" --prefix "$DEST_DIR" -f \
    --depends make \
    -x '*__pycache__' \
@@ -31,5 +32,5 @@ fpm -t deb -s dir -n "$PKG_NAME" -v "$VERSION" --prefix "$DEST_DIR" -f \
    --before-install deb-scripts/before-install.sh \
    --after-install deb-scripts/after-install.sh \
    --before-remove deb-scripts/before-remove.sh \
    Makefile README.rst setup.py utils requirements.txt wheelhouse conf \
    Makefile README.rst setup.py utils requirements*.txt wheelhouse conf \
    $PYTHON_MODULES