Changeset - 0a6b8255f0b7
[Not reviewed]
0 3 0
Branko Majic (branko) - 6 years ago 2018-07-31 15:23:05
branko@majic.rs
MAR-131: Use Python 3 in test site wsgihello2 role:

- Switch role to use Python 3 via meta dependency.
- Fix the demo application to work with Python 3.
- Update ipcalc dependency (so it would work with Python 3).
3 files changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
testsite/playbooks/roles/wsgihello2/files/hello.wsgi
Show inline comments
 
@@ -32,4 +32,4 @@ def application(environ, start_response):
 
                        ('Content-Length', str(len(output)))]
 
    start_response(status, response_headers)
 

	
 
    return [output]
 
    return [output.encode('utf-8')]
testsite/playbooks/roles/wsgihello2/files/requirements.txt
Show inline comments
 
django-apptemplates==1.2
 
ipcalc==1.1.3
 
ipcalc==1.99.0
 
django==1.8.16
testsite/playbooks/roles/wsgihello2/meta/main.yml
Show inline comments
 
@@ -15,6 +15,7 @@ dependencies:
 
    wsgi_requirements:
 
      - futures==3.1.1
 
      - gunicorn==19.6.0
 
    python_version: 3
 
  - role: database
 
    db_name: wsgi_{{ testsite_domain_underscores }}
 
    db_password: wsgi_{{ testsite_domain_underscores }}
0 comments (0 inline, 0 general)