Merge ~harlowja/cloud-init:scm-version into cloud-init:master
| Status: | Rejected |
|---|---|
| Rejected by: | Scott Moser on 2016-08-10 |
| Proposed branch: | ~harlowja/cloud-init:scm-version |
| Merge into: | cloud-init:master |
| Diff against target: |
41 lines (+4/-9) 3 files modified
cloudinit/version.py (+1/-9) requirements.txt (+1/-0) setup.py (+2/-0) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| cloud-init commiters | 2016-08-01 | Pending | |
|
Review via email:
|
|||
| Scott Moser (smoser) wrote : | # |
| Joshua Harlow (harlowja) wrote : | # |
I guess the only thing that I can think about that makes using these tools useful is that they can provide a consistent way of getting that version (instead of yet another one-off way of getting it); pbr also has the nice ability to generate a debian version string and a redhat version string, which are quite useful when actually creating a package.
For example:
$ python setup.py rpm_version
running rpm_version
[pbr] Extracting rpm version
1.32.0.dev6
Not quite sure where the pbr output for deb_version is (thought it had this, ha).
That's usually the next question, ok, now that we have a version string crap here, well now I need a debian version of that string and I need a redhat version of that string.
| Joshua Harlow (harlowja) wrote : | # |
So https:/
| Scott Moser (smoser) wrote : | # |
So In my head, here are the things that i need to cover:
a.) export of release tarball
b.) export of snapshot tarball
c.) upstream package build (./packages/brpm and ./package/bddeb)
this basically does a export of a snapshot tarball and then build with local packaging.
d.) smoser upload to ubuntu of snapshot supporting build on 14.04+
smoser does 'export of snapshot tarball'
smoser adds a debian/changelog entry (which requires a debian sufficient version)
e.) i really would like for cloud-init runtime to show the "upstream version" in its greeting (the hole thing, not just 0.7.7).
In bzr, i would do http://
The key things this all means i think are
1.) I don't want to require some new pip installed version of a package in order to build a tarball (i want to be able to do that on 14.04)
2.) there is an 'upstream' version that is basically then translated to debian and rpm versions.
3.) i don't want / can't have some new version of pbr installed in 14.04 on official build systems.
4.) i definitely can't pick up a runtime dependency to simply translate
0.7.
Thoughts?
| Scott Moser (smoser) wrote : | # |
oh, just want to point out that yes, i also want the most standard package versioning i can get (although i think there are no standard package versions in reality, but pbr seems to have hopes of getting there at least).
| Scott Moser (smoser) wrote : | # |
the needed functionality is now in trunk via usage of tools/read-version.
Unmerged commits
- cc78be5... by Joshua Harlow on 2016-08-01
- a7a6ed2... by Joshua Harlow on 2016-08-01


This would be runtime dependency, right?
i'd really rather not take that.
I'm not opposed to this and woudl like version information to follow *some* standard.
what i have now is just what comes out of git describe modified a bit.
see tools/make-tarball
# revname could be 0.7.5 or 0.7.5-NNN-gHASH
# turn that into 0.7.5 or 0.7.5+NNN.gHASH
that currently shows: 1026-gef54bea
0.7.6+
python -c 'from setuptools_scm import get_version; print(get_ version( ))' dev1023+ ng72d6adc
shows
0.7.7.
is .dev1023+ngHASH
better in some way ?