diff --git a/anvil/components/base_testing.py b/anvil/components/base_testing.py index cf44bc4e..a33b5fd0 100644 --- a/anvil/components/base_testing.py +++ b/anvil/components/base_testing.py @@ -32,9 +32,9 @@ LOG = logging.getLogger(__name__) # Environment to run tests DEFAULT_ENV = { 'NOSE_WITH_OPENSTACK': '1', - 'NOSE_OPENSTACK_RED':'0.05', - 'NOSE_OPENSTACK_YELLOW':'0.025', - 'NOSE_OPENSTACK_SHOW_ELAPSED':'1', + 'NOSE_OPENSTACK_RED': '0.05', + 'NOSE_OPENSTACK_YELLOW': '0.025', + 'NOSE_OPENSTACK_SHOW_ELAPSED': '1', } diff --git a/anvil/packaging/helpers/pip_helper.py b/anvil/packaging/helpers/pip_helper.py index c4e8b9f6..148e57a2 100644 --- a/anvil/packaging/helpers/pip_helper.py +++ b/anvil/packaging/helpers/pip_helper.py @@ -31,6 +31,7 @@ FREEZE_CMD = ['freeze', '--local'] EGGS_DETAILED = {} PYTHON_KEY_VERSION_RE = re.compile("^(.+)-([0-9][0-9.a-zA-Z]*)$") + def create_requirement(name, version=None): name = pkg_resources.safe_name(name.strip()) if not name: