[Bioperl-l] versioning

Juguang Xiao juguang at tll.org.sg
Tue Dec 23 04:33:19 EST 2003


Hi list,

I think this is more meaningful suggestion than what I had previously. 
Most of Bioperl modules does not have $VERSION, which is encouraged by 
CPAN community. Should we make it in release 1.4? I am aware that there 
are an array of emails in this list about this versioning, but they do 
not pass the simple condition,

perl -MExtUtils::MakeMaker -le  'print MM->parse_version(shift)' 'file'

in http://www.cpan.org/modules/04pause.html#conventions

I have written a quite short script, maintenance/version.pl, in CVS 
now. It append

our $VERSION="1.4";

after the package declaration line. It changes almost all bioperl 
modules, except

1.4
/home/juguang/src/bioperl-live//Bio/Root/Version.pm
0.50
/home/juguang/src/bioperl-live//Bio/Tools/dpAlign.pm
1.15
/home/juguang/src/bioperl-live//t/Test.pm

After the changes, all my tests pass, except t/RestrictionIO, it never 
passes on my MacOS 10.2.8, Perl 5.6.

I do not think other way except writing 'our $VERSION="1.4";' line 
explicitly in each file. Since we should do this before compile time. 
Also I don't think it is good to let Makefile to do it for us, since it 
should be done before distribution.

Let me know if you like this idea and script. Core guys, you can run it 
on your machine and commit 700 modules!, or I can do it, if you do not 
say no.

Juguang



More information about the Bioperl-l mailing list