Ned Batchelder avatar Ned Batchelder committed df98f5b

Put __version__ back in the main file, and also put the URL in only one place, use it everywhere.

Comments (0)

Files changed (6)


-from coverage.version import __version__
+__version__ = "3.1b1"    # see detailed history in CHANGES.txt
+__url__ = ""
 from coverage.control import coverage
 from import CoverageData
 from coverage.cmdline import main, CoverageScript
 """HTML reporting for Coverage."""
 import keyword, os, re, token, tokenize, shutil
-from coverage import __version__    # pylint: disable-msg=W0611
+from coverage import __url__, __version__    # pylint: disable-msg=W0611
 from coverage.backward import StringIO   # pylint: disable-msg=W0622
 from import Reporter
 from coverage.templite import Templite


 <div id='footer'>
     <div class='content'>
-            <a class='nav' href=''>coverage v{{__version__}}</a>
+            <a class='nav' href='{{__url__}}'> v{{__version__}}</a>


-""" version number."""
-# Because this file is imported by, which must run unchanged in both
-# Python 2.x and 3.x, this file must be kept simple enough to run under both.
-__version__ = "3.1b1"    # see detailed history in CHANGES.txt


 import os, sys
 import xml.dom.minidom
-from coverage import __version__
+from coverage import __url__, __version__
 from coverage.backward import sorted            # pylint: disable-msg=W0622
 from import Reporter
         root = self.xml_out.documentElement
-            " Generated by %s: "
-            " " % __version__
+            " Generated by %s: %s " % (__version__, __url__)
         packageXml = self.xml_out.createElement("packages")
 # Get or massage our metadata.
-from coverage.version import __version__
+from coverage import __url__, __version__
 doclines = __doc__.split('\n')
     keywords = 'code coverage testing',
     license = 'BSD',
     classifiers = classifier_list,
-    url = '',
+    url = __url__,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.