Browse Source

small naming fix

main
Colin Sullivan 8 years ago
parent
commit
a3785c9180
  1. 4
      {{ cookiecutter.repo_name }}/Makefile
  2. 3
      {{ 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/ aws s3 sync s3://$(BUCKET)/data/ data/
## Set up python interpreter environment ## Set up python interpreter environment
setup_environment: create_environment:
source /usr/local/bin/virtualenvwrapper.sh; mkvirtualenv $(PROJECT_NAME) --python=$(PYTHON_INTERPRETER) 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 python environment is setup correctly
test_environment: test_environment:

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

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

Loading…
Cancel
Save