Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
- Added missing install dependencies and test dependencies.
Browse files Browse the repository at this point in the history
- Fixed tests to run with current package versions.
  • Loading branch information
Michael Howitz committed Aug 10, 2010
1 parent 48d972d commit 4cadc86
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 13 deletions.
9 changes: 9 additions & 0 deletions CHANGES.txt
Expand Up @@ -2,6 +2,15 @@
CHANGES
=======

0.2.0 (unreleased)
------------------

- Added missing install dependencies and test dependencies.

- Fixed tests to run with current package versions.



0.1.0 (2008-02-15)
------------------

Expand Down
10 changes: 8 additions & 2 deletions setup.py
Expand Up @@ -57,15 +57,21 @@ def read(*rnames):
extras_require = dict(
test = [
'zope.app.testing',
'zope.principalannotation',
'zope.copypastemove',
'zope.app.container',
'zope.app.folder',
],
),
install_requires = [
'setuptools',
'z3c.rml',
'zope.interface',
'zope.app.pagetemplate',
'zope.app.publisher',
'zope.component',
'zope.schema',
'zope.interface',
'zope.publisher',
'zope.schema',
],
zip_safe = False,
)
6 changes: 3 additions & 3 deletions src/z3c/pdftemplate/README.txt
Expand Up @@ -13,7 +13,7 @@ below.

But first we have to load the directives' meta configuration:

>>> from zope.app import zapi
>>> import zope.component
>>> from zope.publisher.browser import TestRequest
>>> from zope.configuration import xmlconfig
>>> context = xmlconfig.file('meta.zcml', package=z3c.pdftemplate)
Expand Down Expand Up @@ -122,8 +122,8 @@ we can can look up the view
>>> request = TestRequest()
>>> request.setPrincipal(Principal())

>>> contents = zapi.getMultiAdapter((folder, request),
... name="rmlsample.pdf")
>>> contents = zope.component.getMultiAdapter((folder, request),
... name="rmlsample.pdf")

and create the PDF:

Expand Down
17 changes: 9 additions & 8 deletions src/z3c/pdftemplate/tests.py
Expand Up @@ -17,24 +17,25 @@
$Id$
"""
__docformat__ = "reStructuredText"
import unittest
import zope.component

from zope.testing import doctest, doctestunit
from zope.app import principalannotation
from zope.copypastemove import PrincipalClipboard
from zope.app.testing import placelesssetup, setup, ztapi
from zope.copypastemove import PrincipalClipboard
from zope.testing import doctest, doctestunit
import unittest
import zope.component
import zope.principalannotation.interfaces
import zope.principalannotation.utility


def setUp(test):
placelesssetup.setUp(test)
setup.setUpTraversal()

zope.component.provideUtility(
principalannotation.PrincipalAnnotationUtility(),
principalannotation.IPrincipalAnnotationUtility)
zope.principalannotation.utility.PrincipalAnnotationUtility(),
zope.principalannotation.interfaces.IPrincipalAnnotationUtility)
zope.component.provideAdapter(
principalannotation.annotations,
zope.principalannotation.utility.annotations,
adapts=(None,))
zope.component.provideAdapter(
PrincipalClipboard)
Expand Down

0 comments on commit 4cadc86

Please sign in to comment.