You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/08/04 20:24:52 UTC

[1/9] git commit: docs: update index page.

Updated Branches:
  refs/heads/trunk 683717beb -> 52b0b6940


docs: update index page.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/40591744
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/40591744
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/40591744

Branch: refs/heads/trunk
Commit: 405917442951ce0867b07844f7b23b93c689343d
Parents: 683717b
Author: Tomaz Muraus <to...@apache.org>
Authored: Sun Aug 4 13:28:17 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sun Aug 4 13:28:17 2013 +0200

----------------------------------------------------------------------
 docs/getting-started.rst | 44 -------------------------------------------
 docs/getting_started.rst | 44 +++++++++++++++++++++++++++++++++++++++++++
 docs/index.rst           |  4 ++++
 3 files changed, 48 insertions(+), 44 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/40591744/docs/getting-started.rst
----------------------------------------------------------------------
diff --git a/docs/getting-started.rst b/docs/getting-started.rst
deleted file mode 100644
index 7352480..0000000
--- a/docs/getting-started.rst
+++ /dev/null
@@ -1,44 +0,0 @@
-Getting Started
-===============
-
-Installation
-------------
-
-Libcloud is available on PyPi and can be installed using pip:
-
-.. sourcecode:: bash
-
-    pip install apache-libcloud
-
-Upgrading
----------
-
-If you used pip to install the library you can also use it to upgrade it:
-
-.. sourcecode:: bash
-
-    pip install --upgrade apache-libcloud
-
-Example: Connecting with a Driver
----------------------------------
-
-.. literalinclude:: /examples/compute/list_nodes.py
-   :language: python
-
-Example: Creating a Node
-------------------------
-
-.. literalinclude:: /examples/compute/create_node.py
-   :language: python
-
-Example: List Nodes Across Multiple Providers
----------------------------------------------
-
-.. literalinclude:: /examples/compute/list_nodes_across_multiple_providers.py
-   :language: python
-
-Example: Bootstrapping Puppet on a Node
----------------------------------------
-
-.. literalinclude:: /examples/compute/bootstrapping_puppet_on_node.py
-   :language: python

http://git-wip-us.apache.org/repos/asf/libcloud/blob/40591744/docs/getting_started.rst
----------------------------------------------------------------------
diff --git a/docs/getting_started.rst b/docs/getting_started.rst
new file mode 100644
index 0000000..7352480
--- /dev/null
+++ b/docs/getting_started.rst
@@ -0,0 +1,44 @@
+Getting Started
+===============
+
+Installation
+------------
+
+Libcloud is available on PyPi and can be installed using pip:
+
+.. sourcecode:: bash
+
+    pip install apache-libcloud
+
+Upgrading
+---------
+
+If you used pip to install the library you can also use it to upgrade it:
+
+.. sourcecode:: bash
+
+    pip install --upgrade apache-libcloud
+
+Example: Connecting with a Driver
+---------------------------------
+
+.. literalinclude:: /examples/compute/list_nodes.py
+   :language: python
+
+Example: Creating a Node
+------------------------
+
+.. literalinclude:: /examples/compute/create_node.py
+   :language: python
+
+Example: List Nodes Across Multiple Providers
+---------------------------------------------
+
+.. literalinclude:: /examples/compute/list_nodes_across_multiple_providers.py
+   :language: python
+
+Example: Bootstrapping Puppet on a Node
+---------------------------------------
+
+.. literalinclude:: /examples/compute/bootstrapping_puppet_on_node.py
+   :language: python

http://git-wip-us.apache.org/repos/asf/libcloud/blob/40591744/docs/index.rst
----------------------------------------------------------------------
diff --git a/docs/index.rst b/docs/index.rst
index 7209f8b..ebec441 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -30,10 +30,14 @@ Resource you can manage with Libcloud are divided in the following categories:
 
     A subset of supported providers in Libcloud.
 
+Documentation
+=============
+
 .. toctree::
     :glob:
     :maxdepth: 3
 
+    getting_started
     compute/index
     storage/index
     loadbalancer/index


[9/9] git commit: Don't treat warnings as errors, output docs to _build/html.

Posted by to...@apache.org.
Don't treat warnings as errors, output docs to _build/html.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/52b0b694
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/52b0b694
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/52b0b694

Branch: refs/heads/trunk
Commit: 52b0b6940794aecb5f4112dca1a0823d1b384717
Parents: ea0b636
Author: Tomaz Muraus <to...@apache.org>
Authored: Sun Aug 4 20:23:42 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sun Aug 4 20:23:42 2013 +0200

----------------------------------------------------------------------
 tox.ini | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/52b0b694/tox.ini
----------------------------------------------------------------------
diff --git a/tox.ini b/tox.ini
index 2d133ce..cf2da7d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -40,7 +40,7 @@ deps = sphinx
 basepython = python
 changedir = docs
 commands = python ../contrib/generate_provider_feature_matrix_table.py
-           sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
+           sphinx-build -b html -d {envtmpdir}/doctrees . _build/html
 
 [testenv:examples]
 deps = flake8


[8/9] git commit: Fix docs build issues.

Posted by to...@apache.org.
Fix docs build issues.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/ea0b6367
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/ea0b6367
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/ea0b6367

Branch: refs/heads/trunk
Commit: ea0b636778b7bf3bffcbbfc4bbfd2def4e756b94
Parents: 164e3f7
Author: Tomaz Muraus <to...@apache.org>
Authored: Sun Aug 4 20:23:32 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sun Aug 4 20:23:32 2013 +0200

----------------------------------------------------------------------
 docs/getting_started.rst                                         | 4 ++--
 .../using-libcloud-in-multithreaded-and-async-environments.rst   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/ea0b6367/docs/getting_started.rst
----------------------------------------------------------------------
diff --git a/docs/getting_started.rst b/docs/getting_started.rst
index 3b702ad..472f4a6 100644
--- a/docs/getting_started.rst
+++ b/docs/getting_started.rst
@@ -2,7 +2,7 @@ Getting Started
 ===============
 
 Installation (stable version)
-----------------------------
+-----------------------------
 
 Libcloud is available on PyPi. You can install latest stable version using pip:
 
@@ -11,7 +11,7 @@ Libcloud is available on PyPi. You can install latest stable version using pip:
     pip install apache-libcloud
 
 Installation (development version)
----------------------------------
+----------------------------------
 
 You can install latest development version from out Git repository:
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/ea0b6367/docs/other/using-libcloud-in-multithreaded-and-async-environments.rst
----------------------------------------------------------------------
diff --git a/docs/other/using-libcloud-in-multithreaded-and-async-environments.rst b/docs/other/using-libcloud-in-multithreaded-and-async-environments.rst
index 26e1edb..0a9a316 100644
--- a/docs/other/using-libcloud-in-multithreaded-and-async-environments.rst
+++ b/docs/other/using-libcloud-in-multithreaded-and-async-environments.rst
@@ -63,7 +63,7 @@ thread pool.
 The example bellow demonstrates how to create a new node inside a thread
 without blocking the whole reactor.
 
-.. literalinclude:: /examples/misc/twist_create_node.py
+.. literalinclude:: /examples/misc/twisted_create_node.py
    :language: python
 
 


[3/9] git commit: docs: Update getting started and examples page.

Posted by to...@apache.org.
docs: Update getting started and examples page.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/8f40d34c
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/8f40d34c
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/8f40d34c

Branch: refs/heads/trunk
Commit: 8f40d34c516370cad3065c3461138a975f8dcd65
Parents: 2b04dfb
Author: Tomaz Muraus <to...@apache.org>
Authored: Sun Aug 4 15:54:58 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sun Aug 4 15:54:58 2013 +0200

----------------------------------------------------------------------
 docs/compute/examples.rst | 18 ++++++++++
 docs/getting_started.rst  | 74 +++++++++++++++++++++++++++++++-----------
 docs/index.rst            |  2 +-
 3 files changed, 74 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/8f40d34c/docs/compute/examples.rst
