Commit Graph

48 Commits

Author SHA1 Message Date
Cole Robinson
b6dcee8eb7 Use consistent and minimal license header for every file 2018-03-21 07:29:40 -04:00
Radostin Stoyanov
810ee09292 Replace ConfigParser with configparser
The ConfigParser module has been renamed to configparser in
Python 3. [1] Backport of this changes is also available for
Python 2. [2]

[1] https://docs.python.org/2/library/configparser.html
[2] https://pypi.python.org/pypi/configparser/3.2.0r3
2018-02-06 18:49:17 -05:00
Cole Robinson
40c678783e Prep for release 1.5.0 2018-02-06 18:03:49 -05:00
Cole Robinson
eb47d94308 Prep for release 1.4.3 2017-09-19 20:07:34 -04:00
Cole Robinson
34c80e56cd Prep for release 1.4.2 2017-08-08 18:14:48 -04:00
Cole Robinson
c08226182e Prep for release 1.4.1 2017-03-08 18:48:48 -05:00
Cole Robinson
296d7e922a Prep for release 1.4.0 2016-06-18 10:00:39 -04:00
Cole Robinson
450be4a259 Prep for release 1.3.2 2015-12-24 13:18:32 -05:00
Cole Robinson
a28800ae35 Prep for release 1.3.1 2015-12-06 19:36:51 -05:00
Cole Robinson
7ef17138da Prep for release 1.3.0 2015-11-24 22:04:26 -05:00
Cole Robinson
fe722b99cb setup: Make gsettings always work regardless of install dir (bz #1267377)
Most of this is lifted from 'meld'. The bits are

- compile gsettings schemas at setup.py install time
- add options to disable that, and use them in the RPM
- always pass GSETTINGS_SCHEMA_DIR so gsettings loading always works
  regardless of the install dir

https://bugzilla.redhat.com/show_bug.cgi?id=1267377
2015-11-02 21:02:42 -05:00
Cole Robinson
2d921c6eb7 Prep for release 1.2.1 2015-06-06 18:15:40 -04:00
Cole Robinson
feb9c7e9b2 Prep for release 1.2.0 2015-05-04 15:10:48 -04:00
Cole Robinson
ef5552d0aa configure: Add --default-hvs, kill --with-bhyve
Takes a comma separated list of HVs, and only shows those as options in
the 'Open Connection' wizard. This option can be used to hide the bhyve
option as well, so drop --with-bhyve
2015-04-06 16:29:28 -04:00
Cole Robinson
a773a66a3f virtcli: Export config variables in a class object
Makes things easier to extend later
2015-04-06 15:54:35 -04:00
Cole Robinson
1e2f605e81 virtcli: Drop custom version handling
No one uses it, and it can be handled easy enough with a wrapper script or
similar.
Message-Id: <1b33f161591b86407f78fb307aa4f89f6eee9e4e.1428346382.git.crobinso@redhat.com>
2015-04-06 15:54:35 -04:00
Cole Robinson
f4cc544a3b virtcli: Fix error in previous patch 2015-04-06 14:53:25 -04:00
Cole Robinson
dd74b3db2a cliconfig: Fix running from git dir if git isn't CWD (bz 1138962) 2015-04-06 14:23:10 -04:00
Cole Robinson
17f57eaaa7 Centralize call to setup_i18n in virtinst __init__
No need to call it twice
2014-09-08 10:42:44 -04:00
Cole Robinson
f4fcf4c3e7 Prep for release 1.1.0 2014-09-07 16:22:04 -04:00
Cole Robinson
9c4c1e84aa cliconfig: Better error if glib-compile-schemas is not available 2014-05-31 16:28:58 -04:00
Roman Bogorodskiy
05df5a6484 Add bhyve support
Allow connection to bhyve using bhyve:///system URI. That is
disabled by default and could be enabled using the new
configure option 'with-bhyve'.
2014-04-11 15:52:31 -04:00
Cole Robinson
8b7ebd4538 Prep for release 1.0.1 2014-03-22 18:38:44 -04:00
Cole Robinson
b83ee891ab Prep for release 1.0.0 2014-02-14 18:45:01 -05:00
Martin Kletzander
dc0b9bbaaf Rename hide_unsupported_rhel_options to stable_defaults and clean-up its usage
There were multiple problems with the setting and usage of
hide_unsupported_rhel_options.  Due to the fact that the option has
several diferent namings throughout the code, this patch is renaming
it to stable_defaults, which basically says what the option does and
makes it possible to use it without need for more than one negation
(where the old code had up to 4 of them in some places), which also
helps understanding it.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2014-01-21 17:13:18 +01:00
Giuseppe Scrivano
0df75c7603 headers: update "Red Hat, Inc." copyright for the year 2013
Ensure that any file touched by a @redhat.com author in 2013 has an
updated copyright header.

The files were updated using the build-aux/update-copyright gnulib
script and manually added where the copyright line wasn't present.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2013-10-28 17:22:26 +01:00
Giuseppe Scrivano
fad01e70fe cliconfig: fix another configuration file parsing problem
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2013-10-09 18:02:51 +02:00
Cole Robinson
64b501cdc0 cliconfig: Fix parsing the configuration file 2013-10-08 14:42:59 -04:00
Cole Robinson
cda621548b Fix last remnants of default_graphics=vnc 2013-10-02 18:51:27 -04:00
Cole Robinson
e93a984377 setup: Store canonical configure defaults in virtcli 2013-10-02 18:50:01 -04:00
Cole Robinson
c136fde04d cliconfig: Use default values if we're in the test suite
We were doing this by hand more or less, but this way is more future
proof.
2013-10-02 18:42:51 -04:00
Martin Kletzander
9f37f58804 Fix tests that fail due to default graphics change
As pointed out, the tests were configuration-dependent and thus might
have failed in case './setup.py configure' was run with non-default
graphics.  The default graphics has changed as well and that lead to
test disaster.  Reverting first hunk of commit b8a209ef and making the
tests independent of default graphics configuration makes all the
failures go away.
2013-07-17 08:14:34 +02:00
Martin Kletzander
b8a209ef9c virt-install: Make default graphics configurable
The '--default-graphics' option of 'setup.py configure' only affects
virt-manager, but not virt-install.  This should be unified, so this
patch checks whether default_graphics taken from the cli is supported
and uses that option.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=912615
2013-07-16 08:07:57 +02:00
Cole Robinson
35758d0fb7 Merge virt-* logging setup 2013-07-05 16:21:33 -04:00
Cole Robinson
10cf80c25b Prep for release 0.10.0 2013-06-19 18:37:21 -04:00
Cole Robinson
974867189d virtcli: Explicitly error if schemas fail to compile 2013-04-23 14:21:45 -04:00
Cole Robinson
f6f55314cb Remove virt-manager-tui
Was originally added with hopes for being used in an ovirt related
product, but was more or less a code dump, and the author has been
allocated to other things. He confirmed it's okay to remove.

That, and it's currently broken, and we've had approximately 0 user
feedback since it was committed.
2013-04-18 16:12:03 -04:00
Cole Robinson
7e23244096 Port from gconf to gsettings
This unfortunately has a decent amount of fallout: add a wrapper class
in config.py that reduces much of the churn.

Another big piece is that gsettings can't accept arbitrary paths like
gconf would, everything needs to be described in the schema.

Also do a bunch more RPM spec modernizing
2013-04-18 12:43:16 -04:00
Gene Czarcinski
b8b1b6d4d4 add option for snapshot-id suffix to __version__
1.  The added suffix is in the form YYYYMMDD and that is all.

2.  Code is added to classes my_sdist and my_rpm to check if
a snapshot id is requested (--snapshot or -s) and, if
requested, to append the id to the value of cliconfig.__version__

3.  The added suffix only applies to the name of the sdist-tarball
and the rpm spec file it includes ... the "internal" version
remains unchanged.
.
Signed-off-by: Gene Czarcinski <gene@czarc.net>
2013-04-17 15:03:26 -04:00
Gene Czarcinski
fd8420ef1b add user setable version using configure
1. update setup.py-configure to add keyword pkgversion

2. If pkgversion is specified in cli.cfg, update __version__
with its value.
.
Signed-off-by: Gene Czarcinski <gene@czarc.net>
2013-04-17 15:03:21 -04:00
Gene Czarcinski
2b298aa424 update __version__ to 0.9.100 for pre-release id
Signed-off-by: Gene Czarcinski <gene@czarc.net>
2013-04-17 15:02:53 -04:00
Cole Robinson
0d243983d0 Revive pep8 and clean up the code
autopep8 is pretty cool :)
2013-04-13 15:22:43 -04:00
Cole Robinson
3ef6e4d539 Fix wrapper scripts
Reported-by: Gene Czarcinski <gene@czarc.net>
2013-04-10 17:45:13 -04:00
Cole Robinson
ffb876e3a1 setup: Make sure non-/usr prefix works
Basically mandate that configure is passed a prefix, since we need this
info before the install process.
2013-04-10 17:45:13 -04:00
Cole Robinson
48bb05e32f cliconfig: Privatize _get_param 2013-04-10 16:47:36 -04:00
Cole Robinson
3f7b46884e Fix icons when running from srcdir 2013-04-03 20:29:47 -04:00
Cole Robinson
3c251d3d8b Make RPM build work
And wire up man page creation
2013-04-03 19:40:39 -04:00
Cole Robinson
9d05583c26 Remove autotools, replace with distutils-extra
Despite being a known quantity, autotools is so overkill for our needs,
so let's drop it and replace it with a much simpler and easy to customize
system.
2013-04-03 18:20:51 -04:00