# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os
+import sys, os, logging
+import pkg_resources
-DOC_SRC_DIR, _ = os.path.split( os.path.abspath( __file__ ))
-DOC_DIR, _ = os.path.split( DOC_SRC_DIR )
-PROJECT_DIR, _ = os.path.split( DOC_DIR )
+if __name__ == "__main__":
+ logging.basicConfig()
-# If extensions (or modules to document with autodoc) are in another directory,
-# add these directories to sys.path here. If the directory is relative to the
-# documentation root, use os.path.abspath to make it absolute, like shown here.
-sys.path.insert(0, PROJECT_DIR )
+log = logging.getLogger(__name__)
+# CHANGE THIS
+VERSION = REVISION = '0.1.7'
+PROJECT_NAME = 'JenkinsAPI'
+PROJECT_AUTHORS = "Salim Fadhley, Ramon van Alteren, Ruslan Lutsenko"
+PROJECT_EMAILS = 'salimfadhley@gmail.com, ramon@vanalteren.nl, ruslan.lutcenko@gmail.com'
+PROJECT_URL = "https://github.com/salimfadhley/jenkinsapi"
+SHORT_DESCRIPTION = 'A Python API for accessing resources on a Jenkins continuous-integration server.'
+# CHANGE THIS
+
+REQUIRE_STRING = "%s==%s" % (PROJECT_NAME.lower(), VERSION)
+
+pkg_resources.require(REQUIRE_STRING)
+distrib = pkg_resources.get_distribution(REQUIRE_STRING)
#Sanity check
import jenkinsapi
-import examples
-import jenkinsapi_tests
-# Config file
-import setup_config as jenkinsapi_setup_config
# -- General configuration -----------------------------------------------------
# General information about the project.
project = u' JenkinsAPI'
-copyright = u'2012, %s' % jenkinsapi_setup_config.PROJECT_AUTHORS
+copyright = u'2012, %s' % PROJECT_AUTHORS
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
-version = jenkinsapi_setup_config.VERSION
+version = VERSION
# The full version, including alpha/beta/rc tags.
-release = jenkinsapi_setup_config.REVISION
+release = REVISION
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
import os
PROJECT_ROOT, _ = os.path.split(__file__)
-VERSION = REVISION = '0.1.6'
+VERSION = REVISION = '0.1.7'
PROJECT_NAME = 'JenkinsAPI'
PROJECT_AUTHORS = "Salim Fadhley, Ramon van Alteren, Ruslan Lutsenko"
PROJECT_EMAILS = 'salimfadhley@gmail.com, ramon@vanalteren.nl, ruslan.lutcenko@gmail.com'