----------------------------------------------------------------------
diff --git a/docs/compute/examples.rst b/docs/compute/examples.rst
index 18e9d99..95b2d3e 100644
--- a/docs/compute/examples.rst
+++ b/docs/compute/examples.rst
@@ -1,6 +1,24 @@
 Compute Examples
 ================
 
+Example: Creating a Node
+------------------------
+
+.. literalinclude:: /examples/compute/create_node.py
+   :language: python
+
+Example: List Nodes Across Multiple Providers
+---------------------------------------------
+
+.. literalinclude:: /examples/compute/list_nodes_across_multiple_providers.py
+   :language: python
+
+Example: Bootstrapping Puppet on a Node
+---------------------------------------
+
+.. literalinclude:: /examples/compute/bootstrapping_puppet_on_node.py
+   :language: python
+
 Create an OpenStack node using trystack.org provider
 ----------------------------------------------------
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/8f40d34c/docs/getting_started.rst
----------------------------------------------------------------------
diff --git a/docs/getting_started.rst b/docs/getting_started.rst
index 7352480..3b702ad 100644
--- a/docs/getting_started.rst
+++ b/docs/getting_started.rst
@@ -1,15 +1,24 @@
 Getting Started
 ===============
 
-Installation
-------------
+Installation (stable version)
+----------------------------
 
-Libcloud is available on PyPi and can be installed using pip:
+Libcloud is available on PyPi. You can install latest stable version using pip:
 
 .. sourcecode:: bash
 
     pip install apache-libcloud
 
+Installation (development version)
+---------------------------------
+
+You can install latest development version from out Git repository:
+
+.. sourcecode:: bash
+
+    pip install -e https://git-wip-us.apache.org/repos/asf/libcloud.git@trunk#egg=apache-libcloud
+
 Upgrading
 ---------
 
@@ -19,26 +28,53 @@ If you used pip to install the library you can also use it to upgrade it:
 
     pip install --upgrade apache-libcloud
 
-Example: Connecting with a Driver
----------------------------------
+Using it
+--------
+
+This section describes a standard work-flow which you follow when working
+with any of the Libcloud drivers.
+
+1. Obtain reference to the provider driver
+
+.. sourcecode:: python
+
+    from pprint import pprint
+
+    from libcloud.compute.types import Provider
+    from libcloud.compute.providers import get_driver
+
+    cls = get_driver(Provider.RACKSPACE)
+
+2. Instantiate the driver with your provider credentials
+
+.. sourcecode:: python
+
+   driver = cls('my username', 'my api key')
+
+3. Start using the driver
+
+.. sourcecode:: python
+
+    pprint(driver.list_sizes())
+    pprint(driver.list_nodes())
+
+4. Putting it all together
 
-.. literalinclude:: /examples/compute/list_nodes.py
-   :language: python
+.. sourcecode:: python
 
-Example: Creating a Node
-------------------------
+    from pprint import pprint
 
-.. literalinclude:: /examples/compute/create_node.py
-   :language: python
+    from libcloud.compute.types import Provider
+    from libcloud.compute.providers import get_driver
 
-Example: List Nodes Across Multiple Providers
----------------------------------------------
+    cls = get_driver(Provider.RACKSPACE)
+    driver = cls('my username', 'my api key')
 
-.. literalinclude:: /examples/compute/list_nodes_across_multiple_providers.py
-   :language: python
+    pprint(driver.list_sizes())
+    pprint(driver.list_nodes())
 
-Example: Bootstrapping Puppet on a Node
----------------------------------------
+You can find more examples with common patterns which can help you get started
+on the :doc:`Compute Examples </compute/examples>` page.
 
-.. literalinclude:: /examples/compute/bootstrapping_puppet_on_node.py
-   :language: python
+Where to go from here?
+----------------------

http://git-wip-us.apache.org/repos/asf/libcloud/blob/8f40d34c/docs/index.rst
----------------------------------------------------------------------
diff --git a/docs/index.rst b/docs/index.rst
index ebec441..66e3e84 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -18,7 +18,7 @@ a unified and easy to use API.
 
 Resource you can manage with Libcloud are divided in the following categories:
 
