[Python-es] Cómo especificar versiones RC (en setup.py ?)
Olemis Lang (Simelix)
olemis+py en gmail.com
Mie Abr 14 16:40:29 CEST 2010
Hola a todos !
He visto que varios paquetes [1]_ permiten número de versiones RC
(e.g. ropevim 0.3-rc). Sin embargo cuando pongo esa versión en
`setup.py` me da
{{{
#!python
$ ./setup.py bdist_egg
Traceback (most recent call last):
File "./setup.py", line 146, in <module>
long_description= DESC
File "/usr/lib/python2.5/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.5/site-packages/setuptools/dist.py", line
223, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.5/distutils/dist.py", line 255, in __init__
getattr(self.metadata, "set_" + key)(val)
File "/usr/lib/python2.5/distutils/dist.py", line 1204, in set_obsoletes
distutils.versionpredicate.VersionPredicate(v)
File "/usr/lib/python2.5/distutils/versionpredicate.py", line 115, in __init__
self.pred = [splitUp(aPred) for aPred in str.split(",")]
File "/usr/lib/python2.5/distutils/versionpredicate.py", line 25, in splitUp
return (comp, distutils.version.StrictVersion(verStr))
File "/usr/lib/python2.5/distutils/version.py", line 40, in __init__
self.parse(vstring)
File "/usr/lib/python2.5/distutils/version.py", line 107, in parse
raise ValueError, "invalid version number '%s'" % vstring
ValueError: invalid version number '1.4.1-rc'
}}}
Q:
- ¿Cómo se hace?
Gracias por adelantado !
.. [1] RC packages @ PyPI
(http://www.google.com/search?client=opera&rls=en&q=rc+site:pypi.python.org&sourceid=opera&num=100&ie=utf-8&oe=utf-8)
--
Regards,
Olemis.
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
#6956: Allow filtering changesets in ticket changer -
http://trac-hacks.org/ticket/6956
Más información sobre la lista de distribución Python-es