Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
0acce108
Commit
0acce108
authored
Apr 12, 2015
by
Daniel Tschan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update OpenShift configuration to take changes of commit
7ba24ecf
into account.
parent
b3f26bc2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
13 deletions
+10
-13
.openshift/action_hooks/pre_build_python
.openshift/action_hooks/pre_build_python
+2
-4
openshift/install.sh
openshift/install.sh
+5
-5
requirements-optional.txt
requirements-optional.txt
+1
-1
setup.py
setup.py
+2
-3
No files found.
.openshift/action_hooks/pre_build
→
.openshift/action_hooks/pre_build
_python
View file @
0acce108
...
...
@@ -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
...
...
openshift/install.sh
View file @
0acce108
...
...
@@ -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
...
...
requirements-optional.txt
View file @
0acce108
-r requirements.txt
#pyuca
https://github.com/SmileyChris/pyuca/archive/master.zip
git+https://github.com/SmileyChris/pyuca@555292b
pyLibravatar
pydns
babel
...
...
setup.py
View file @
0acce108
...
...
@@ -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'
],
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment