[Checkins] SVN: zope.dottedname/trunk/s Setup.py was added to 'eggify' the package.

Alexander Heavner alex at zope.com
Tue Feb 13 13:57:18 EST 2007


Log message for revision 72536:
  Setup.py was added to 'eggify' the package.
  'src' and 'zope' were added to structure the project.
  __init__.py was added to name zope a namespace package
  

Changed:
  A   zope.dottedname/trunk/setup.py
  A   zope.dottedname/trunk/src/
  A   zope.dottedname/trunk/src/zope/
  A   zope.dottedname/trunk/src/zope/__init__.py

-=-
Added: zope.dottedname/trunk/setup.py
===================================================================
--- zope.dottedname/trunk/setup.py	2007-02-13 18:48:48 UTC (rev 72535)
+++ zope.dottedname/trunk/setup.py	2007-02-13 18:57:18 UTC (rev 72536)
@@ -0,0 +1,13 @@
+from setuptools import setup, find_packages
+
+setup(
+    name="zope.dottedname",
+    version="0.1dev",
+    packages=find_packages('src'),
+    package_dir={'':'src'},
+    namespace_packages=['zope'],
+    include_package_data=True,
+    install_requirements = ['setuptools'],
+    zip_safe = False
+    )
+


Property changes on: zope.dottedname/trunk/src/zope
___________________________________________________________________
Name: svn:externals
   + dottedname svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/dottedname


Added: zope.dottedname/trunk/src/zope/__init__.py
===================================================================
--- zope.dottedname/trunk/src/zope/__init__.py	2007-02-13 18:48:48 UTC (rev 72535)
+++ zope.dottedname/trunk/src/zope/__init__.py	2007-02-13 18:57:18 UTC (rev 72536)
@@ -0,0 +1,10 @@
+# this is a namespace package
+try:
+    import pkg_resources
+    pkg_resources.declare_namespace(__name__)
+except ImportError:
+    import pkgutil
+    __path__ = pkgutil.extend_path(__path__, __name__)
+
+
+



More information about the Checkins mailing list