[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH-v6.1 0/5] virt-manager enhanced version id

OK, lets try this again.  This is again a "eat the cake and have 
it too" version.  It also has, now that I understand it, the
"best" solution for adding --snapshot to the user_options list.

Those who want everything to remain the same, do nothing and it will be
the same (except the the default for cliconfig.__version__ is updated
to a more "reasonable" value).  This is broken up into five "simple",
related patches.

1. New version-id for pre-whatever status.

2. Add spec.in back in and create the spec file when sdist is run with
@VERSION@ updated.

3. Add "pkgversion" option to configure so that user can set __version__
to anything as long as virtcl/cli.cfg exists.

4. Add --snapshot for sdist and rpm ... adds YYYYMMDD snapsnot-id suffix
to __version__

5. Update spec file so that the runtime version will be the same as for
the rpms: run ./configure --pkgconfig=%{version} 

Nothing depends on git and no check is performed for uncommitted changes.

Using a "script" solution to create a snapshot-id is unnecessary ... it is
all simple to do in python.  The more difficult part is to use the new
version+snapshot for the tarball and rpm names ... and that turned out to
be not that difficult afterall!

Gene Czarcinski (5):
  update __version__ to 0.9.100 for pre-release id
  automate @VERSION@ in virt-manager.spec
  add user setable version using configure
  add option for snapshot-id suffix to __version__
  update spec file to use its version at runtime

 .gitignore                                |  1 +
 setup.py                                  | 55 +++++++++++++++++++++++++++----
 virt-manager.spec => virt-manager.spec.in |  3 +-
 virtcli/cliconfig.py                      |  7 +++-
 4 files changed, 58 insertions(+), 8 deletions(-)
 rename virt-manager.spec => virt-manager.spec.in (99%)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]