Skip to content

Commit 493cb39

Browse files
committed
Merge pull request #758 from zeehio/master
Upgrade to django-1.4
2 parents cbe6931 + be5a19f commit 493cb39

File tree

6,394 files changed

+8494
-1869016
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,394 files changed

+8494
-1869016
lines changed

.coveragerc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[run]
2+
source = metashare
3+
4+
[report]
5+
omit = metashare/repository/seltests/*,metashare/repository/tests/*,metashare/repository/test_fixtures/*
6+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ lighttpd.pid
2424
lighttpd/
2525
opt/
2626
._*
27+
venv

.travis.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# This file is used by travis-ci.org to test META-SHARE
2+
# env section
3+
# ============
4+
# This section sets environment variables. There are two kinds of environment
5+
# variables in travis: "global" and "matrix".
6+
#
7+
# matrix variables
8+
# -----------------
9+
# matrix variables can be used to tell travis we want different jobs to run
10+
# for instance to split the testsuite in two subgroups.
11+
# Here TEST_SUITE takes two different values, so in one case the selenium
12+
# tests run, and in the other case the rest of the tests run.
13+
#
14+
# global variables
15+
# -----------------
16+
# Common environment variables for all the jobs that will run.
17+
#
18+
# In order to securely use external services (such as coveralls or sauce labs)
19+
# with travis and github some secrets have to be shared. Travis provides
20+
# an option to encrypt environment variables in a way that only travis can
21+
# decrypt them and use them with the external services. By doing that, we can
22+
# safely store encrypted keys in this file and let travis decrypt and use them.
23+
#
24+
language: python
25+
env:
26+
global:
27+
######## SAUCE LABS #############
28+
# SAUCE_USERNAME and SAUCE_ACCESS_KEY
29+
# https://docs.saucelabs.com/ci-integrations/travis-ci/
30+
# You will need to create a saucelabs account, free for Free Software projects.
31+
# ### keys for zeehio/META-SHARE:
32+
- secure: IEtbjPMMqI9qiL9JzCoqkN4t700OOG6lM83a0M9PgIpuFviC7cmUv984Vpk55yuvnIvFp5N+BzIWFbw4frxV8Al+usVZs/WHdvwMKZfoolKY4uQAeibnQzivh5DJqRjz3A8nplH953SBosseVqXW6xQBKmexNdUmA7Iz6Tjag0A=
33+
- secure: gi7/2rLtpYgaj4tld5eB1dL9jrRXfGAxeOVtBMAura+qKKknNE0iY0lJc6OSwY7imTRQUyg2A4xWFD0lSEw6ZQ2JpZzbCFXYXD5wsm5PPNw5lCWSUKLd1E4in9wmmQ6/tjlqH7J3DWD16Pb2AyE9RVN2jWMGUif73qygSneDudU=
34+
#
35+
# ### keys for metashare/META-SHARE:
36+
# - secure: key_not_yet_created
37+
# - secure: key_not_yet_created
38+
#
39+
########### GIVE TRAVIS PUSH ACCESS ##########
40+
# So we can push the generated gh-pages
41+
# Generate your auth token here:
42+
# https://github.com/settings/applications#personal-access-tokens
43+
# Encrypt your token:
44+
# $ gem install travis;
45+
# $ travis login
46+
# $ travis encrypt -r zeehio/META-SHARE "GH_AUTH='my_secret_token'"
47+
# $ travis encrypt -r zeehio/META-SHARE "GH_REF=github.com/zeehio/META-SHARE.git"
48+
# The repository GH_REF is not secret, but if we encrypt it we can keep
49+
# the zeehio/META-SHARE and the metashare/META-SHARE and travis will choose the
50+
# right one on each case.
51+
#
52+
# ### keys for zeehio/META-SHARE:
53+
# GH_AUTH:
54+
- secure: "DmTgKEmMQatjTflWlDpX0PXJf/Gh8kiBqv09AkgjdO+5imCLJ0QcQbusZ2VeJPXVyvPQ/rywSCW1KJQrcZz/nJEX1kClWsV4z157oQAAroIsaAlHi77pPEQGg6EU6CXNHJp1U2v+sgeMx73KjYgHgVXPtOB7LqF6V0CWeQER+UA="
55+
# GH_REF:
56+
- secure: "k3+QkIQtF5chdMOBVWbuhVIVJ6KMWQ2FgyekBSbknAz7y8CmxtTuFw4Wgitja/3ESgbdsRY9z7/vMtMaxk5aNJWq8lZodMzhil0f0k+cKKbl+vMViBAomXKcCCCMpUACBObhJXuK5T4f0LhbqYdmXtOF5cubn5gDr33MV5Dk0+Q="
57+
# ### keys for metashare/META-SHARE:
58+
#- secure: "not generated"
59+
# GH_REF:
60+
#- secure: "not generated"
61+
matrix:
62+
# basic runs the metashare testsuite without selenium tests, followed
63+
# by the multitest that checks node syncing.
64+
# selenium runs the selenium tests only
65+
# docs builds the documentation and pushes it to gh-pages
66+
- TEST_SUITE="basic"
67+
- TEST_SUITE="selenium"
68+
- TEST_SUITE="docs"
69+
python:
70+
- "2.7"
71+
# commands to install dependencies
72+
install:
73+
- "pip install coveralls"
74+
- "./install-dependencies.sh"
75+
# command to run tests
76+
script:
77+
- "if [ \"x$TEST_SUITE\" = \"xbasic\" ]; then ./misc/test-ci/run-testsuite.sh; fi"
78+
- "if [ \"x$TEST_SUITE\" = \"xselenium\" ]; then ./misc/test-ci/run-testsuite.sh --selenium-only; fi"
79+
- "if [ \"x$TEST_SUITE\" = \"xdocs\" ] ; then ./misc/test-ci/autoupdate-docs.sh; fi"
80+
- "if [ \"x$TEST_SUITE\" = \"xbasic\" ] ; then ./misc/test-ci/multitest.sh; fi"
81+
after_success:
82+
- "if [ \"x$TEST_SUITE\" != \"xdocs\" ]; then coveralls; fi"
83+
84+
addons:
85+
sauce_connect: true
86+
apt:
87+
packages:
88+
- libpq-dev
89+
- python-sphinx
90+
91+
sudo: false
92+

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
META-SHARE SOFTWARE
22
===================
33

4+
[![Build Status](https://travis-ci.org/zeehio/META-SHARE.svg?branch=master)](https://travis-ci.org/zeehio/META-SHARE)
5+
[![Coverage Status](https://coveralls.io/repos/zeehio/META-SHARE/badge.svg?branch=master)](https://coveralls.io/r/zeehio/META-SHARE?branch=master)
6+
47
META-SHARE Software is the software powering META-SHARE.
58

69
META-SHARE is a sustainable network of repositories of language data, tools and

bin/.gitignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

install-dependencies.sh

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ echo "Checking python version..."
99
EXPECTED_PYTHON_VERSION="Python 2.7"
1010

1111
# Check which python version to use
12-
if [ -e $BASEDIR/opt/bin/python ] ; then
13-
PYTHON=$BASEDIR/opt/bin/python
12+
if [ -e "$BASEDIR/opt/bin/python" ] ; then
13+
PYTHON="$BASEDIR/opt/bin/python"
1414
echo "Using locally installed python version $PYTHON"
1515
else
1616
PYTHON=python
@@ -25,23 +25,47 @@ else
2525
if [ "$PYTHON" == "python" ] ; then
2626
echo "expected $EXPECTED_PYTHON_VERSION, but found $PYTHON_VERSION"
2727
echo "trying to install a local version in $BASEDIR/opt"
28-
29-
cd $BASEDIR/installable-packages
30-
tar xjf Python-2.7.2.tar.bz2
31-
cd Python-2.7.2
32-
./configure --prefix=$BASEDIR/opt
33-
make
34-
make install
28+
wget "https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz" || exit 1
29+
echo "Verifying python"
30+
echo "5eebcaa0030dc4061156d3429657fb83 Python-2.7.9.tgz" | md5sum -c - || exit 1
31+
tar xzf "Python-2.7.9.tgz" || exit 1
32+
cd "Python-2.7.9" || exit 1
33+
./configure --prefix="$BASEDIR/opt" || exit 1
34+
make || exit 1
35+
make install || exit 1
36+
cd ".."
37+
rm -rf "Python-2.7.9"
38+
PYTHON="$BASEDIR/opt/bin/python"
3539
else
3640
echo "expected $EXPECTED_PYTHON_VERSION, but found $PYTHON_VERSION in local install"
3741
echo "something is messed up, aborting."
3842
exit 1
3943
fi
4044
fi
4145

46+
echo "Create the virtual environment for package installation:"
47+
# Select current version of virtualenv:
48+
VENV_DIR="${BASEDIR}/venv"
49+
VENV_VERSION="12.0.7"
50+
URL_BASE="http://pypi.python.org/packages/source/v/virtualenv"
51+
52+
echo "Download virtualenv..."
53+
wget "$URL_BASE/virtualenv-${VENV_VERSION}.tar.gz" || exit 1
54+
echo "Verify virtualenv..."
55+
echo "e08796f79d112f3bfa6653cc10840114 virtualenv-12.0.7.tar.gz" | md5sum -c - || exit 1
56+
echo "Extracting virtualenv"
57+
tar xzf "virtualenv-${VENV_VERSION}.tar.gz" || exit 1
58+
echo "Create the virtual environment:"
59+
"$PYTHON" "virtualenv-${VENV_VERSION}/virtualenv.py" "${VENV_DIR}"
60+
# Don't need this anymore.
61+
rm -rf "virtualenv-${VENV_VERSION}" "virtualenv-${VENV_VERSION}.tar.gz"
62+
63+
echo "Python virtual environment created"
64+
65+
echo "Install metashare python dependencies"
66+
"${VENV_DIR}/bin/pip" install -r "${BASEDIR}/requirements.txt" || exit 1
67+
4268
echo
4369
echo
4470
echo "Installation of META-SHARE dependencies complete."
45-
if [ "$PYTHON" != "python" ] ; then
46-
echo "Python was installed locally -- make sure to include $BASEDIR/opt/bin at the beginning of your PATH!"
47-
fi
71+

installable-packages/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.
-11.2 MB
Binary file not shown.

lib/python2.7/site-packages/.gitignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/python2.7/site-packages/analytical/__init__.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

lib/python2.7/site-packages/analytical/models.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/python2.7/site-packages/analytical/templatetags/__init__.py

Whitespace-only changes.

lib/python2.7/site-packages/analytical/templatetags/analytical.py

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)