Update from Github upstream repository
This commit is contained in:
parent
2d44e31276
commit
62038007e4
16 changed files with 775 additions and 54 deletions
2
test/pin-pipenv-version-test-app/.s2i/environment
Normal file
2
test/pin-pipenv-version-test-app/.s2i/environment
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ENABLE_PIPENV=1
|
||||
PIN_PIPENV_VERSION=2018.11.26
|
||||
22
test/pin-pipenv-version-test-app/app.sh
Executable file
22
test/pin-pipenv-version-test-app/app.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Testing PIN_PIPENV_VERSION (set in .s2i/environment) ..."
|
||||
pipenv_version=`pipenv --version`
|
||||
expected="pipenv, version 2018.11.26"
|
||||
if [ "$pipenv_version" != "$expected" ]; then
|
||||
echo "ERROR: pipenv version is different than expected."
|
||||
echo "Expected: ${expected}"
|
||||
echo "Actual: ${pipenv_version}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Test the uwsgi server
|
||||
exec uwsgi \
|
||||
--http-socket :8080 \
|
||||
--die-on-term \
|
||||
--master \
|
||||
--single-interpreter \
|
||||
--enable-threads \
|
||||
--threads=5 \
|
||||
--thunder-lock \
|
||||
--module wsgi
|
||||
2
test/pin-pipenv-version-test-app/requirements.txt
Normal file
2
test/pin-pipenv-version-test-app/requirements.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
uWSGI
|
||||
Flask
|
||||
9
test/pin-pipenv-version-test-app/wsgi.py
Normal file
9
test/pin-pipenv-version-test-app/wsgi.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from flask import Flask
|
||||
application = Flask(__name__)
|
||||
|
||||
@application.route('/')
|
||||
def hello():
|
||||
return b'Hello World from uWSGI hosted WSGI application!'
|
||||
|
||||
if __name__ == '__main__':
|
||||
application.run()
|
||||
Loading…
Add table
Add a link
Reference in a new issue