~zyga/testtools/use-versiontools

Viewing all changes in revision 246.

  • Committer: Zygmunt Krynicki
  • Date: 2012-02-13 18:34:50 UTC
  • Revision ID: zygmunt.krynicki@linaro.org-20120213183450-fw5fj13lmupncvb1
Use versiontools instead of hand-made solution.

Versiontools (http://versiontools.rtfd.org) is centralized system that handles
formatting __version__ appropriately, according to PEP386. Versiontools
includes support for interrogating the version control system, such as bzr, git
or mercurial to retrieve the revision or other commit identifier and append
that to the version string in certain situations.

The biggest advantage is that this patch makes testtools work on python3.
Currently versiontools requires bzrlib to be importable to work, so without bzr
available inside your virtualenv (or system installation) you will not get
proper versioning of individual development snapshots (they will be just
labeled 1.2.3.dev instead of 1.2.3.dev{revno}). This requirement will go away
in versiontools 1.10 with shell fall-back as bzr is not coming to python3
anytime soon. This patch also requires setuptools to work properly (as
versiontools depends on setup_requires). This requirement will also go away in
versiontools 1.9, or as soon as
https://code.launchpad.net/~zkrynicki/versiontools/1.9/+merge/91568 lands in
trunk.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: