[Checkins] [zopefoundation/z3c.template] 5a86fb: Rename .txt -> .rst
GitHub
noreply at github.com
Mon Oct 16 16:19:18 CEST 2017
Branch: refs/heads/py36
Home: https://github.com/zopefoundation/z3c.template
Commit: 5a86fbfdb912162091c79c2f9664cf9e0ba60077
https://github.com/zopefoundation/z3c.template/commit/5a86fbfdb912162091c79c2f9664cf9e0ba60077
Author: Jason Madden <jamadden at gmail.com>
Date: 2017-10-16 (Mon, 16 Oct 2017)
Changed paths:
A CHANGES.rst
R CHANGES.txt
M MANIFEST.in
A README.rst
R README.txt
M setup.py
A src/z3c/template/README.rst
R src/z3c/template/README.txt
M src/z3c/template/tests.py
A src/z3c/template/zcml.rst
R src/z3c/template/zcml.txt
Log Message:
-----------
Rename .txt -> .rst
Commit: 04eaf59dd8b590099aae7e4af87793f1fb7a2717
https://github.com/zopefoundation/z3c.template/commit/04eaf59dd8b590099aae7e4af87793f1fb7a2717
Author: Jason Madden <jamadden at gmail.com>
Date: 2017-10-16 (Mon, 16 Oct 2017)
Changed paths:
M .gitignore
M .travis.yml
M CHANGES.rst
M setup.py
M src/z3c/__init__.py
M tox.ini
Log Message:
-----------
Add 3.4/5/6, remove 3.3, 2.6. Metadata only---tests do not pass for any version.
The error is:
```
Failure in test //z3c.template/.tox/py27/lib/python2.7/site-packages/z3c/template/README.rst
Failed doctest test for README.rst
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/z3c/template/README.rst", line 0
----------------------------------------------------------------------
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/z3c/template/README.rst", line 367, in README.rst
Failed example:
print(factory(view, request)())
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest README.rst[77]>", line 1, in <module>
print(factory(view, request)())
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/z3c/template/template.py", line 47, in __call__
result = self.wrapper(**kwargs)
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/zope/pagetemplate/pagetemplate.py", line 110, in __call__
return self.pt_render(self.pt_getContext(args, kwargs))
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/zope/pagetemplate/pagetemplate.py", line 128, in pt_render
raise PTRuntimeError(str(self._v_errors))
- Warning: Compilation failed
- Warning: exceptions.AttributeError: 'NoneType' object has no attribute 'rfind'
PTRuntimeError: ['Compilation failed', "exceptions.AttributeError: 'NoneType' object has no attribute 'rfind'"]
```
Debugging in zope.pagetemplate reveals the traceback:
```
Running zope.testrunner.layer.UnitTests tests:
Set up zope.testrunner.layer.UnitTests in 0.000 seconds.
Traceback (most recent call last):
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/zope/pagetemplate/pagetemplate.py", line 229, in _cook
source_file, self._text, pt_engine, self.content_type)
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/z3c/ptcompat/engine.py", line 52, in cook
text, filename=source_file, keep_body=True,
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/chameleon/zpt/template.py", line 192, in __init__
super(PageTemplate, self).__init__(body, **config)
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/chameleon/template.py", line 116, in __init__
self.write(body)
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/chameleon/template.py", line 209, in write
self.cook(body)
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/chameleon/template.py", line 145, in cook
digest = self.digest(body, names)
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/chameleon/zpt/template.py", line 304, in digest
hex = super(PageTemplate, self).digest(body, names)
File "//z3c.template/.tox/py27/lib/python2.7/site-packages/chameleon/template.py", line 246, in digest
digest = os.path.splitext(self.filename)[0] + '-' + digest
File "//z3c.template/.tox/py27/bin/../lib/python2.7/posixpath.py", line 98, in splitext
return genericpath._splitext(p, sep, altsep, extsep)
File "//z3c.template/.tox/py27/bin/../lib/python2.7/genericpath.py", line 99, in _splitext
sepIndex = p.rfind(sep)
AttributeError: 'NoneType' object has no attribute 'rfind'
```
This appears to be an error in z3c.ptcompat.
Compare: https://github.com/zopefoundation/z3c.template/compare/5a86fbfdb912^...04eaf59dd8b5
More information about the checkins
mailing list