[Checkins] SVN: Sandbox/luciano/kirbi/ Expanded buildout so that
kirbifetch 'fetch' script will be created.
Martijn Faassen
faassen at infrae.com
Wed Aug 15 12:23:35 EDT 2007
Log message for revision 78858:
Expanded buildout so that kirbifetch 'fetch' script will be created.
It won't run however, as this script has a dependency on being started
from within src/kirbifetch.
It can now however be started by:
../../../bin/devpython-kirbifetch fetch.py
where devpython-kirbifetch has the right dependencies set up, without the
need for installing zope.interface, zope.schema and the like into the
system python.
Changed:
U Sandbox/luciano/kirbi/buildout.cfg
A Sandbox/luciano/kirbi/kirbifetch/setup.py
_U Sandbox/luciano/kirbi/kirbifetch/src/
U Sandbox/luciano/kirbi/kirbifetch/src/kirbifetch/fetch.py
-=-
Modified: Sandbox/luciano/kirbi/buildout.cfg
===================================================================
--- Sandbox/luciano/kirbi/buildout.cfg 2007-08-15 16:02:49 UTC (rev 78857)
+++ Sandbox/luciano/kirbi/buildout.cfg 2007-08-15 16:23:34 UTC (rev 78858)
@@ -1,6 +1,6 @@
[buildout]
-develop = .
-parts = app data zopectl test
+develop = . kirbifetch
+parts = app data zopectl test test_kirbifetch devpython-kirbifetch
find-links = http://download.zope.org/distribution/
[data]
@@ -53,3 +53,13 @@
recipe = zc.recipe.testrunner
eggs = Kirbi
defaults = ['--tests-pattern', '^f?tests$', '-v']
+
+[test_kirbifetch]
+recipe = zc.recipe.testrunner
+eggs = kirbifetch
+
+[devpython-kirbifetch]
+recipe = zc.recipe.egg
+interpreter = devpython-kirbifetch
+eggs = kirbifetch
+
Added: Sandbox/luciano/kirbi/kirbifetch/setup.py
===================================================================
--- Sandbox/luciano/kirbi/kirbifetch/setup.py (rev 0)
+++ Sandbox/luciano/kirbi/kirbifetch/setup.py 2007-08-15 16:23:34 UTC (rev 78858)
@@ -0,0 +1,41 @@
+import os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup (
+ name='kirbifetch',
+ version='0.1.0',
+ author = "Luciano Ramalho",
+ author_email = "lucian at ramalho.org",
+ description = "Kirbifetch: fetch books into Kirbi",
+ license = "ZPL 2.1",
+ keywords = "zope3 kirbi grok",
+ classifiers = [
+ 'Development Status :: 1 - Beta',
+ 'Environment :: Web Environment',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: Zope Public License',
+ 'Programming Language :: Python',
+ 'Natural Language :: English',
+ 'Operating System :: OS Independent',
+ 'Topic :: Internet :: WWW/HTTP',
+ 'Framework :: Zope3 :: Grok'],
+ packages = find_packages('src'),
+ include_package_data = True,
+ package_dir = {'':'src'},
+ install_requires=['setuptools',
+ 'zc.twisted',
+ 'zope.interface',
+ 'zope.schema',
+ 'lxml',
+ ],
+ zip_safe = False,
+ entry_points = {
+ 'console_scripts': [
+ 'kirbifetch = kirbifetch.fetch:main',
+ ]
+ },
+ )
+
Property changes on: Sandbox/luciano/kirbi/kirbifetch/src
___________________________________________________________________
Name: svn:ignore
+ kirbifetch.egg-info
Modified: Sandbox/luciano/kirbi/kirbifetch/src/kirbifetch/fetch.py
===================================================================
--- Sandbox/luciano/kirbi/kirbifetch/src/kirbifetch/fetch.py 2007-08-15 16:02:49 UTC (rev 78857)
+++ Sandbox/luciano/kirbi/kirbifetch/src/kirbifetch/fetch.py 2007-08-15 16:23:34 UTC (rev 78858)
@@ -5,7 +5,7 @@
from twisted.web import xmlrpc, client
from os import path
-from amazonsource import AmazonSource
+from kirbifetch.amazonsource import AmazonSource
from pprint import pprint
from sys import stdout
@@ -98,7 +98,7 @@
print 'Error in deferred upload:', error
-if __name__ == '__main__':
+def main():
xmlrpc_url = 'http://localhost:8080/kirbi/pac'
poll_method = 'dumpIncomplete'
callback = 'updateBooks'
@@ -108,3 +108,5 @@
reactor.run()
print 'reactor stop'
+if __name__ == '__main__':
+ main()
More information about the Checkins
mailing list