Browse Source

small naming fix

main
Colin Sullivan 8 years ago
parent
commit
a3785c9180
  1. 4
      {{ cookiecutter.repo_name }}/Makefile
  2. 5
      {{ cookiecutter.repo_name }}/test_environment.py

4
{{ cookiecutter.repo_name }}/Makefile

@ -37,9 +37,9 @@ sync_data_from_s3:
aws s3 sync s3://$(BUCKET)/data/ data/
## Set up python interpreter environment
setup_environment:
create_environment:
source /usr/local/bin/virtualenvwrapper.sh; mkvirtualenv $(PROJECT_NAME) --python=$(PYTHON_INTERPRETER)
@echo ">>> Activate virtualenv with:\nworkon $(PROJECT_NAME)"
@echo ">>> New virtualenv created. Activate with:\nworkon $(PROJECT_NAME)"
## Test python environment is setup correctly
test_environment:

5
{{ cookiecutter.repo_name }}/test_environment.py

@ -14,8 +14,9 @@ def main():
REQUIRED_PYTHON))
if system_major != required_major:
raise TypeError("This project requires Python {}. Found: {}".format(
required_major, sys.version))
raise TypeError(
"This project requires Python {}. Found: Python {}".format(
required_major, sys.version))
else:
print(">>> Development environment passes all tests!")

Loading…
Cancel
Save