Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
- removed omelette from buildout
Browse files Browse the repository at this point in the history
- minimized namspace package boilerplate as setuptools is installed
  • Loading branch information
Michael Howitz committed Mar 15, 2009
1 parent 1f3fbaf commit 4fa73f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
6 changes: 1 addition & 5 deletions buildout.cfg
@@ -1,6 +1,6 @@
[buildout]
develop = .
parts = test checker coverage-test coverage-report omelette
parts = test checker coverage-test coverage-report

[test]
recipe = zc.recipe.testrunner
Expand All @@ -19,7 +19,3 @@ defaults = ['--tests-pattern', '^f?tests$', '--coverage', '../../coverage']
recipe = zc.recipe.egg
eggs = z3c.coverage
scripts = coverage=coverage-report

[omelette]
recipe = collective.recipe.omelette
eggs = z3c.layer.pagelet [test]
7 changes: 1 addition & 6 deletions src/z3c/__init__.py
@@ -1,7 +1,2 @@
# this is a namespace package
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
__import__('pkg_resources').declare_namespace(__name__)
6 changes: 1 addition & 5 deletions src/z3c/layer/__init__.py
@@ -1,6 +1,2 @@
# namespace package boilerplate
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError, e:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
__import__('pkg_resources').declare_namespace(__name__)

0 comments on commit 4fa73f7

Please sign in to comment.