示例#1
0
def app(tmpdir_factory):
    pkgs = tmpdir_factory.mktemp("packages")
    app = create_app(testing=True)
    app.config['STORAGE'] = 'LocalStorage'
    app.config['STORAGE_PARAMS'] = {'packages_root': str(pkgs)}
    return app
示例#2
0
import os

from extrapypi.app import create_app

app = create_app(config=os.environ.get('EXTRAPYPI_CONFIG'))
示例#3
0
def create_pypi(info):
    return create_app(config=os.environ.get('EXTRAPYPI_CONFIG', None))
示例#4
0
文件: wsgi.py 项目: unigrup/extrapypi
from extrapypi.app import create_app

app = create_app()