[Python-checkins] r76700 - peps/trunk/pep-0386.txt
tarek.ziade
python-checkins at python.org
Mon Dec 7 23:52:44 CET 2009
Author: tarek.ziade
Date: Mon Dec 7 23:52:43 2009
New Revision: 76700
Log:
removed implementation details and more info on Requires-Dist vs Require
Modified:
peps/trunk/pep-0386.txt
Modified: peps/trunk/pep-0386.txt
==============================================================================
--- peps/trunk/pep-0386.txt (original)
+++ peps/trunk/pep-0386.txt Mon Dec 7 23:52:43 2009
@@ -26,9 +26,10 @@
`latest` one, regardless of the expected semantics.
Distutils will soon extend its capabilities to allow distributions to express a
-dependency on other distributions through the `Requires-Dist` metadata field
+dependency on other distributions through the ``Requires-Dist`` metadata field
(see PEP 345 [#pep345]_) and it will optionally allow to use that field to
-restrict the dependency to a set of compatible versions.
+restrict the dependency to a set of compatible versions. Notice that this field
+is replacing ``Requires`` that was expressing dependencies on modules and packages.
The ``Requires-Dist`` field will allow a distribution to define a dependency on
another package and optionally restrict this dependency to a set of
@@ -346,11 +347,6 @@
A class method called ``from_parts`` is available if you want to create an
instance by providing the parts that composes the version.
-Each part is a tuple and there are three parts:
-
-- the main version part
-- the pre-release part
-
Examples ::
>>> version = RationalVersion.from_parts((1, 0))
More information about the Python-checkins
mailing list