-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 125-validate-aws-credentials
- Loading branch information
Showing
18 changed files
with
33 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import print_function, unicode_literals | ||
|
||
import sys | ||
import time | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import print_function, unicode_literals, division | ||
|
||
import binascii | ||
import json | ||
import os | ||
|
@@ -15,20 +13,14 @@ | |
|
||
from helpers.cli import CLI | ||
from helpers.network import Network | ||
from helpers.singleton import Singleton, with_metaclass | ||
from helpers.singleton import Singleton | ||
from helpers.upgrading import Upgrading | ||
from helpers.aws_validation import AWSValidation | ||
|
||
# Python retro compatibility | ||
try: | ||
FileNotFoundError | ||
except NameError: | ||
FileNotFoundError = IOError | ||
|
||
|
||
# Use this class as a singleton to get the same configuration | ||
# for each instantiation. | ||
class Config(with_metaclass(Singleton)): | ||
class Config(metaclass=Singleton): | ||
|
||
CONFIG_FILE = '.run.conf' | ||
UNIQUE_ID_FILE = '.uniqid' | ||
|
@@ -39,7 +31,7 @@ class Config(with_metaclass(Singleton)): | |
DEFAULT_NGINX_PORT = '80' | ||
DEFAULT_NGINX_HTTPS_PORT = '443' | ||
KOBO_DOCKER_BRANCH = '2.020.45' | ||
KOBO_INSTALL_VERSION = '4.0.0' | ||
KOBO_INSTALL_VERSION = '4.2.0' | ||
MAXIMUM_AWS_CREDENTIAL_ATTEMPTS = 3 | ||
|
||
def __init__(self): | ||
|
@@ -326,11 +318,11 @@ def get_template(cls): | |
'debug': False, | ||
'default_from_email': '[email protected]', | ||
'dev_mode': False, | ||
'django_secret_key': binascii.hexlify(os.urandom(50)).decode('utf-8'), | ||
'django_secret_key': binascii.hexlify(os.urandom(50)).decode(), | ||
'docker_prefix': '', | ||
'ee_subdomain': 'ee', | ||
'enketo_api_token': binascii.hexlify(os.urandom(60)).decode('utf-8'), | ||
'enketo_encryption_key': binascii.hexlify(os.urandom(60)).decode('utf-8'), | ||
'enketo_api_token': binascii.hexlify(os.urandom(60)).decode(), | ||
'enketo_encryption_key': binascii.hexlify(os.urandom(60)).decode(), | ||
# default value from enketo. Because it was not customizable before | ||
# we want to keep the same value when users upgrade. | ||
'enketo_less_secure_encryption_key': 'this $3cr3t key is crackable', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import print_function, unicode_literals | ||
|
||
import os | ||
import sys | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import print_function, unicode_literals | ||
|
||
import subprocess | ||
import sys | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
# content of: tox.ini , put in same dir as setup.py | ||
[tox] | ||
skipsdist=True | ||
envlist = py27,py37,py38 | ||
envlist = py36,py37,py38 | ||
|
||
[testenv] | ||
deps = -rrequirements_py3_tests.txt | ||
commands = | ||
pytest -vv {posargs} --disable-pytest-warnings | ||
|
||
[testenv:py27] | ||
deps = -rrequirements_py2_tests.txt | ||
deps = -rrequirements_tests.txt | ||
commands = | ||
pytest -vv {posargs} --disable-pytest-warnings |