diff --git a/Makefile b/Makefile index aa0c8057..b5297328 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,11 @@ dev: dev-requirements.txt prod: requirements.txt pip install -r requirements.txt -run: prod - FLASK_DEBUG=1 FLASK_APP=snappass.main NO_SSL=True venv/bin/flask run +compile-translations: + pybabel compile -d snappass/translations + +run: prod compile-translations + FLASK_DEBUG=1 FLASK_APP=snappass.main NO_SSL=True venv/bin/flask run test: PYTHONPATH=snappass venv/bin/nosetests -s tests diff --git a/setup.py b/setup.py index 44679724..ed2af90c 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ long_description=(open('README.rst').read() + '\n\n' + open('AUTHORS.rst').read()), url='http://github.com/Pinterest/snappass/', - install_requires=['Flask', 'redis', 'cryptography'], + install_requires=['Flask', 'redis', 'cryptography', 'flask-babel'], license='MIT', author='Dave Dash', author_email='dd+github@davedash.com',