Giter VIP home page Giter VIP logo

pyramid_zcml's Introduction

pyramid_zcml's People

Contributors

blaflamme avatar digitalresistor avatar fschulze avatar huubbouma avatar mcdonc avatar mmerickel avatar stevepiercy avatar timgates42 avatar tseaver avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyramid_zcml's Issues

tox.ini should use pip to install package

The current method of using python setup.py develop means you have to re-create the tox environment before you can re-run tests otherwise you get a nasty-gram about the Egg-link not being in the right location or something along those lines.

AssertionError: Egg-link /Users/xistence/Projects/pyramid_zcml does not match installed location of pyramid-zcml (at /Users/xistence/Projects/pyramid_zcml/.tox/py26/lib/python2.6/site-packages)

xhr defaulting to False for views and routes

In both view() and route(), the xhr argument defaults to False.
This has the undesirable effect that XHR requests will never match a view (and I suppose also a route, but I always use traversal instead of routes) that doesn't specify the xhr predicate.
I think xhr should default to None instead.

pip no longer installs in Python 3.2

/Users/xistence/.ve/pyramid_zcml/lib/python3.5/site-packages/virtualenv_support/pip-8.0.0-py2.py3-none-any.whl/pip/_vendor/pkg_resources/__init__.py:87: UserWarning: Support for Python 3.0-3.2 has been dropped. Future versions will fail here.

This means that currently tox will fail on Python 3.2 runs. Removal of Python 3.2 support recommended.

testing fails with pyramid 1.6

Here's an excerpt:

[ 16s] FAIL: test_it (pyramid_zcml.tests.test_units.TestAssetDirective)
[ 16s] ----------------------------------------------------------------------
[ 16s] Traceback (most recent call last):
[ 16s] File "/home/abuild/rpmbuild/BUILD/pyramid_zcml-1.0.0/pyramid_zcml/tests/test_units.py", line 653, in test_it
[ 16s] 'fixtureapp/')])
[ 16s] AssertionError: Lists differ: [(<module 'pyramid_zcml.tests'... != [(<module 'pyramid_zcml.tests'...

Also, PyPI points to non existing doc. BTW, PyPI points to version 1.0.0, while this repo still has 0.9.2 as the latest release...

view configuration doesn't support match_param

Declarative view configuration with pyramid_zcml doesn't seem to support match_param. Also, the imperative way accepts either a string or a tuple for match_param. Can that be done with ZCML?

ZCML files are not installed

$ pip install git+git://github.com/Pylons/pyramid_zcml.git
Downloading/unpacking git+git://github.com/Pylons/pyramid_zcml.git
  Cloning git://github.com/Pylons/pyramid_zcml.git to /var/folders/6h/f70v1__j0md83g1_xsb6qb240000gn/T/pip-3v2kr8-build
  Running setup.py egg_info for package from git+git://github.com/Pylons/pyramid_zcml.git

Requirement already up-to-date: pyramid>=1.4dev in ./environment/lib/python3.3/site-packages/pyramid-1.4-py3.3.egg (from pyramid-zcml==1.0dev)
Requirement already up-to-date: zope.configuration>=3.8.0dev in ./environment/lib/python3.3/site-packages (from pyramid-zcml==1.0dev)
Requirement already up-to-date: distribute in ./environment/lib/python3.3/site-packages/distribute-0.6.34-py3.3.egg (from pyramid>=1.4dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: Chameleon>=1.2.3 in ./environment/lib/python3.3/site-packages/Chameleon-2.11-py3.3.egg (from pyramid>=1.4dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: Mako>=0.3.6 in ./environment/lib/python3.3/site-packages/Mako-0.7.3-py3.3.egg (from pyramid>=1.4dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: WebOb>=1.2b3 in ./environment/lib/python3.3/site-packages/WebOb-1.2.3-py3.3.egg (from pyramid>=1.4dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: repoze.lru>=0.4 in ./environment/lib/python3.3/site-packages/repoze.lru-0.6-py3.3.egg (from pyramid>=1.4dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: zope.interface>=3.8.0 in ./environment/lib/python3.3/site-packages (from pyramid>=1.4dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: zope.deprecation>=3.5.0 in ./environment/lib/python3.3/site-packages/zope.deprecation-4.0.2-py3.3.egg (from pyramid>=1.4dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: venusian>=1.0a3 in ./environment/lib/python3.3/site-packages/venusian-1.0a7-py3.3.egg (from pyramid>=1.4dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: translationstring>=0.4 in ./environment/lib/python3.3/site-packages/translationstring-1.1-py3.3.egg (from pyramid>=1.4dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: PasteDeploy>=1.5.0 in ./environment/lib/python3.3/site-packages/PasteDeploy-1.5.0-py3.3.egg (from pyramid>=1.4dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: zope.i18nmessageid in ./environment/lib/python3.3/site-packages (from zope.configuration>=3.8.0dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: zope.schema in ./environment/lib/python3.3/site-packages (from zope.configuration>=3.8.0dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: MarkupSafe>=0.9.2 in ./environment/lib/python3.3/site-packages/MarkupSafe-0.15-py3.3-macosx-10.8-x86_64.egg (from Mako>=0.3.6->pyramid>=1.4dev->pyramid-zcml==1.0dev)
Requirement already up-to-date: zope.event in ./environment/lib/python3.3/site-packages (from zope.schema->zope.configuration>=3.8.0dev->pyramid-zcml==1.0dev)
Installing collected packages: pyramid-zcml
  Running setup.py install for pyramid-zcml

Successfully installed pyramid-zcml
Cleaning up...
$ ls environment/lib/python3.3/site-packages/pyramid_zcml
__init__.py __pycache__ _compat.py  scaffolds   tests
$ pserve configuration/development.ini
Traceback (most recent call last):
  File "/Users/msiedlarek/Projects/someproject/environment/lib/python3.3/site-packages/zope/configuration/xmlconfig.py", line 272, in endElementNS
    self.context.end()
  File "/Users/msiedlarek/Projects/someproject/environment/lib/python3.3/site-packages/zope/configuration/config.py", line 345, in end
    self.stack.pop().finish()
  File "/Users/msiedlarek/Projects/someproject/environment/lib/python3.3/site-packages/zope/configuration/config.py", line 453, in finish
    actions = self.handler(context, **args)
  File "/Users/msiedlarek/Projects/someproject/environment/lib/python3.3/site-packages/zope/configuration/xmlconfig.py", line 395, in include
    with openInOrPlain(path) as f:
  File "/Users/msiedlarek/Projects/someproject/environment/lib/python3.3/site-packages/zope/configuration/xmlconfig.py", line 309, in openInOrPlain
    return open(filename)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/msiedlarek/Projects/someproject/environment/lib/python3.3/site-packages/pyramid_zcml/configure.zcml'

Drop/Bump Python version support

Should support for Python:

  1. 2.7 be dropped?
  2. 3.4 be dropped?
  3. 3.7 be added?
  4. 3.8 be added?

Originally posted by @fschulze in #29 (comment)

There have been changes to zope.interface and zope.schema 6.0.0 dropped Python 3.4 support, maybe zope.interface needs to be pinned for 3.4 because of that.

docs: "Changing the Renderer Globals Factory via ZCML" obsolete?

I tried building the docs, but an error was emitted:

/Users/stevepiercy/projects/pyramid_zcml/docs/narr.rst:1446: WARNING: undefined label: adding_renderer_globals (if the link has no caption the label must precede a section header)

See relevant rst code at https://github.com/Pylons/pyramid_zcml/blame/master/docs/narr.rst#L1430-L1446

The label adding_renderer_globals no longer exists in Pyramid docs as of commit Pylons/pyramid@c6601f7#diff-91d7abb5c8357ac633f078331ee230f0L426

So this section in the docs should be revised, but it's beyond my technical knowledge to write up something worthy.

No module named script.template with Pyramid 1.3

Errors:

File "/[snip]/python2.7/site-packages/pyramid_zcml-0.8-py2.7.egg/pyramid_zcml/__init__.py", line 5, in <module>
    from paste.script.templates import Template
ImportError: No module named script.templates

Steps to reproduce:

  1. Create a new virtualenv and generate new pyramid application.
  2. Follow the instructions in pyramid_zcml documentation.
  3. pserve development.ini
  4. Oops!

Since Pyramid 1.3 no longer have PasteScript as dependency yet pyramid_zcml is still using it thus the error after doing python setup.py in a clean environment. I know this is solvable by install PasteScript by myself, but since the requirement is missing from pyramid_zcml, I guess this is a bug.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.