-* :doc:`Cloud Servers </compute/index>` - services such as Amazon EC2 and
+* :doc:`Cloud Servers and Block Storage </compute/index>` - services such as Amazon EC2 and
   RackSpace CloudServers
 * :doc:`Cloud Object Storage </storage/index>` - services such as Amazon S3 and
   Rackspace CloudFiles


[2/9] git commit: docs: Modify generate providers table script to support detection of deploy_node feature.

Posted by to...@apache.org.
docs: Modify generate providers table script to support detection of deploy_node
feature.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/2b04dfb2
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/2b04dfb2
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/2b04dfb2

Branch: refs/heads/trunk
Commit: 2b04dfb20c17e02bbe2663f87a52c126d3935b78
Parents: 4059174
Author: Tomaz Muraus <to...@apache.org>
Authored: Sun Aug 4 15:11:06 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sun Aug 4 15:11:06 2013 +0200

----------------------------------------------------------------------
 contrib/generate_provider_feature_matrix_table.py | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/2b04dfb2/contrib/generate_provider_feature_matrix_table.py
----------------------------------------------------------------------
diff --git a/contrib/generate_provider_feature_matrix_table.py b/contrib/generate_provider_feature_matrix_table.py
index afdcfb7..55fac04 100755
--- a/contrib/generate_provider_feature_matrix_table.py
+++ b/contrib/generate_provider_feature_matrix_table.py
@@ -40,7 +40,8 @@ from libcloud.dns.types import Provider as DNSProvider
 
 BASE_API_METHODS = {
     'compute_main': ['list_nodes', 'create_node', 'reboot_node',
-                     'destroy_node', 'list_images', 'list_sizes'],
+                     'destroy_node', 'list_images', 'list_sizes',
+                     'deploy_node'],
     'compute_block_storage': ['list_volumes', 'create_volume',
                               'destroy_volume',
                               'attach_volume', 'detach_volume',
@@ -65,7 +66,8 @@ FRIENDLY_METHODS_NAMES = {
         'reboot_node': 'reboot node',
         'destroy_node': 'destroy node',
         'list_images': 'list images',
-        'list_sizes': 'list sizes'
+        'list_sizes': 'list sizes',
+        'deploy_node': 'deploy node'
     },
     'compute_block_storage': {
         'list_volumes': 'list volumes',
@@ -166,8 +168,14 @@ def generate_providers_table(api):
         for method_name in base_api_methods:
             base_method = base_methods[method_name]
             driver_method = driver_methods[method_name]
-            is_implemented = (id(driver_method.im_func) !=
-                              id(base_method.im_func))
+
+            if method_name == 'deploy_node':
+                features = getattr(cls, 'features', {}).get('create_node', [])
+                is_implemented = len(features) >= 1
+            else:
+                is_implemented = (id(driver_method.im_func) !=
+                                  id(base_method.im_func))
+
             result[name]['methods'][method_name] = is_implemented
 
     return result


[6/9] git commit: Modify tox docs environment to generate documentation fixture before building the docs.

Posted by to...@apache.org.
Modify tox docs environment to generate documentation fixture before
building the docs.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/3930894c
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/3930894c
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/3930894c

Branch: refs/heads/trunk
Commit: 3930894c44baafd5519784e3b87feac48524b6d6
Parents: 63af5b3
Author: Tomaz Muraus <to...@apache.org>
Authored: Sun Aug 4 20:17:29 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sun Aug 4 20:17:29 2013 +0200

----------------------------------------------------------------------
 tox.ini | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/3930894c/tox.ini
----------------------------------------------------------------------
diff --git a/tox.ini b/tox.ini
index 60f42d7..2d133ce 100644
--- a/tox.ini
+++ b/tox.ini
@@ -39,7 +39,8 @@ deps = mock
 deps = sphinx
 basepython = python
 changedir = docs
-commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
+commands = python ../contrib/generate_provider_feature_matrix_table.py
+           sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
 
 [testenv:examples]
 deps = flake8


[7/9] git commit: Use absolute path and generate links tags for both fixtures.

Posted by to...@apache.org.
Use absolute path and generate links tags for both fixtures.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/164e3f71
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/164e3f71
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/164e3f71

Branch: refs/heads/trunk
Commit: 164e3f71635e427d068cfecda531b078714316db
Parents: 3930894
Author: Tomaz Muraus <to...@apache.org>
Authored: Sun Aug 4 20:20:01 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sun Aug 4 20:20:01 2013 +0200

----------------------------------------------------------------------
 contrib/generate_provider_feature_matrix_table.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/164e3f71/contrib/generate_provider_feature_matrix_table.py
----------------------------------------------------------------------
diff --git a/contrib/generate_provider_feature_matrix_table.py b/contrib/generate_provider_feature_matrix_table.py
index d6aec37..e08b224 100755
--- a/contrib/generate_provider_feature_matrix_table.py
+++ b/contrib/generate_provider_feature_matrix_table.py
@@ -20,7 +20,8 @@ import inspect
 from collections import OrderedDict
 from os.path import join as pjoin
 
-sys.path.insert(0, '../')
+this_dir = os.path.abspath(os.path.split(__file__)[0])
+sys.path.insert(0, os.path.join(this_dir, '../'))
 
 from libcloud.compute .base import NodeDriver
 from libcloud.compute.providers import get_driver as get_compute_driver
@@ -236,6 +237,10 @@ def generate_supported_providers_table(provider_matrix):
         data.append(row)
 
     result = generate_rst_table(data)
+
+    result += '\n\n'
+    for provider, values in provider_matrix.items():
+        result += '.. _`%s`: %s\n' % (values['name'], values['website'])
     return result
 
 


[5/9] git commit: Update invalid docstring.

Posted by to...@apache.org.
Update invalid docstring.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/63af5b37
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/63af5b37
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/63af5b37

Branch: refs/heads/trunk
Commit: 63af5b378783d98aca9a1283a10192a8cb2c44d3
Parents: ffb4d46
Author: Tomaz Muraus <to...@apache.org>
Authored: Sun Aug 4 20:13:51 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sun Aug 4 20:13:51 2013 +0200

----------------------------------------------------------------------
 libcloud/compute/base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/63af5b37/libcloud/compute/base.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/base.py b/libcloud/compute/base.py
index 0a84dd2..9985b66 100644
--- a/libcloud/compute/base.py
+++ b/libcloud/compute/base.py
@@ -666,7 +666,7 @@ class NodeDriver(BaseDriver):
         :type ssh_port: ``int``
 
         :param ssh_timeout: Optional SSH connection timeout in seconds
-                                 (default is None)
+                                 (default is 10)
         :type ssh_timeout: ``float``
 
         :param auth:   Initial authentication information for the node


[4/9] git commit: Add sheband, make sure parent directory is always in sys.path.

Posted by to...@apache.org.
Add sheband, make sure parent directory is always in sys.path.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/ffb4d465
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/ffb4d465
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/ffb4d465

Branch: refs/heads/trunk
Commit: ffb4d46533bcea090304d403bad2cd1faeaca183
Parents: 8f40d34
Author: Tomaz Muraus <to...@apache.org>
Authored: Sun Aug 4 20:07:58 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sun Aug 4 20:07:58 2013 +0200

----------------------------------------------------------------------
 contrib/generate_provider_feature_matrix_table.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/ffb4d465/contrib/generate_provider_feature_matrix_table.py
----------------------------------------------------------------------
diff --git a/contrib/generate_provider_feature_matrix_table.py b/contrib/generate_provider_feature_matrix_table.py
index 55fac04..d6aec37 100755
--- a/contrib/generate_provider_feature_matrix_table.py
+++ b/contrib/generate_provider_feature_matrix_table.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.
@@ -14,10 +15,13 @@
 # limitations under the License.
 
 import os
+import sys
 import inspect
 from collections import OrderedDict
 from os.path import join as pjoin
 
+sys.path.insert(0, '../')
+
 from libcloud.compute .base import NodeDriver
 from libcloud.compute.providers import get_driver as get_compute_driver
 from libcloud.compute.providers import DRIVERS as COMPUTE_DRIVERS