Commit 0acce108 authored by Daniel Tschan's avatar Daniel Tschan

Update OpenShift configuration to take changes of commit 7ba24ecf into account.

parent b3f26bc2
......@@ -19,14 +19,12 @@
#
# Don't let OpenShift install weblate and its dependencies directly as this leads to timeouts during gear creation and deploys
export OPENSHIFT_PYTHON_REQUIREMENTS_PATH=no_such_file
if [ -e $OPENSHIFT_REPO_DIR/setup.py ]; then
mv $OPENSHIFT_REPO_DIR/setup.py $OPENSHIFT_REPO_DIR/setup_weblate.py
fi
if [ -e $OPENSHIFT_REPO_DIR/requirements.txt ]; then
mv $OPENSHIFT_REPO_DIR/requirements.txt $OPENSHIFT_REPO_DIR/requirements-mandatory.txt
fi
# Show install/update page, will be replaced with app by install.sh
# Link sources below $OPENSHIFT_REPO_DIR must be relative or they will be invalid after restore/clone operations
mkdir -p $OPENSHIFT_REPO_DIR/wsgi
......
......@@ -51,20 +51,20 @@ source $OPENSHIFT_HOMEDIR/python/virtenv/bin/activate
cd ${OPENSHIFT_REPO_DIR}
sh "python ${OPENSHIFT_REPO_DIR}/setup_weblate.py develop"
# Pin Django version to 1.7 to avoid surprises when 1.8 comes out.
sed -e 's/Django[<>=]\+.*/Django>1.7,<1.8/' $OPENSHIFT_REPO_DIR/requirements-mandatory.txt >/tmp/requirements.txt
sed -e 's/Django[<>=]\+.*/Django>1.7,<1.8/' $OPENSHIFT_REPO_DIR/requirements.txt >/tmp/requirements.txt
sh "pip install -r /tmp/requirements.txt"
sh "pip install -U -r /tmp/requirements.txt"
# Install optional dependencies without failing if some can't be installed.
while read line; do
if [[ $line != -r* ]]; then
if [[ $line != -r* ]] && [[ $line != \#* ]]; then
sh "pip install $line" || true
fi
done < $OPENSHIFT_REPO_DIR/requirements-optional.txt
sh "python ${OPENSHIFT_REPO_DIR}/setup_weblate.py develop"
if [ ! -s $OPENSHIFT_DATA_DIR/weblate.db ]; then
rm -f ${OPENSHIFT_DATA_DIR}/.credentials
fi
......
-r requirements.txt
#pyuca
https://github.com/SmileyChris/pyuca/archive/master.zip
git+https://github.com/SmileyChris/pyuca@555292b
pyLibravatar
pydns
babel
......
......@@ -94,12 +94,11 @@ setup(
download_url='https://github.com/nijel/weblate',
author='Michal Čihař',
author_email='michal@cihar.com',
dependency_links = ['git+https://github.com/SmileyChris/pyuca@555292b#egg=pyuca-1.0'],
install_requires=REQUIRES,
extras_require={
'Mercurial': ['Mercurial>=2.8'],
'Unicode': [
'https://github.com/SmileyChris/pyuca/archive/master.zip'
],
'Unicode': ['pyuca==1.0'],
'Avatars': ['pyLibravatar', 'pydns'],
'Android': ['babel'],
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment