remove Paste + add python3 support

25 views
Skip to first unread message

Jan-Jaap Driessen

unread,
Oct 7, 2012, 9:43:23 AM10/7/12
to fans...@googlegroups.com
Hi all,

Based on Alex's pull request for adding python3 support [1] I have
first added tox [2] to the default branch of fanstatic [3] in order to
run tests on both python2 and python3.

The dependency on Paste needed to be removed, because Paste won't be
ported to python3. I replaced Paste with some code backed by
webob.static. I released this as version 0.14a [4] and would like to
invite you to try it out and send your feedback. I would especially
appreciate a peer review of the changes in this changeset [5]; I want
to be sure we are not exposing the filesystem through malicious URLs.

I asked Alex to continue his work on the python3 compatibility of
fanstatic, as I am not fully up to date on writing python3 compatible
code.

One more thing about the changes in v0.14a:

The publisher no longer sends out etags, which seems like a good idea.
The Yahoo best practices for speeding up web sites [6] say:

If you're not taking advantage of the flexible validation model
that ETags provide, it's better to just remove the ETag altogether.

Cheers,

Jan-Jaap

1) https://bitbucket.org/fanstatic/fanstatic/pull-request/9/refactored-code-to-be-python-3-compatible
2) http://tox.testrun.org/latest/
3) https://bitbucket.org/fanstatic/fanstatic/changeset/0f37c2840d9020516027090864356e138692d8cc
4) http://pypi.python.org/pypi/fanstatic/0.14a
5) https://bitbucket.org/fanstatic/fanstatic/changeset/b21524786c1aa78a568bcaf7548b8156406d18c3#chg-fanstatic/publisher.py
6) http://developer.yahoo.com/performance/rules.html
Reply all
Reply to author
Forward
0 new messages