Skip to content

Commit

Permalink
remove default for docker_base_extra_python_requirements and move pla…
Browse files Browse the repository at this point in the history
…ce in requirements.txt to top
  • Loading branch information
Ray Chetty committed Oct 5, 2016
1 parent fa50bbe commit b0991fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ docker_compose_version: "1.8.0"
# There are times when we will need to be explicit about versions of other libraries
# See README.md for detals.
# Empty list means don't specify any additional versions
docker_base_extra_python_requirements:
- "requests==2.7.0"
docker_base_extra_python_requirements: []

# Version of docker-rotate to use. Versions lower than 3.0 are not supported due
# to API changes.
Expand Down
8 changes: 4 additions & 4 deletions templates/requirements.txt.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% for item in docker_base_extra_python_requirements %}
{{ item }}
{% endfor %}
docker-py{{ '' if docker_py_version == 'latest' else ('==' + docker_py_version) }}
dockerrotate=={{ docker_rotate_version }}
{% if docker_compose_version is not none and docker_compose_version != '' %}
docker-compose{{ '' if docker_compose_version == 'latest' else ('==' + docker_compose_version) }}
{% endif %}
{% for item in docker_base_extra_python_requirements %}
{{ item }}
{% endfor %}
{% endif %}

0 comments on commit b0991fa

Please sign in to comment.