Many changes to aid doc-building & release process.
authorsalimfadhley <sal@stodge.org>
Wed, 30 May 2012 23:47:49 +0000 (00:47 +0100)
committersalimfadhley <sal@stodge.org>
Wed, 30 May 2012 23:47:49 +0000 (00:47 +0100)
build.xml
doc/source/conf.py
jenkinsapi/.gitignore [new file with mode: 0644]
setup.py

index 07d3bd24174f0d99eb534ba60c004d8827694631..3a2c96ed1ff6d53e89d29d83fd6235e5f993138d 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -15,7 +15,7 @@
                </delete>
        </target>
 
-       <target name="compile" depends="sdist,bdist_egg_26,bdist_egg_27" />
+       <target name="compile" depends="sdist,bdist_egg_27" />
 
        <target name="sdist">
                <exec executable="python">
index a1b2307e133a94e78a0050cca3b0c99aedb89936..25dd1d69ff1bf4e396c44853213cca5242b813d4 100644 (file)
 # 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 -----------------------------------------------------
 
@@ -53,16 +59,16 @@ master_doc = 'index'
 
 # 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.
diff --git a/jenkinsapi/.gitignore b/jenkinsapi/.gitignore
new file mode 100644 (file)
index 0000000..225fc6f
--- /dev/null
@@ -0,0 +1 @@
+/__pycache__
index eeecb613fd14a5eaa29a84fb81af466f16580a63..18179a7aceaf38b6a0f6ad7593b9703a9fe3adce 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup
 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'