setuptools: but with svn-tag-revision and uncommitted project

I get this exception when I run "python setup.py egg_info" with --tag-svn-revision and when the project has never been committed (and hence there's no committed-rev). I think it should instead give 0, or at least a good error message. (I don't see any problem with 0)
Traceback (most recent call last): File "setup.py", line 24, in ? entry_points=""" File "/usr/lib/python2.4/distutils/core.py", line 149, in setup dist.run_commands() File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands self.run_command(cmd) File "/usr/lib/python2.4/distutils/dist.py", line 965, in run_command cmd_obj.ensure_finalized() File "/usr/lib/python2.4/distutils/cmd.py", line 117, in ensure_finalized self.finalize_options() File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py", line 85, in finalize_options self.vtags = self.tags() File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py", line 179, in tags ): version += '-r%s' % self.get_svn_revision() File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py", line 227, in get_svn_revision localrev = max([int(m.group(1)) for m in revre.finditer(data)]) ValueError: max() arg is an empty sequence

Anything on this?
Ian Bicking wrote:
I get this exception when I run "python setup.py egg_info" with --tag-svn-revision and when the project has never been committed (and hence there's no committed-rev). I think it should instead give 0, or at least a good error message. (I don't see any problem with 0)
Traceback (most recent call last): File "setup.py", line 24, in ? entry_points=""" File "/usr/lib/python2.4/distutils/core.py", line 149, in setup dist.run_commands() File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands self.run_command(cmd) File "/usr/lib/python2.4/distutils/dist.py", line 965, in run_command cmd_obj.ensure_finalized() File "/usr/lib/python2.4/distutils/cmd.py", line 117, in ensure_finalized self.finalize_options() File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py", line 85, in finalize_options self.vtags = self.tags() File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py", line 179, in tags ): version += '-r%s' % self.get_svn_revision() File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py", line 227, in get_svn_revision localrev = max([int(m.group(1)) for m in revre.finditer(data)]) ValueError: max() arg is an empty sequence

I thought this was already fixed in SVN. Have you updated? (I'm currently on limited connectivity until next week.)
At 03:16 PM 10/18/2006, Ian Bicking wrote:
Anything on this?
Ian Bicking wrote:
I get this exception when I run "python setup.py egg_info" with --tag-svn-revision and when the project has never been committed (and hence there's no committed-rev). I think it should instead give 0, or at least a good error message. (I don't see any problem with 0)
Traceback (most recent call last): File "setup.py", line 24, in ? entry_points=""" File "/usr/lib/python2.4/distutils/core.py", line 149, in setup dist.run_commands() File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands self.run_command(cmd) File "/usr/lib/python2.4/distutils/dist.py", line 965, in run_command cmd_obj.ensure_finalized() File "/usr/lib/python2.4/distutils/cmd.py", line 117, in
ensure_finalized
self.finalize_options()
File
"/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py",
line 85, in finalize_options self.vtags = self.tags() File
"/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py",
line 179, in tags ): version += '-r%s' % self.get_svn_revision() File
"/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py",
line 227, in get_svn_revision localrev = max([int(m.group(1)) for m in revre.finditer(data)]) ValueError: max() arg is an empty sequence
Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig

This problem was fixed in r52006 and r52007 of the setuptools trunk and 0.6 branch, respectively. But the fix isn't available in any released varsion at the moment.
At 05:16 PM 10/18/2006 -0500, Ian Bicking wrote:
Anything on this?
Ian Bicking wrote:
I get this exception when I run "python setup.py egg_info" with --tag-svn-revision and when the project has never been committed (and hence there's no committed-rev). I think it should instead give 0, or at least a good error message. (I don't see any problem with 0)
Traceback (most recent call last): File "setup.py", line 24, in ? entry_points=""" File "/usr/lib/python2.4/distutils/core.py", line 149, in setup dist.run_commands() File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands self.run_command(cmd) File "/usr/lib/python2.4/distutils/dist.py", line 965, in run_command cmd_obj.ensure_finalized() File "/usr/lib/python2.4/distutils/cmd.py", line 117, in
ensure_finalized
self.finalize_options()
File
"/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py",
line 85, in finalize_options self.vtags = self.tags() File
"/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py",
line 179, in tags ): version += '-r%s' % self.get_svn_revision() File
"/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py",
line 227, in get_svn_revision localrev = max([int(m.group(1)) for m in revre.finditer(data)]) ValueError: max() arg is an empty sequence
Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
participants (2)
-
Ian Bicking
-
Phillip J. Eby