Commit Graph

27 Commits

Author SHA1 Message Date
Cole Robinson d6f5c3a729 setup.py: Add test --only option
Allows running only tests that match the passed string.
2013-07-13 16:33:14 -04:00
Cole Robinson 351ff1ae57 tests: Add --coverage option to print a report 2013-07-02 17:37:45 -04:00
Cole Robinson de1695b2a9 setup.py: Change default-graphics from spice->vnc
It's still changeable with 'configure', but this makes the unconfigured
default in line with what modern distros should use.
2013-05-27 18:51:12 -04:00
Cole Robinson 44f788bb99 setup.py: Fix sdist 2013-04-27 09:28:15 -04:00
Cole Robinson d6d3d9e78c setup: Drop use of python-distutils-extra
The only bits were were using was the icon installation and
translation building, which amounted to about 70 lines of code.

Just steal it so we can avoid the dep which will cause trouble
for future RHEL.
2013-04-18 17:20:10 -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
Cole Robinson 1c51a39903 setup: Make it executable 2013-04-17 15:48:39 -04:00
Cole Robinson 52d9436c3b Fix up some pylint from previous patches 2013-04-17 15:14:52 -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 ad3f69e12d automate @VERSION@ in virt-manager.spec
This update renames virt-manager.spec to be
virt-manager.spec.in and changes the version-id to
@VERSION@ ... setup.py is modified to copy the
virt-manager-spec.in file to virt-manager.spec and
replace @VERSION@ with the current/actual version id.

.gitignore is updated to ignore virt-manager.spec
.
Signed-off-by: Gene Czarcinski <gene@czarc.net>
2013-04-17 15:02:58 -04:00
Cole Robinson 31b303f3b1 Remove unused Tui/importblacklist
We will solve the same problem with unittests
2013-04-15 14:18:33 -04:00
Cole Robinson cdac966360 setup: Make 'install' work even if 'configure' wasn't run 2013-04-14 12:51:22 -04:00
Cole Robinson 1771f6a300 tests: Replace 'scriptimports' with a much simpler method 2013-04-13 15:38: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 fcc680cae1 Use an RC file for pylint
Will let use tweak things easier in the future
2013-04-13 15:22:29 -04:00
Cole Robinson ae471007fc Tons of misc pylint fixes 2013-04-13 13:40:29 -04:00
Cole Robinson d323fbbe23 pylint: Disable 'Use of property on old style class' warning
pylint can't handle the fact that our Gtk subclasses _are_ new
style classes.
2013-04-12 08:27:45 -04:00
Cole Robinson aead0135b0 setup.py: Re-add 'pylint' subcommand
We drop our hacky shell wrappers, and just track it all in setup.py
2013-04-12 08:27:09 -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
Gene Czarcinski 2a7a634df0 Install virtcli directory 2013-04-10 17:45:12 -04:00
Cole Robinson dfaf00af4c Autogenerate POTFILES.in 2013-04-03 19:42:59 -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 d6c8ad0297 Wire up python unit tests, unify gettext setup 2013-04-03 18:22:05 -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