Merge lp:~jml/testtools/better-snapshot-613734 into lp:~testtools-committers/testtools/trunk
Proposed by
Jonathan Lange
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 110 | ||||
Proposed branch: | lp:~jml/testtools/better-snapshot-613734 | ||||
Merge into: | lp:~testtools-committers/testtools/trunk | ||||
Diff against target: |
76 lines (+35/-7) 2 files modified
MANIFEST.in (+0/-1) setup.py (+35/-6) |
||||
To merge this branch: | bzr merge lp:~jml/testtools/better-snapshot-613734 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
testtools developers | Pending | ||
Review via email: mp+38719@code.launchpad.net |
Description of the change
This branch addresses bug 613734 by attempting to read the version number from PKG-INFO if it is present. This prevents bzrlib from being used to get the revno when using a testtools snapshot in buildout.
PKG-INFO is defined as being an RFC 822 message, and the 'email' module is the recommended way of reading such.
I changed the version number for development versions to be of the form 0.9.8-r123. This is largely because buildout explodes on the ~.
setup.py is also refactored a little to make it more readable to me.
To post a comment you must log in.
Thanks, doit.