using bzr with many small Python modules, forgetful person, and version numbers
Eric S. Johansson
esj at harvee.org
Sat Dec 30 23:49:45 GMT 2006
short question: How can a forgetful person use bzr to track revisions of
Python modules and simultaneously update the module version number
automatically? (i.e. setup(...,version="1.10",...)) in setup.py)
longer explanation: I have been scratching my head about how to organize
modules with bzr. when I develop Python programs, I find myself
creating small utility modules that stand alone. These modules are
typically two or three files in size and rarely larger than five or six
files. Originally I started storing them all in one repository/branch.
This works okay except for the fact that I find myself forgetting to
update version numbers. When I started looking at ways of automatically
updating the module version number (i.e. version-info --format=python) I
find myself in a position where bzr appears to be unable to
differentiate between the individual module versions. Yes, I am aware
that there is a difference between the current version of the repository
and the version of the module.
if the answer is move the modules and make it one module per
repository/branch, how does one split up an existing repository.
Also a related question, how does one make multiple repositories
available via the built-in server?
Your guidance is most appreciated.
---eric
More information about the bazaar
mailing list