You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/01/04 07:56:22 UTC

svn commit: r895570 - in /incubator/libcloud/trunk: makedocs.sh setup.py

Author: pquerna
Date: Mon Jan  4 06:56:13 2010
New Revision: 895570

URL: http://svn.apache.org/viewvc?rev=895570&view=rev
Log:
Add apidocs command to setup.py

Removed:
    incubator/libcloud/trunk/makedocs.sh
Modified:
    incubator/libcloud/trunk/setup.py

Modified: incubator/libcloud/trunk/setup.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/setup.py?rev=895570&r1=895569&r2=895570&view=diff
==============================================================================
--- incubator/libcloud/trunk/setup.py (original)
+++ incubator/libcloud/trunk/setup.py Mon Jan  4 06:56:13 2010
@@ -44,6 +44,19 @@
         res = t.run(tests)
         sys.exit(not res.wasSuccessful())
 
+class ApiDocsCommand(Command):
+    user_options = [ ]
+
+    def initialize_options(self):
+        pass
+
+    def finalize_options(self):
+        pass
+
+    def run(self):
+        os.system('pydoctor --add-package=libcloud --project-name=libcloud --make-html    --project-url="http://incubator.apache.org/libcloud/"')
+
+
 setup(name = 'apache-libcloud',
       version = '0.1.1',
       description = 'A unified interface into many cloud server providers',
@@ -53,7 +66,7 @@
       package_dir = {'libcloud' : 'libcloud', 'libcloud.drivers': 'libcloud/drivers' },
       license = 'Apache License (2.0)',
       url = 'http://incubator.apache.org/libcloud/',
-      cmdclass = { 'test': TestCommand },
+      cmdclass = { 'test': TestCommand, 'apidocs': ApiDocsCommand },
       classifiers = [
 	        'Development Status :: 4 - Beta',
 	        'Environment :: Console',