From 896dd364d530e558c53d810e5f1a9606d3d72e98 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 20 Aug 2010 14:36:33 -0400 Subject: Get ready to have version-specific doc URLs. --- Makefile | 6 ++++++ coverage/__init__.py | 2 +- test/farm/html/gold_x_xml/coverage.xml | 2 +- test/farm/html/gold_y_xml_branch/coverage.xml | 2 +- test/farm/html/run_a_xml_1.py | 1 + test/farm/html/run_a_xml_2.py | 1 + test/farm/html/run_y_xml_branch.py | 1 + 7 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 213e69b8..ce84d701 100644 --- a/Makefile +++ b/Makefile @@ -85,3 +85,9 @@ publish: cp doc/_build/px/*.px $(WEBHOME) rm -f $(WEBHOME)/sample_html/*.* cp doc/sample_html/*.* $(WEBHOME)/sample_html + +publishbeta: + rm -f $(WEBHOME)/beta/*.px + cp doc/_build/px/*.px $(WEBHOME)/beta + rm -f $(WEBHOME)/beta/sample_html/*.* + cp doc/sample_html/*.* $(WEBHOME)/beta/sample_html diff --git a/coverage/__init__.py b/coverage/__init__.py index 4330aea3..1a58a8aa 100644 --- a/coverage/__init__.py +++ b/coverage/__init__.py @@ -7,7 +7,7 @@ http://nedbatchelder.com/code/coverage __version__ = "3.4b1" # see detailed history in CHANGES.txt -__url__ = "http://nedbatchelder.com/code/coverage" +__url__ = "http://nedbatchelder.com/code/coverage/" + __version__ from coverage.control import coverage, process_startup from coverage.data import CoverageData diff --git a/test/farm/html/gold_x_xml/coverage.xml b/test/farm/html/gold_x_xml/coverage.xml index 37027efb..c42e2c9f 100644 --- a/test/farm/html/gold_x_xml/coverage.xml +++ b/test/farm/html/gold_x_xml/coverage.xml @@ -2,7 +2,7 @@ - + diff --git a/test/farm/html/gold_y_xml_branch/coverage.xml b/test/farm/html/gold_y_xml_branch/coverage.xml index 96459101..9a3efca2 100644 --- a/test/farm/html/gold_y_xml_branch/coverage.xml +++ b/test/farm/html/gold_y_xml_branch/coverage.xml @@ -2,7 +2,7 @@ - + diff --git a/test/farm/html/run_a_xml_1.py b/test/farm/html/run_a_xml_1.py index 7f4805ef..da7b8894 100644 --- a/test/farm/html/run_a_xml_1.py +++ b/test/farm/html/run_a_xml_1.py @@ -16,5 +16,6 @@ runfunc(html_it, rundir="src") compare("gold_x_xml", "xml_1", scrubs=[ (r' timestamp="\d+"', ' timestamp="TIMESTAMP"'), (r' version="[-.\w]+"', ' version="VERSION"'), + (r'/code/coverage/[-.\w]+', '/code/coverage/VER'), ]) clean("xml_1") diff --git a/test/farm/html/run_a_xml_2.py b/test/farm/html/run_a_xml_2.py index b08d7960..da907d41 100644 --- a/test/farm/html/run_a_xml_2.py +++ b/test/farm/html/run_a_xml_2.py @@ -16,5 +16,6 @@ runfunc(html_it, rundir="src") compare("gold_x_xml", "xml_2", scrubs=[ (r' timestamp="\d+"', ' timestamp="TIMESTAMP"'), (r' version="[-.\w]+"', ' version="VERSION"'), + (r'/code/coverage/[-.\w]+', '/code/coverage/VER'), ]) clean("xml_2") diff --git a/test/farm/html/run_y_xml_branch.py b/test/farm/html/run_y_xml_branch.py index 46f426d3..be87c060 100644 --- a/test/farm/html/run_y_xml_branch.py +++ b/test/farm/html/run_y_xml_branch.py @@ -16,5 +16,6 @@ runfunc(xml_it, rundir="src") compare("gold_y_xml_branch", "xml_branch", scrubs=[ (r' timestamp="\d+"', ' timestamp="TIMESTAMP"'), (r' version="[-.\w]+"', ' version="VERSION"'), + (r'/code/coverage/[-.\w]+', '/code/coverage/VER'), ]) clean("xml_branch") -- cgit v1.2.1