Opened 7 years ago

Closed 7 years ago

#6059 closed defect (fixed)

zipped source files will not build because svn keywords are not expanded

Reported by: dale.miller@… Owned by: martin_s
Priority: low Component: AdvParseArgsPlugin
Severity: minor Keywords:
Cc: dale.miller@… Trac Release: 0.11


Downloaded the zipped file and tried to build the egg.

python bdist_egg
Traceback (most recent call last):
  File "", line 4, in <module>
    from tracadvparseargs.parseargs import __revision__ as pluginrev
  File "/home/svn/Trac-plugins/advparseargsplugin/0.11/tracadvparseargs/", line 1, in <module>
    from parseargs import *
  File "/home/svn/Trac-plugins/advparseargsplugin/0.11/tracadvparseargs/", line 8, in <module>
    __revision__ = int(r"$Rev$"[6:-2])
ValueError: invalid literal for int() with base 10: ''

These lines should have the svn keywords expanded for it to work or remove the lines.

__url__      = ur"$URL$"[6:-2]
__author__   = ur"$Author: svn $"[9:-2]
__revision__ = int(r"$Rev$"[6:-2])
__date__     = r"$Date$"[7:-2]

Keywords are in, and

I could hack the files, but would prefer not to.

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by dale.miller@…

  • Priority changed from high to low
  • Severity changed from major to minor

I commented out the lines and set a value for rev in to build it.

comment:2 Changed 7 years ago by martin_s

  • Status changed from new to assigned

The missing subverions keywords are an issue with the zip file generation of Trac. You can also install the plugin using:

easy_install --always-unzip

Sorry for this, I completely forgot about the ZIP file download like on trac-hacks. I will fix it ASAP.

comment:3 Changed 7 years ago by martin_s

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [6912]) Added fall-back number before revision keyword to work around problems with Trac ZIP downloads which do not expand the keywords. This fixes #6059.

Add Comment

Modify Ticket

as closed The owner will remain martin_s.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.