diff --git a/.travis.yml b/.travis.yml index 6bededb8..d5365b92 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,10 @@ language: python python: - - 2.6 - 2.7 install: - - pip install -r requirements_dev.txt --use-mirrors + - pip install -r requirements_dev.txt - python setup.py install script: python setup.py test diff --git a/doc/sitemap_gen.py b/doc/sitemap_gen.py index e270a39d..fa6a01f8 100755 --- a/doc/sitemap_gen.py +++ b/doc/sitemap_gen.py @@ -2020,6 +2020,9 @@ def OpenFileForRead(path, logtext): def TimestampISO8601(t): """Seconds since epoch (1970-01-01) --> ISO 8601 time string.""" + sde = int(os.environ.get('SOURCE_DATE_EPOCH', time.time())) + if t > sde: + t = sde return time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime(t)) #end def TimestampISO8601 diff --git a/tests/004-test-client.py b/tests/004-test-client.py index bff92b1e..d75a1712 100644 --- a/tests/004-test-client.py +++ b/tests/004-test-client.py @@ -112,7 +112,7 @@ def test_006(u, c): t.eq(r.body_string(), "ok") -@t.client_request('http://e-engura.com/images/logo.gif') +@t.client_request('http://www.lsmod.de/~bernhard/mirror/e-engura.com/images/logo.gif') def test_007(u, c): r = c.request(u) print r.status @@ -124,7 +124,7 @@ def test_007(u, c): t.eq(imghdr.what(fname), 'gif') -@t.client_request('http://e-engura.com/images/logo.gif') +@t.client_request('http://www.lsmod.de/~bernhard/mirror/e-engura.com/images/logo.gif') def test_008(u, c): r = c.request(u) t.eq(r.status_int, 200)