Pyramid 1.3.1 released

54 views
Skip to first unread message

Chris McDonough

unread,
May 19, 2012, 9:35:37 AM5/19/12
to pylons-discuss
Pyramid 1.3.1 has been released. It is a maintenance release in the 1.3
series. Here's what happened since the last release:

1.3.1 (2012-05-19)
==================

Bug Fixes
---------

- Add ``REMOTE_ADDR`` to the ``prequest`` WSGI environ dict for
benefit of the debug toolbar, which effectively requires it to be
present to work properly.

- When an asset specification was used as a Mako ``renderer=``
argument and a ``mako.modules_directory`` was specified, Pyramid
would fail to render the template and instead would raise an error
when attempting to write the file to the modules directory.
Example symptom: ``WindowsError: [Error 267] The directory name is
invalid:

'c:\\docume~1\\chrism\\locals~1\\temp\\tmp9jtjix\\pyramid.tests:fixtures'``.
We now replace the colon in the Mako module filename with a dollar
sign, so it can work on Windows. See
https://github.com/Pylons/pyramid/issues/512 for more information.

- When no authentication policy was configured, a call to
``pyramid.security.effective_principals`` would unconditionally
return the empty list. This was incorrect, it should have
unconditionally returned ``[Everyone]``, and now does.

- Fix incompatibility with recently released zope.interface 4.0.
Symptom: ``TypeError: Class advice impossible in Python3. Use the
@provider class decorator instead.``

The documentation for the 1.3.1 release is available at
http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/

You can install 1.3.1 via PyPI:

easy_install Pyramid==1.3.1

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid/issues

Thanks!

- C

Angelo Hulshout

unread,
May 19, 2012, 4:56:33 PM5/19/12
to pylons-discuss
Thankis for that, Chris.

A few remarks though:

1) The package contains a directory name "Pyramid (with the leading
double quote), which blocks installation at least on Windows.
2) Creating a starter scaffold works fine, but running the tests
(setup.py test -q) fails on Python 3.2, because (even the latest)
zope.component uses old syntax ( name=u'' in a.o. interfaces.py).
Apart from that, running the scaffold's default server is no problem,
so unless I missed something a fix for Zope should solve all issues.

Angelo

On May 19, 3:35 pm, Chris McDonough <chr...@plope.com> wrote:
> Pyramid 1.3.1 has been released.  It is a maintenance release in the 1.3
> series.  Here's what happened since the last release:
>
>    1.3.1 (2012-05-19)
>    ==================
>
>    Bug Fixes
>    ---------
>
>    - Add ``REMOTE_ADDR`` to the ``prequest`` WSGI environ dict for
>      benefit of the debug toolbar, which effectively requires it to be
>      present to work properly.
>
>    - When an asset specification was used as a Mako ``renderer=``
>      argument and a ``mako.modules_directory`` was specified, Pyramid
>      would fail to render the template and instead would raise an error
>      when attempting to write the file to the modules directory.
>      Example symptom: ``WindowsError: [Error 267] The directory name is
>      invalid:
>
> 'c:\\docume~1\\chrism\\locals~1\\temp\\tmp9jtjix\\pyramid.tests:fixtures'`` .
>      We now replace the colon in the Mako module filename with a dollar
>      sign, so it can work on Windows. See
>      https://github.com/Pylons/pyramid/issues/512for more information.
>
>    - When no authentication policy was configured, a call to
>      ``pyramid.security.effective_principals`` would unconditionally
>      return the empty list.  This was incorrect, it should have
>      unconditionally returned ``[Everyone]``, and now does.
>
>    - Fix incompatibility with recently released zope.interface 4.0.
>      Symptom: ``TypeError: Class advice impossible in Python3. Use the
>      @provider class decorator instead.``
>
> The documentation for the 1.3.1 release is available athttp://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/

Chris McDonough

unread,
May 19, 2012, 6:31:48 PM5/19/12
to pylons-...@googlegroups.com
I'll investigate the packaging issue. Pyramid does not depend on zope.component though.

Angelo Hulshout <ang...@hulshout.nl> wrote:

>--
>You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
>To post to this group, send email to pylons-...@googlegroups.com.
>To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
>For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
>

Chris McDonough

unread,
May 19, 2012, 8:19:39 PM5/19/12
to pylons-...@googlegroups.com
On 05/19/2012 06:31 PM, Chris McDonough wrote:
> I'll investigate the packaging issue. Pyramid does not depend on zope.component though.

Pyramid 1.3.2 is out that hopefully corrects the packaging issue.

Angelo Hulshout

unread,
May 20, 2012, 2:07:08 AM5/20/12
to pylons-discuss
I'll try it later today and let you know whether it installs correctly
now.

As for the zope.component issue, I'll have another look at that as
well. Somehow (on Windows + Python 3.2), creating a start scaffold and
then running setup.py test -q results in the error below.

======================================================================
ERROR: test_my_view (speqs.tests.ViewTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "<mypath>\speqs\speqs\tests.py", line 7, in setUp
self.config = testing.setUp()
File "<mypath>\SpeqsToolProto1\lib\site-packages\pyramid-1.3.1-
py3.2.egg\pyramid\testing.py", line 830, in setUp
have_zca and hook_zca and config.hook_zca()
File "<mypath>\SpeqsToolProto1\lib\site-packages\pyramid-1.3.1-
py3.2.egg\pyramid\config\zca.py", line 12, in hook_zca
from zope.component import getSiteManager
File "<mypath>\SpeqsToolProto1\lib\site-packages
\zope.component-3.12.1-py3.2.egg\zope\component\__init__.py", line 21,
in <module>
from zope.component.interfaces import ComponentLookupError
File "<mypath>\SpeqsToolProto1\lib\site-packages
\zope.component-3.12.1-py3.2.egg\zope\component\interfaces.py", line
115
interface=Interface, name=u'',
^
SyntaxError: invalid syntax

----------------------------------------------------------------------
Ran 1 test in 0.062s

FAILED (errors=1)

Process finished with exit code 1
> >>>      https://github.com/Pylons/pyramid/issues/512formore information.

Chris McDonough

unread,
May 20, 2012, 3:34:32 AM5/20/12
to pylons-...@googlegroups.com
Thank you. When I get free I'll try to reproduce.

Angelo Hulshout

unread,
May 20, 2012, 8:51:52 AM5/20/12
to pylons-discuss
I did a quick experiment. When zope.component is not installed, the
test works fine, when it is installed, it seems zope.interface tries
to use it (instead of whatever approach it uses otherwise - I am no
zope expert).

Angelo
Reply all
Reply to author
Forward
0 new messages