Permalink
Browse files

Look for requirements.txt not REQUIREMENTS, to confirm with community…

… standards
  • Loading branch information...
1 parent 2ff68fd commit 2cb8aa4378e4a83a60242f7c41122ca914a696bd @jokull committed May 11, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 kraftwerk/project.py
  2. +2 −2 kraftwerk/templates/scripts/project_setup.sh
View
@@ -161,9 +161,9 @@ def clean(self):
except ValueError:
raise ConfigError, "`workers` value must be a number"
try:
- file(os.path.join(self.src_path, 'REQUIREMENTS'))
+ file(os.path.join(self.src_path, 'requirements.txt'))
except IOError:
- raise ConfigError, "REQUIREMENTS file not found - must be under source directory"
+ raise ConfigError, "requirements.txt file not found - must be under source directory"
self.config['module'], \
self.config['callable'] = self.get_split_app_path()
return True
@@ -4,7 +4,7 @@ SITE_SERVICE="/var/service/$PROJECT"
PYTHON_VERSION=$(python -c 'import sys; print ".".join(map(str, sys.version_info)[:2])')
VIRTUALENV_SITEPACKAGES="$ROOT/lib/python$PYTHON_VERSION/site-packages"
-REQUIREMENTS="$ROOT/{{ project.src() }}/REQUIREMENTS"
+requirements.txt="$ROOT/{{ project.src() }}/requirements.txt"
{% if new -%}
@@ -31,7 +31,7 @@ ln -s $SITE_SERVICE /etc/service/$PROJECT
{%- endif %}
-su - web -c "$ROOT/bin/pip install{% if upgrade_packages %} -U{% endif %} -r $REQUIREMENTS"
+su - web -c "$ROOT/bin/pip install{% if upgrade_packages %} -U{% endif %} -r $requirements.txt"
sv restart /etc/service/$PROJECT
/etc/init.d/nginx reload

0 comments on commit 2cb8aa4

Please sign in to comment.