Commit e1e0e04c authored by Jim Fulton's avatar Jim Fulton

Finished renaming distribution to eggs and improving setup meta data.

parent 362f89a9
...@@ -42,3 +42,11 @@ To do ...@@ -42,3 +42,11 @@ To do
- More control over script generation. In particular, some way to - More control over script generation. In particular, some way to
specify data t be recored in the script. specify data t be recored in the script.
- Honor the buildout offline option.
- Windows suppprt
- Generate exe files
- Make sure tests work under windows
[egg_info]
tag_svn_revision = 1
from setuptools import setup, find_packages from setuptools import setup, find_packages
name = "zc.recipe.egg",
setup( setup(
name = "zc.recipe.egg", name = "name",
version = "1.0.dev", version = "1.0.0a1",
author = "Jim Fulton", author = "Jim Fulton",
author_email = "jim@zope.com", author_email = "jim@zope.com",
description = "Recipe for installing Python package distributions as eggs", description = "Recipe for installing Python package distributions as eggs",
long_description = open('README.txt').read(),
license = "ZPL 2.1", license = "ZPL 2.1",
keywords = "development build", keywords = "development build",
url='http://svn.zope.org/zc.buildout', url='http://svn.zope.org/zc.buildout',
download_url='http://download.zope.org/distribution',
packages = find_packages('src'), packages = find_packages('src'),
include_package_data = True, include_package_data = True,
...@@ -17,6 +19,5 @@ setup( ...@@ -17,6 +19,5 @@ setup(
namespace_packages = ['zc', 'zc.recipe'], namespace_packages = ['zc', 'zc.recipe'],
install_requires = ['zc.buildout', 'setuptools'], install_requires = ['zc.buildout', 'setuptools'],
tests_require = ['zope.testing'], tests_require = ['zope.testing'],
test_suite = 'zc.recipe.eggs.tests.test_suite', entry_points = {'zc.buildout': ['default = %s:Egg' % name]},
entry_points = {'zc.buildout': ['default = zc.recipe.egg:Egg']},
) )
...@@ -53,6 +53,8 @@ class Egg: ...@@ -53,6 +53,8 @@ class Egg:
This is intended for reuse by similar recipes. This is intended for reuse by similar recipes.
""" """
options = self.options
distributions = [ distributions = [
r.strip() r.strip()
for r in options.get('eggs', self.name).split('\n') for r in options.get('eggs', self.name).split('\n')
...@@ -67,8 +69,10 @@ class Egg: ...@@ -67,8 +69,10 @@ class Egg:
path=[options['_d']] path=[options['_d']]
) )
return distributions, ws
def install(self): def install(self):
ws = self.working_set() distributions, ws = self.working_set()
options = self.options options = self.options
scripts = options.get('scripts') scripts = options.get('scripts')
......
...@@ -39,7 +39,7 @@ install the demo package using Python 2.3. ...@@ -39,7 +39,7 @@ install the demo package using Python 2.3.
... ...
... [demo] ... [demo]
... recipe = zc.recipe.egg ... recipe = zc.recipe.egg
... distribution = demo <0.3 ... eggs = demo <0.3
... find-links = %(server)s ... find-links = %(server)s
... index = %(server)s/index ... index = %(server)s/index
... python = python2.3 ... python = python2.3
...@@ -117,7 +117,7 @@ If we change the Python version to 2.4, we'll use Python 2.4 eggs: ...@@ -117,7 +117,7 @@ If we change the Python version to 2.4, we'll use Python 2.4 eggs:
... ...
... [demo] ... [demo]
... recipe = zc.recipe.egg ... recipe = zc.recipe.egg
... distribution = demo <0.3 ... eggs = demo <0.3
... find-links = %(server)s ... find-links = %(server)s
... index = %(server)s/index ... index = %(server)s/index
... python = python2.4 ... python = python2.4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment