added documentation about getting version info
authorSalim Fadhley <sal@stodge.org>
Wed, 5 Feb 2014 20:41:50 +0000 (20:41 +0000)
committerSalim Fadhley <sal@stodge.org>
Wed, 5 Feb 2014 20:41:50 +0000 (20:41 +0000)
README.rst

index 6853a83c5c2063fdd753958f32e8a99db3fc8ac3..91371b96934555a7a2a81bc872652818c3b5504d 100644 (file)
@@ -118,8 +118,6 @@ missing test dependencies:
         source .venv/bin/active
         (venv) python setup.py test
 
-
-
 Project Contributors
 --------------------
 
@@ -137,6 +135,21 @@ Project Contributors
 
 Please do not contact these contributors directly for support questions! Use the GitHub tracker instead.
 
+Tips & Tricks
+-------------
+
+Getting the installed version of JenkinsAPI
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. code-block:: bash
+               pip install pkginfo
+               python
+
+
+.. code-block:: pythin
+               from pkginfo import get_metadata
+               print get_metadata('jenkinsapi').version
+
 License
 --------