[GitHub] libcloud pull request #1105: [WIP] Re-enable strict checks (treat warnings a...

2017-09-06 Thread Kami
GitHub user Kami opened a pull request:

https://github.com/apache/libcloud/pull/1105

[WIP] Re-enable strict checks (treat warnings as errors) when building 
sphinx docs on Travis CI

This pull request re-enables strict checks when building sphinx docs on 
Travis CI.

This way we can automatically catch invalid / broken docstrings and other 
documentation related issues (invalid syntax) early on.

#1061 disabled this and since then a bunch of broken docstring syntax got 
in the repo so it will take a while to fix it all so we can merge this.

On a related note - I know that the PR description said "temporarily", but 
such things are rarely temporary so we need to be careful when merging such 
things. Strict checking was enabled for a reason and disabling such automatic 
checks is rarely a good idea - root cause should be found and fixed instead.

/cc @tonybaloney 

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/Kami/libcloud 
re_enable_sphinx_docs_strict_checks

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/libcloud/pull/1105.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1105


commit fe3e7c01b647513e4db389e9ab4d3020b2564605
Author: Tomaz Muraus 
Date:   2017-09-06T14:57:53Z

Re-enable strict checks (treat warnings as errors) when building sphinx
docs.

This allows us to catch broken / invalid docstrings and other
documentation related issues.




---


[2/2] libcloud git commit: Re-generate supported providers tables.

2017-09-06 Thread tomaz
Re-generate supported providers tables.


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

Branch: refs/heads/trunk
Commit: f1bff48142bd942ce1e81abb9769be3dd09a3d76
Parents: 2611dc0
Author: Tomaz Muraus 
Authored: Wed Sep 6 16:27:37 2017 +0200
Committer: Tomaz Muraus 
Committed: Wed Sep 6 16:27:37 2017 +0200

--
 docs/storage/_supported_methods_cdn.rst  | 2 ++
 docs/storage/_supported_methods_main.rst | 2 ++
 docs/storage/_supported_providers.rst| 2 ++
 3 files changed, 6 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/f1bff481/docs/storage/_supported_methods_cdn.rst
--
diff --git a/docs/storage/_supported_methods_cdn.rst 
b/docs/storage/_supported_methods_cdn.rst
index 5105f54..088b5ac 100644
--- a/docs/storage/_supported_methods_cdn.rst
+++ b/docs/storage/_supported_methods_cdn.rst
@@ -10,6 +10,7 @@ Provider  enable container cdn enable 
object cdn get contain
 `CloudFiles`_ yes  noyes   
yes   
 `Google Cloud Storage`_   no   nono
no
 `KTUCloud Storage`_   yes  noyes   
yes   
+`Local Storage`_  yes  yes   yes   
yes   
 `Nimbus.io`_  no   nono
no
 `Ninefold`_   no   yes   no
yes   
 `OpenStack Swift`_yes  noyes   
yes   
@@ -41,6 +42,7 @@ Provider  enable container cdn enable 
object cdn get contain
 .. _`CloudFiles`: http://www.rackspace.com/
 .. _`Google Cloud Storage`: http://cloud.google.com/storage
 .. _`KTUCloud Storage`: http://www.rackspace.com/
+.. _`Local Storage`: http://example.com
 .. _`Nimbus.io`: https://nimbus.io/
 .. _`Ninefold`: http://ninefold.com/
 .. _`OpenStack Swift`: http://www.rackspace.com/

http://git-wip-us.apache.org/repos/asf/libcloud/blob/f1bff481/docs/storage/_supported_methods_main.rst
--
diff --git a/docs/storage/_supported_methods_main.rst 
b/docs/storage/_supported_methods_main.rst
index d6da8fd..4f7eb96 100644
--- a/docs/storage/_supported_methods_main.rst
+++ b/docs/storage/_supported_methods_main.rst
@@ -10,6 +10,7 @@ Provider  list containers list objects 
create container dele
 `CloudFiles`_ yes yes  yes  
yes  yes   yes yes yes  
 yes  
 `Google Cloud Storage`_   yes yes  yes  
yes  yes   yes yes yes  
 yes  
 `KTUCloud Storage`_   yes yes  yes  
yes  yes   yes yes yes  
 yes  
+`Local Storage`_  yes yes  yes  
yes  yes   yes yes yes  
 yes  
 `Nimbus.io`_  yes no   yes  no 
  nono  no  no  
  no   
 `Ninefold`_   yes yes  yes  
yes  yes   yes yes yes  
 yes  
 `OpenStack Swift`_yes yes  yes  
yes  yes   yes yes yes  
 yes  
@@ -41,6 +42,7 @@ Provider  list containers list objects 
create container dele
 .. _`CloudFiles`: http://www.rackspace.com/
 .. _`Google Cloud Storage`: http://cloud.google.com/storage
 .. _`KTUCloud Storage`: http://www.rackspace.com/
+.. _`Local Storage`: http://example.com
 .. _`Nimbus.io`: https://nimbus.io/
 .. _`Ninefold`: http://ninefold.com/
 .. _`OpenStack Swift`: http://www.rackspace.com/

http://git-wip-us.apache.org/repos/asf/libcloud/blob/f1bff481/docs/storage/_supported_providers.rst

[1/2] libcloud git commit: Also include local storage driver in the supported providers and features table.

2017-09-06 Thread tomaz
Repository: libcloud
Updated Branches:
  refs/heads/trunk 25c97840b -> f1bff4814


Also include local storage driver in the supported providers and
features table.


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

Branch: refs/heads/trunk
Commit: 2611dc01f8025f46f028aed158bca5bf9922fa41
Parents: 25c9784
Author: Tomaz Muraus 
Authored: Wed Sep 6 16:26:39 2017 +0200
Committer: Tomaz Muraus 
Committed: Wed Sep 6 16:27:28 2017 +0200

--
 contrib/generate_provider_feature_matrix_table.py | 5 ++---
 tox.ini   | 4 
 2 files changed, 6 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/2611dc01/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 d35d63b..f492001 100755
--- a/contrib/generate_provider_feature_matrix_table.py
+++ b/contrib/generate_provider_feature_matrix_table.py
@@ -205,7 +205,6 @@ FRIENDLY_METHODS_NAMES = {
 
 IGNORED_PROVIDERS = [
 'dummy',
-'local',
 
 # Deprecated constants
 'cloudsigma_us',
@@ -264,9 +263,9 @@ def generate_providers_table(api):
 
 try:
 cls = get_driver_method(enum)
-except Exception:
+except Exception as e:
 # Deprecated providers throw an exception
-print('Ignoring deprecated constant "%s"' % (enum))
+print('Ignoring deprecated constant "%s": %s' % (enum, str(e)))
 continue
 
 # Hack for providers which expose multiple classes and support multiple

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2611dc01/tox.ini
--
diff --git a/tox.ini b/tox.ini
index 05475c7..a4e54a9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -32,6 +32,7 @@ commands = cp libcloud/test/secrets.py-dist 
libcloud/test/secrets.py
 deps = sphinx
pysphere
backports.ssl_match_hostname
+   lockfile
 changedir = docs
 commands = python ../contrib/generate_provider_feature_matrix_table.py
sphinx-apidoc -d 4 ../libcloud/ -o apidocs/
@@ -43,6 +44,7 @@ commands = python 
../contrib/generate_provider_feature_matrix_table.py
 deps = sphinx
pysphere
backports.ssl_match_hostname
+   lockfile
 changedir = docs
 commands = python ../contrib/generate_provider_feature_matrix_table.py
sphinx-build -b html -d {envtmpdir}/doctrees . _build/html
@@ -56,6 +58,7 @@ commands = python contrib/scrape-ec2-prices.py
 deps = -r{toxinidir}/requirements-tests.txt
backports.ssl_match_hostname
bottle
+   lockfile
 commands = pylint -E --rcfile=./.pylintrc libcloud/common/
pylint -E --rcfile=./.pylintrc libcloud/container/
pylint -E --rcfile=./.pylintrc libcloud/backup/
@@ -68,6 +71,7 @@ commands = pylint -E --rcfile=./.pylintrc libcloud/common/
 [testenv:lint]
 deps = -r{toxinidir}/requirements-tests.txt
backports.ssl_match_hostname
+   lockfile
 
 commands = flake8 --ignore=E402 --exclude="test" libcloud/
flake8 --ignore=E402 --max-line-length=160 libcloud/test/



[jira] [Commented] (LIBCLOUD-943) Azure ARM driver's ex_create_network_interface method is missing the option to create a static IP address

2017-09-06 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/LIBCLOUD-943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16155277#comment-16155277
 ] 

ASF GitHub Bot commented on LIBCLOUD-943:
-

GitHub user aki-k opened a pull request:

https://github.com/apache/libcloud/pull/1104

[LIBCLOUD-943] Add the option to Azure ARM ex_create_network_interfac…

### [LIBCLOUD-943] Add the option to Azure ARM ex_create_network_interface 
to create a static IP address

### Description

https://issues.apache.org/jira/browse/LIBCLOUD-943

Azure ARM driver's ex_create_network_interface is missing the option to 
create
a static IP address. "privateIPAllocationMethod" is set to "Dynamic" in the 
"data" 
dictionary. This change adds the option to create the network interface 
with a 
static IP address.

The value for the static IP address is defined with 
private_ip_address="n.n.n.n" in the 
ex_create_network_interface call.

### Status

- done, ready for review

### Checklist (tick everything that applies)

- [x] [Code 
linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide)
 (required, can be done after the PR checks)
- [x] Documentation
- [ ] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
- [ ] 
[ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes)
 (required for bigger changes)


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/aki-k/libcloud 
LIBCLOUD-943-ex_create_network_interface-private_ip_allocation_method-static

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/libcloud/pull/1104.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1104


commit 2f22dbea6f36eef4e2608a731446d7854a4ca197
Author: Aki Ketolainen 
Date:   2017-09-06T12:04:05Z

[LIBCLOUD-943] Add the option to Azure ARM ex_create_network_interface to 
create a static IP address




> Azure ARM driver's ex_create_network_interface method is missing the option 
> to create a static IP address
> -
>
> Key: LIBCLOUD-943
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-943
> Project: Libcloud
>  Issue Type: Improvement
>  Components: Compute
> Environment: Python 3.5.2
>Reporter: Aki Ketolainen
>Priority: Trivial
>
> "privateIPAllocationMethod" is set to "Dynamic" in the "data" dictionary. 
> This associates a dynamic IP address from the Azure virtual network subnet 
> for the created network interface.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[GitHub] libcloud pull request #1104: [LIBCLOUD-943] Add the option to Azure ARM ex_c...

2017-09-06 Thread aki-k
GitHub user aki-k opened a pull request:

https://github.com/apache/libcloud/pull/1104

[LIBCLOUD-943] Add the option to Azure ARM ex_create_network_interfac…

### [LIBCLOUD-943] Add the option to Azure ARM ex_create_network_interface 
to create a static IP address

### Description

https://issues.apache.org/jira/browse/LIBCLOUD-943

Azure ARM driver's ex_create_network_interface is missing the option to 
create
a static IP address. "privateIPAllocationMethod" is set to "Dynamic" in the 
"data" 
dictionary. This change adds the option to create the network interface 
with a 
static IP address.

The value for the static IP address is defined with 
private_ip_address="n.n.n.n" in the 
ex_create_network_interface call.

### Status

- done, ready for review

### Checklist (tick everything that applies)

- [x] [Code 
linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide)
 (required, can be done after the PR checks)
- [x] Documentation
- [ ] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
- [ ] 
[ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes)
 (required for bigger changes)


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/aki-k/libcloud 
LIBCLOUD-943-ex_create_network_interface-private_ip_allocation_method-static

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/libcloud/pull/1104.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1104


commit 2f22dbea6f36eef4e2608a731446d7854a4ca197
Author: Aki Ketolainen 
Date:   2017-09-06T12:04:05Z

[LIBCLOUD-943] Add the option to Azure ARM ex_create_network_interface to 
create a static IP address




---


libcloud git commit: Remove double trailing dot.

2017-09-06 Thread tomaz
Repository: libcloud
Updated Branches:
  refs/heads/trunk 0c0f34d14 -> 25c97840b


Remove double trailing dot.


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

Branch: refs/heads/trunk
Commit: 25c97840b65b8e82e0a85dc1279158b76b5874ae
Parents: 0c0f34d
Author: Tomaz Muraus 
Authored: Wed Sep 6 13:23:52 2017 +0200
Committer: Tomaz Muraus 
Committed: Wed Sep 6 13:23:52 2017 +0200

--
 docs/copyright.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/25c97840/docs/copyright.rst
--
diff --git a/docs/copyright.rst b/docs/copyright.rst
index dbe6ca0..d8b1317 100644
--- a/docs/copyright.rst
+++ b/docs/copyright.rst
@@ -1,7 +1,7 @@
 Copyright
 =
 
-Copyright © 2009 - 2017 `The Apache Software Foundation. 
`_.
+Copyright © 2009 - 2017 `The Apache Software Foundation. 
`_
 
 Apache Libcloud, Libcloud, Apache, the Apache feather, and the Apache Libcloud
 project logo are trademarks of the Apache Software Foundation. All other marks