Hotfix: Move language/country json to app dir

Pip installs of whoogle search were missing access to the misc/ folder,
which previously contained the language and country json files. These
have been moved to app/misc, and the previous root level misc/ was
renamed to config/ (since it now only contains the tor config files).

Bump to 0.3.1.
main
Ben Busby 2021-02-07 18:55:27 -05:00
parent 329c38efb0
commit 0a6575d219
No known key found for this signature in database
GPG Key ID: 3B08611DF6E62ED2
9 changed files with 9 additions and 7 deletions

View File

@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y \
libffi-dev \
tor
COPY misc/tor/torrc /etc/tor/torrc
COPY config/tor/torrc /etc/tor/torrc
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
@ -50,4 +50,4 @@ COPY . .
EXPOSE $EXPOSE_PORT
CMD misc/tor/start-tor.sh & ./run
CMD config/tor/start-tor.sh & ./run

View File

@ -1,4 +1,5 @@
graft app/static
graft app/templates
graft app/misc
include requirements.txt
global-exclude *.pyc

View File

@ -14,14 +14,14 @@ app.default_key_set = generate_user_keys()
app.no_cookie_ips = []
app.config['SECRET_KEY'] = os.urandom(32)
app.config['SESSION_TYPE'] = 'filesystem'
app.config['VERSION_NUMBER'] = '0.3.0'
app.config['VERSION_NUMBER'] = '0.3.1'
app.config['APP_ROOT'] = os.getenv(
'APP_ROOT',
os.path.dirname(os.path.abspath(__file__)))
app.config['LANGUAGES'] = json.load(open(
os.path.join(app.config['APP_ROOT'], '../misc/languages.json')))
os.path.join(app.config['APP_ROOT'], 'misc/languages.json')))
app.config['COUNTRIES'] = json.load(open(
os.path.join(app.config['APP_ROOT'], '../misc/countries.json')))
os.path.join(app.config['APP_ROOT'], 'misc/countries.json')))
app.config['STATIC_FOLDER'] = os.getenv(
'STATIC_FOLDER',
os.path.join(app.config['APP_ROOT'], 'static'))

View File

@ -8,10 +8,10 @@ setuptools.setup(
author='Ben Busby',
author_email='benbusby@protonmail.com',
name='whoogle-search',
version='0.3.0',
version='0.3.1',
include_package_data=True,
install_requires=requirements,
description='Self-hosted, ad-free, privacy-respecting Google metasearch engine',
description='Self-hosted, ad-free, privacy-respecting metasearch engine',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/benbusby/whoogle-search',

1
test/misc Symbolic link
View File

@ -0,0 +1 @@
../app/misc/