[Zodb-checkins] SVN: zdaemon/branches/tseaver-eggification/ Make zdaemon distributable as an egg.

Tres Seaver tseaver at palladion.com
Mon Mar 27 08:39:06 EST 2006


Log message for revision 66237:
  Make zdaemon distributable as an egg.
  

Changed:
  A   zdaemon/branches/tseaver-eggification/
  A   zdaemon/branches/tseaver-eggification/INSTALL.txt
  A   zdaemon/branches/tseaver-eggification/develop.py
  A   zdaemon/branches/tseaver-eggification/setup.cfg.in
  A   zdaemon/branches/tseaver-eggification/setup.py
  _U  zdaemon/branches/tseaver-eggification/src/
  D   zdaemon/branches/tseaver-eggification/src/zope/
  U   zdaemon/branches/tseaver-eggification/test.py

-=-
Copied: zdaemon/branches/tseaver-eggification (from rev 66236, zdaemon/trunk)


Property changes on: zdaemon/branches/tseaver-eggification
___________________________________________________________________
Name: svn:ignore
   + *so
*.pyc
build

Name: svn:externals
   + workspace svn://svn.zope.org/repos/main/projectsupport/trunk/src/workspace


Added: zdaemon/branches/tseaver-eggification/INSTALL.txt
===================================================================
--- zdaemon/trunk/INSTALL.txt	2006-03-27 13:27:34 UTC (rev 66236)
+++ zdaemon/branches/tseaver-eggification/INSTALL.txt	2006-03-27 13:39:05 UTC (rev 66237)
@@ -0,0 +1,83 @@
+Installing This Package
+=======================
+
+Prerequisites
+-------------
+
+The installation steps below assume that you have the cool new 'setuptools'
+package installed in your Python.  Here is where to get it:
+
+  $ wget http://peak.telecommunity.com/dist/ez_setup.py
+  $ /path/to/your/python ez_setup.py # req. write access to 'site-packages'
+
+
+  - Docs for EasyInstall:
+    http://peak.telecommunity.com/DevCenter/EasyInstall
+
+  - Docs for setuptools:
+    http://peak.telecommunity.com/DevCenter/setuptools
+
+  - Docs for eggs:
+    http://peak.telecommunity.com/DevCenter/PythonEggs
+
+
+Installing a Development Checkout
+---------------------------------
+
+Check out the package from subversion:
+
+  $ svn co svn+ssh://svn.zope.org/repos/main/zdaemon/trunk \
+    src/zdaemon
+  $ cd src/zdaemon
+
+Install it as a "devlopment egg" (which also installs its "hard"
+dependencies):
+
+  $ /path/to/your/python setup.py devel
+
+The installation of dependency eggs uses the 'setup.cfg' file in
+the checkout.  You can supply '--find-links' on the command line to
+point it at a non-standard package repository.
+
+
+Running the Tests
+-----------------
+
+To test the package, you will also need the 'zope.testing' package, which
+can't (yet) be automatically installed.  Eventually, you should be able to
+type:
+
+  $ /path/to/your/python setup.py test
+
+and have it install the "testing dependencies."  Today, the workaround
+is to install it manually:
+
+  $ /path/to/easy_install --find-links="...." zope-testing
+
+You can then run the tests (finally) from the checkout directory:
+
+  $ /path/to/your/python test.py
+    Running:
+      .............
+    Ran 13 tests with 0 failures and 0 errors in 0.094 seconds.
+
+
+Installing a Source Distribution
+--------------------------------
+
+You can also install it from a source distribution:
+
+  $ /path/to/easy_install --find-links="...." -eb src zdaemon
+  $ cd src/zdaemon
+  $ /path/to/your/python setup.py devel
+
+
+Installing a Binary Egg
+-----------------------
+
+Install the package as a "binary egg" (which also installs its "hard"
+dependencies):
+
+  $ /path/to/easy_install --find-links="...." zdaemon
+
+


Property changes on: zdaemon/branches/tseaver-eggification/INSTALL.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: zdaemon/branches/tseaver-eggification/develop.py
===================================================================
--- zdaemon/trunk/develop.py	2006-03-27 13:27:34 UTC (rev 66236)
+++ zdaemon/branches/tseaver-eggification/develop.py	2006-03-27 13:39:05 UTC (rev 66237)
@@ -0,0 +1,21 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Workspace configuration wrapper script
+
+$Id$
+"""
+
+import workspace.develop
+
+workspace.develop.main()


Property changes on: zdaemon/branches/tseaver-eggification/develop.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: zdaemon/branches/tseaver-eggification/setup.cfg.in
===================================================================
--- zdaemon/trunk/setup.cfg.in	2006-03-27 13:27:34 UTC (rev 66236)
+++ zdaemon/branches/tseaver-eggification/setup.cfg.in	2006-03-27 13:39:05 UTC (rev 66237)
@@ -0,0 +1,6 @@
+[development]
+depends = zope.testing ZConfig
+
+[egg_info]
+tag_build = .dev
+tag_svn_revision = 1

Added: zdaemon/branches/tseaver-eggification/setup.py
===================================================================
--- zdaemon/trunk/setup.py	2006-03-27 13:27:34 UTC (rev 66236)
+++ zdaemon/branches/tseaver-eggification/setup.py	2006-03-27 13:39:05 UTC (rev 66237)
@@ -0,0 +1,44 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Setup for zope.i18nmessageid package
+
+$Id$
+"""
+
+import os
+
+try:
+    from setuptools import setup, Extension
+except ImportError, e:
+    from distutils.core import setup, Extension
+
+setup(name='zdaemon',
+      version='1.2',
+      url='http://svn.zope.org/zdaemon',
+      license='ZPL 2.1',
+      description='Daemon management',
+      author='Zope Corporation and Contributors',
+      author_email='zope-dev at zope.org',
+      long_description='',
+      
+      packages=['zdaemon'],
+      package_dir = {'': os.path.join(os.path.dirname(__file__), 'src')},
+
+      tests_require = ['zope.testing'],
+      install_requires=['ZConfig',
+                       ],
+      include_package_data = True,
+
+      zip_safe = False,
+      )


Property changes on: zdaemon/branches/tseaver-eggification/setup.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native


Property changes on: zdaemon/branches/tseaver-eggification/src
___________________________________________________________________
Name: svn:externals
   - ZConfig -r 39096 svn://svn.zope.org/repos/main/ZConfig/trunk/ZConfig

   + 


Modified: zdaemon/branches/tseaver-eggification/test.py
===================================================================
--- zdaemon/trunk/test.py	2006-03-27 13:27:34 UTC (rev 66236)
+++ zdaemon/branches/tseaver-eggification/test.py	2006-03-27 13:39:05 UTC (rev 66237)
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 ##############################################################################
 #
 # Copyright (c) 2004 Zope Corporation and Contributors.
@@ -11,9 +12,9 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""Test script
+"""Sample test script using zope.testing.testrunner
 
-For help, use -h
+see zope.testing testrunner.txt
 
 $Id$
 """
@@ -27,8 +28,9 @@
 
 defaults = [
     '--path', src,
+    '--package', 'zdaemon',
     '--tests-pattern', '^tests$',
-    '--package', 'zdaemon'
     ]
 
 sys.exit(testrunner.run(defaults))
+



More information about the Zodb-checkins mailing list