Commit 83dd5b6b authored by Jim Fulton's avatar Jim Fulton

Test/demo that the part name is used if a distribution isn't

specified.
parent 5998cea5
...@@ -9,6 +9,8 @@ distribution ...@@ -9,6 +9,8 @@ distribution
This is a requirement as defined by setuptools. This is a requirement as defined by setuptools.
If not specified, the distribution defaults to the part name.
find_links find_links
A list of URLs, files, or directories to search for distributions. A list of URLs, files, or directories to search for distributions.
...@@ -101,7 +103,6 @@ specification. For example, if we remove the restriction on demo: ...@@ -101,7 +103,6 @@ specification. For example, if we remove the restriction on demo:
... ...
... [demo] ... [demo]
... recipe = zc.recipe.egg ... recipe = zc.recipe.egg
... distribution = demo
... find_links = %s ... find_links = %s
... """ % sample_eggs) ... """ % sample_eggs)
...@@ -117,6 +118,9 @@ Then we'll get a new demo egg: ...@@ -117,6 +118,9 @@ Then we'll get a new demo egg:
- demoneeded-1.0-py2.3.egg - demoneeded-1.0-py2.3.egg
- zc.recipe.egg.egg-link - zc.recipe.egg.egg-link
Note that we removed the distribution option, and the distribution
defaulted to the part name.
The script is updated too: The script is updated too:
>>> print system(os.path.join(sample_buildout, 'bin', 'demo')), >>> print system(os.path.join(sample_buildout, 'bin', 'demo')),
...@@ -134,7 +138,6 @@ arguments: ...@@ -134,7 +138,6 @@ arguments:
... ...
... [demo] ... [demo]
... recipe = zc.recipe.egg ... recipe = zc.recipe.egg
... distribution = demo
... find_links = %s ... find_links = %s
... scripts = ... scripts =
... """ % sample_eggs) ... """ % sample_eggs)
...@@ -155,7 +158,6 @@ You can also control the name used for scripts: ...@@ -155,7 +158,6 @@ You can also control the name used for scripts:
... ...
... [demo] ... [demo]
... recipe = zc.recipe.egg ... recipe = zc.recipe.egg
... distribution = demo
... find_links = %s ... find_links = %s
... scripts = demo=foo ... scripts = demo=foo
... """ % sample_eggs) ... """ % sample_eggs)
......
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