Skip to content

Commit

Permalink
more package layout
Browse files Browse the repository at this point in the history
  • Loading branch information
goschtl committed Dec 15, 2010
1 parent 394f14e commit 57597b6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 115 deletions.
72 changes: 2 additions & 70 deletions buildout.cfg
Original file line number Diff line number Diff line change
@@ -1,85 +1,17 @@
[buildout]
extends = http://svn.zope.org/repos/main/groktoolkit/trunk/grok.cfg
parts =
docs
interpreter
grokwiki
mkdirs
test
zpasswd
zope_conf site_zcml deploy_ini debug_ini
develop =
.
grokdocs
grokwiki
versions = versions
extensions = buildout.dumppickedversions
mr.developer
auto-checkout = grokcore.site

[sources]
grokcore.site = svn http://svn.zope.org/repos/main/grokcore.site/trunk

[versions]
grok =

[docs]
recipe = z3c.recipe.scripts
eggs = grokdocs

[interpreter]
recipe = z3c.recipe.scripts
eggs = grokwiki
zest.releaser
interpreter = grokpy

[grokwiki]
recipe = z3c.recipe.scripts
eggs = grokwiki
z3c.evalexception>=2.0
Paste
PasteScript
PasteDeploy

[mkdirs]
recipe = z3c.recipe.mkdir
paths =
${zope_conf:filestorage}
${zope_conf:logfiles}

[test]
recipe = zc.recipe.testrunner
eggs =
grok
grok[test]
grokcore.traverser
grokcore.traverser[test]
defaults = ['--tests-pattern', '^f?tests$', '-v']

# This section is named so that the zpasswd utility is
# called `zpasswd`
[zpasswd]
recipe = z3c.recipe.dev:script
eggs = grokwiki
module = zope.app.server.zpasswd
method = main

[zope_conf]
recipe = z3c.recipe.template
input = etc/zope.conf.in
output = ${buildout:parts-directory}/etc/zope.conf
filestorage = ${buildout:directory}/var/filestorage
logfiles = ${buildout:directory}/var/log

[site_zcml]
recipe = z3c.recipe.template
input = etc/site.zcml.in
output = ${buildout:parts-directory}/etc/site.zcml

[deploy_ini]
recipe = z3c.recipe.template
input = etc/deploy.ini.in
output = ${buildout:parts-directory}/etc/deploy.ini

[debug_ini]
recipe = z3c.recipe.template
input = etc/debug.ini.in
output = ${buildout:parts-directory}/etc/debug.ini
56 changes: 11 additions & 45 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@ def read(*rnames):
)

tests_require = [
'grokcore.view [test]',
'grokcore.view [security_publication]',
'zope.app.wsgi',
'zope.configuration',
'zope.app.appsetup',
'zope.testing',
]


setup(
name='grok',
version='1.4dev',
name='grokcore.traverser',
version='0.1',
author='Grok Team',
author_email='grok-dev@zope.org',
url='http://grok.zope.org',
download_url='http://cheeseshop.python.org/pypi/grok/',
description='Grok: Now even cavemen can use Zope 3!',
description='Traverser for the Grok Framework',
long_description=long_description,
license='ZPL',
classifiers=[
Expand All @@ -41,51 +44,14 @@ def read(*rnames):
include_package_data = True,
zip_safe=False,
install_requires=[
'ZODB3',
'grokcore.annotation >= 1.1',
'grokcore.component >= 2.1',
'grokcore.content',
'grokcore.formlib >= 1.4',
'grokcore.json',
'grokcore.message',
'grokcore.security >= 1.1',
'grokcore.site',
'grokcore.view',
'grokcore.view [security_publication]',
'grokcore.viewlet >= 1.3',
'martian >= 0.14',
'pytz',
'setuptools',
'simplejson',
'z3c.autoinclude',
'zc.catalog',
'zope.annotation',
'zope.app.appsetup',
'zope.app.http',
'zope.app.publication',
'zope.browserpage',
'zope.catalog',
'grokcore.component',
'grokcore.security',
'grokcore.view',
'martian',
'zope.component',
'zope.container',
'zope.contentprovider',
'zope.event',
'zope.exceptions',
'zope.i18n',
'zope.i18nmessageid',
'zope.interface',
'zope.intid',
'zope.keyreference',
'zope.lifecycleevent',
'zope.location',
'zope.login',
'zope.password',
'zope.principalregistry',
'zope.publisher',
'zope.schema',
'zope.security',
'zope.securitypolicy',
'zope.site',
'zope.traversing',
],
tests_require=tests_require,
extras_require={'test': tests_require},
Expand Down
7 changes: 7 additions & 0 deletions src/grokcore/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# this is a namespace package
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

0 comments on commit 57597b6

Please sign in to comment.