Skip to content

Commit

Permalink
Merge pull request #128 from caktus/configure-requirements
Browse files Browse the repository at this point in the history
Allow configuring requirements file
  • Loading branch information
Rebecca committed Mar 21, 2016
2 parents 26463db + d635e38 commit 881f195
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ Margarita

Changes - always add to the top.

v 1.6.6 on Mar 21, 2016
-----------------------

* You can now configure which requirements file to use by specifying
`requirements_file`

v 1.6.5 on Mar 15, 2016
-----------------------

Expand Down
4 changes: 2 additions & 2 deletions project/venv.sls
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ pip_requirements:
pip.installed:
- bin_env: {{ vars.venv_dir }}
{% if grains['environment'] == 'local' %}
- requirements: {{ vars.build_path(vars.source_dir, 'requirements/dev.txt') }}
- requirements: {{ vars.build_path(vars.source_dir, pillar.get('requirements_file', 'requirements/dev.txt')) }}
{% else %}
- requirements: {{ vars.build_path(vars.source_dir, 'requirements/production.txt') }}
- requirements: {{ vars.build_path(vars.source_dir, pillar.get('requirements_file', 'requirements/production.txt')) }}
{% endif %}
- upgrade: true
- require:
Expand Down

0 comments on commit 881f195

Please sign in to comment.