代码拉取完成,页面将自动刷新
PYCODE = import flask.ext.statics as a; print a.__path__[0]
.PHONY: default isvirtualenv
default:
@echo "Local examples:"
@echo " make run # Starts a Flask development server locally."
@echo " make shell # Runs 'manage.py shell' locally with iPython."
@echo " make celery # Runs one development Celery worker with Beat."
@echo " make style # Check code styling with flake8."
@echo " make lint # Runs PyLint."
@echo " make test # Tests entire application with pytest."
isvirtualenv:
@if [ -z "$(VIRTUAL_ENV)" ]; then echo "ERROR: Not in a virtualenv." 1>&2; exit 1; fi
run:
(((i=0; while \[ $$i -lt 40 \]; do sleep 0.5; i=$$((i+1)); \
netstat -anp tcp |grep "\.5000.*LISTEN" &>/dev/null && break; done) && open http://localhost:5000/) &)
./manage.py devserver
shell:
./manage.py shell
celery:
./manage.py celerydev
style:
flake8 --max-line-length=120 --statistics pypi_portal
lint:
pylint --max-line-length=120 pypi_portal
test:
py.test --cov-report term-missing --cov pypi_portal tests
testpdb:
py.test --pdb tests
testcovweb:
py.test --cov-report html --cov pypi_portal tests
open htmlcov/index.html
pipinstall: isvirtualenv
# For development environments. Symlinks are for PyCharm inspections to work with Flask-Statics-Helper.
pip install -r requirements.txt flake8 pylint ipython pytest-cov
[ -h pypi_portal/templates/flask_statics_helper ] || ln -s `python -c "$(PYCODE)"`/templates/flask_statics_helper \
pypi_portal/templates/flask_statics_helper
[ -h pypi_portal/static/flask_statics_helper ] || ln -s `python -c "$(PYCODE)"`/static \
pypi_portal/static/flask_statics_helper
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。