-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- drop py2 support - update py pkgs - refactor code for cheroot integration - update docs - update yaml settings example - update virtualenv setup - fix tests
- Loading branch information
Showing
13 changed files
with
61 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ data | |
local_settings.py | ||
sherlock-meta.cfg | ||
local_settings.yml | ||
.vscode/settings.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
flask>=0.10,<=0.11.1 | ||
whoosh<2.7.0 | ||
jinja2==2.8 | ||
pygments<=2.1.3 | ||
cherrypy>5.0.0,<=8.1.2 | ||
flask-peewee<=0.6.7 | ||
peewee<=2.8.5 | ||
flask==1.1.1 | ||
whoosh==2.7.4 | ||
jinja2==2.11.1 | ||
pygments==2.5.2 | ||
cheroot==8.3.0 | ||
flask-peewee==3.0.3 | ||
peewee==3.13.1 | ||
path.py | ||
pyyaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,40 @@ | ||
# global | ||
# Created by: Christopher Bess | ||
# It is recomm. not to run this script using sudo, it is used as needed. | ||
# It is NOT recommended to run this script using sudo, it is used as needed. | ||
# | ||
# user$: sh virtualenv-setup.sh | ||
|
||
echo "Setting up virtualenv and pip - installing with sudo" | ||
sudo easy_install pip | ||
sudo pip install virtualenv | ||
if ! [ -x "$(command -v python3)" ]; then | ||
echo "Python 3+ required." | ||
exit 1 | ||
fi | ||
|
||
PROJROOT=$(cd $(dirname $0) && cd .. && pwd) | ||
if ! [ -x "$(command -v pip)" ]; then | ||
echo "Setting up pip - installing with sudo" | ||
|
||
sudo easy_install pip | ||
fi | ||
|
||
PROJ_ROOT=$(cd $(dirname $0) && cd .. && pwd) | ||
|
||
# adjust permission (allow it to be executed) | ||
chmod +x ${PROJROOT}/main.py | ||
chmod +x ${PROJ_ROOT}/main.py | ||
|
||
# if on a Mac exec below line (maybe) | ||
# ARCHFLAGS="-arch i386 -arch x86_64" | ||
|
||
VENV_ROOT=${PROJ_ROOT}/sherlock_env | ||
|
||
# setup sherlock environment | ||
mkdir -p ${PROJROOT}/data/indexes | ||
virtualenv ${PROJROOT}/sherlock_env --distribute --no-site-packages | ||
mkdir -p ${PROJ_ROOT}/data/indexes | ||
python3 -m venv ${VENV_ROOT} | ||
|
||
echo "Installing sherlock dependencies" | ||
${PROJROOT}/sherlock_env/bin/pip install -r ${PROJROOT}/setup/requirements.txt | ||
${VENV_ROOT}/bin/pip install --upgrade pip | ||
${VENV_ROOT}/bin/pip install -r ${PROJ_ROOT}/setup/requirements.txt | ||
|
||
# confirm installation by showing version information | ||
# echo "Sherlock version information" | ||
${PROJROOT}/sherlock_env/bin/python ${PROJROOT}/main.py -v | ||
${VENV_ROOT}/bin/python ${PROJ_ROOT}/main.py -v | ||
|
||
echo "Sherlock install finished" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters