You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by "Tomaz Muraus (JIRA)" <ji...@apache.org> on 2011/06/27 13:48:47 UTC

[dev] [jira] [Commented] (LIBCLOUD-96) Add third-party dependencies management

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

Tomaz Muraus commented on LIBCLOUD-96:
--------------------------------------

I have also added a "Testing" page (http://libcloud.apache.org/testing.html) to our website recently, but nothing actually links to it yet :)

I will fix it and add a link to it on the "Development Information" page.

The dependency management part is sadly more complicated. setuptools / distutils don't support "test_dependencies" option which means we would need to use something like buildout to handle test dependencies.

> Add third-party dependencies management
> ---------------------------------------
>
>                 Key: LIBCLOUD-96
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-96
>             Project: Libcloud
>          Issue Type: Improvement
>    Affects Versions: 0.5.1
>            Reporter: Andrey Zhuchkov
>             Fix For: 0.5.2
>
>
> Recently I have faced with a problem during running libcloud tests:
> Traceback (most recent call last):
>   File "setup.py", line 189, in <module>
>     'Topic :: Software Development :: Libraries :: Python Modules'
>   File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
>     dist.run_commands()
>   File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
>     self.run_command(cmd)
>   File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
>     cmd_obj.run()
>   File "setup.py", line 57, in run
>     status = self._run_tests()
>   File "setup.py", line 95, in _run_tests
>     tests = TestLoader().loadTestsFromNames(testfiles)
>   File "/usr/lib/python2.6/unittest.py", line 613, in loadTestsFromNames
>     suites = [self.loadTestsFromName(name, module) for name in names]
>   File "/usr/lib/python2.6/unittest.py", line 584, in loadTestsFromName
>     parent, obj = obj, getattr(obj, part)
> AttributeError: 'module' object has no attribute 'test_deployment'
> Since I have already dealt with similar issue, I figured out what the problem is quite quick - the problem is related to imports, particularly to mock library import. This is not core python package and there is no requirements to install this package in project documentation. Since that it could be really difficult to determine the cause of error.
> So I think it would be helpfull to use some dependency management mechanism or at least add requirements section into the documentation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira