More tweaks, finally getting the hang of Sphinx
authorSalim Fadhley <sal@stodge.org>
Mon, 9 Jan 2012 17:20:33 +0000 (17:20 +0000)
committerSalim Fadhley <sal@stodge.org>
Mon, 9 Jan 2012 17:20:33 +0000 (17:20 +0000)
doc/run_epydoc.py [deleted file]
doc/source/conf.py
doc/source/index.rst
setup.py
setup_config.py [new file with mode: 0644]

diff --git a/doc/run_epydoc.py b/doc/run_epydoc.py
deleted file mode 100644 (file)
index aeb8556..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-import os, sys\r
-\r
-try:\r
-    from epydoc.cli import cli\r
-except ImportError:\r
-    from pkg_resources import require\r
-    require("epydoc>=3.0.1")\r
-    from epydoc.cli import cli\r
-    \r
-DOC_DIR, _ = os.path.split( os.path.abspath( __file__ ) )\r
-PROJECT_DIR, _ = os.path.split( DOC_DIR )\r
-\r
-sys.path.insert( 0, PROJECT_DIR )\r
-    \r
-cli()
\ No newline at end of file
index d4ce6e0c6d9aba866a4f0262fb9287363c52a436..c4e7d2773120d3b5e7a8c7ec80d73edd4ced7f3a 100644 (file)
@@ -22,6 +22,9 @@ PROJECT_DIR, _ = os.path.split( DOC_DIR )
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 sys.path.insert(0, PROJECT_DIR )
 
+#Sanity check
+import jenkinsapi
+
 # Config file
 import setup_config as jenkinsapi_setup_config
 
@@ -77,7 +80,7 @@ exclude_patterns = []
 #default_role = None
 
 # If true, '()' will be appended to :func: etc. cross-reference text.
-#add_function_parentheses = True
+add_function_parentheses = True
 
 # If true, the current module name will be prepended to all description
 # unit titles (such as .. function::).
@@ -85,7 +88,7 @@ exclude_patterns = []
 
 # If true, sectionauthor and moduleauthor directives will be shown in the
 # output. They are ignored by default.
-#show_authors = False
+show_authors = True
 
 # The name of the Pygments (syntax highlighting) style to use.
 pygments_style = 'sphinx'
index 66f59d91854a362f28102b084095885f709a56d5..848f6275c9c895716f3b1eb9d8d6f9659b6cb2e5 100644 (file)
@@ -3,14 +3,20 @@
    You can adapt this file completely to your liking, but it should at least
    contain the root `toctree` directive.
 
-Welcome to  JenkinsAPI's documentation!
-=======================================
+Welcome to the JenkinsAPI project documentation
+===============================================
 
 Contents:
 
 .. toctree::
    :maxdepth: 2
 
+.. automodule:: jenkinsapi
+   :members:
+   
+.. automodule:: jenkinsapi.api
+   :members:
+   
 
 
 Indices and tables
index 44618bdbf2f9189a4687131a4ef4c04456d9a768..6fccfcef362af3003823667fd429b2053825a1d5 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,28 +1,16 @@
 from setuptools import setup, find_packages
 import sys, os
+from setup_config import DESCRIPTION, VERSION, PROJECT_NAME, PROJECT_AUTHORS, GLOBAL_ENTRY_POINTS, PROJECT_EMAILS, PROJECT_URL, SHORT_DESCRIPTION
 
-# Use the README file as the long-description for the project. 
-# This makes sure that the PyPi index page contains automatically
-# generated documentation.
-PROJECT_ROOT, _ = os.path.split(__file__) 
-DESCRIPTION = open( os.path.join(PROJECT_ROOT, "README") ).read()
-VERSION = REVISION = '0.1.1'
-PROJECT_NAME = 'jenkinsapi'
-PROJECT_AUTHORS = "Salim Fadhley, Ramon van Alteren"
-
-GLOBAL_ENTRY_POINTS = {
-        "console_scripts":[ "jenkins_invoke=jenkinsapi.command_line.jenkins_invoke:main"]
-        }
-
-setup(name=PROJECT_NAME,
+setup(name=PROJECT_NAME.lower(),
       version=VERSION,
       author=PROJECT_AUTHORS,
-      author_email='salimfadhley@gmail.com, ramon@vanalteren.nl',
+      author_email=PROJECT_EMAILS,
       packages=find_packages('.'),
       zip_safe=True,
       include_package_data = False,
       entry_points = GLOBAL_ENTRY_POINTS,
-      url="https://github.com/salimfadhley/jenkinsapi",
-      description='A Python API for accessing resources on a Jenkins continuous-integration server.',
+      url=PROJECT_URL,
+      description=SHORT_DESCRIPTION,
       long_description=DESCRIPTION,
       )
diff --git a/setup_config.py b/setup_config.py
new file mode 100644 (file)
index 0000000..fc1daa4
--- /dev/null
@@ -0,0 +1,18 @@
+from setuptools import setup, find_packages\r
+import sys, os\r
+\r
+# Use the README file as the long-description for the project. \r
+# This makes sure that the PyPi index page contains automatically\r
+# generated documentation.\r
+PROJECT_ROOT, _ = os.path.split(__file__) \r
+DESCRIPTION = open( os.path.join(PROJECT_ROOT, "README") ).read()\r
+VERSION = REVISION = '0.1.1'\r
+PROJECT_NAME = 'JenkinsAPI'\r
+PROJECT_AUTHORS = "Salim Fadhley, Ramon van Alteren, Ruslan Lutsenko"\r
+PROJECT_EMAILS = 'salimfadhley@gmail.com, ramon@vanalteren.nl, ruslan.lutcenko@gmail.com',\r
+PROJECT_URL = "https://github.com/salimfadhley/jenkinsapi"\r
+SHORT_DESCRIPTION = 'A Python API for accessing resources on a Jenkins continuous-integration server.'\r
+\r
+GLOBAL_ENTRY_POINTS = {\r
+        "console_scripts":[ "jenkins_invoke=jenkinsapi.command_line.jenkins_invoke:main"]\r
+        }
\ No newline at end of file