Ticket #6059 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

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

Reported by: dale.miller@ngc.com Assigned to: martin_s
Priority: low Component: AdvParseArgsPlugin
Severity: minor Keywords:
Cc: dale.miller@ngc.com Trac Release: 0.11

Description

Downloaded the zipped file and tried to build the egg.

python setup.py bdist_egg
Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    from tracadvparseargs.parseargs import __revision__ as pluginrev
  File "/home/svn/Trac-plugins/advparseargsplugin/0.11/tracadvparseargs/__init__.py", line 1, in <module>
    from parseargs import *
  File "/home/svn/Trac-plugins/advparseargsplugin/0.11/tracadvparseargs/parseargs.py", 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 setup.py, macro.py and parseargs.py

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

Attachments

Change History

10/28/09 23:07:02 changed by dale.miller@ngc.com

  • priority changed from high to low.
  • severity changed from major to minor.

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

10/28/09 23:15:06 changed 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 http://trac-hacks.org/svn/advparseargsplugin/0.11/
}}

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

10/28/09 23:43:59 changed by martin_s

  • status changed from assigned to closed.
  • resolution set to fixed.

(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/Change #6059 (zipped source files will not build because svn keywords are not expanded)




Change Properties
Action