227 Commits

Author SHA1 Message Date
Monty Taylor
0b5735cb3d Just use d2to1 via hooks mechanism.
It turns out we can just have only our code and use d2to1 directly.

Change-Id: I4700ad51bf4377797ede55d3cf5ec09f424874ed
2013-03-11 18:13:45 -04:00
Monty Taylor
37e0c76693 Remove version that had been used for testing.
Change-Id: I1ff919b9629c08893ca3df3c38a5afaf21155657
2013-03-10 21:25:54 -04:00
Monty Taylor
e6b1755d70 Fix things up to work with nova.
Add extern/six back - turns out setup_requires isn't transitive.
Make sure .gitignore is right.
2013-03-10 21:14:15 -04:00
Monty Taylor
23d1a0fa08 Split out oslo.packaging.
Include logic taken from d2to1 to allow us to inject into setup.py. Combined
with ols openstack/common/setup.py code.

Change-Id: I27b341403bb8245e38f8e3c386f1a835b90b1843
2013-03-10 18:02:43 -04:00
Jenkins
536014b39b Merge "Add 'is' operator to extra specs ops." 2013-03-07 22:55:19 +00:00
Jenkins
467905860a Merge "Don't log a traceback on rpc call timeout." 2013-03-04 14:19:38 +00:00
Jenkins
04b4f25e88 Merge "Add simple in-memory cache from nova." 2013-03-01 21:43:27 +00:00
Jenkins
f764f989f1 Merge "Redis-based matchmaker" 2013-03-01 21:22:22 +00:00
Jenkins
fe98b15721 Merge "openstack.common.setup: fails to get version from git" 2013-02-25 22:25:26 +00:00
Jenkins
da7ac283bf Merge "Decode / Encode string utils for openstack" 2013-02-25 19:32:05 +00:00
Davanum Srinivas
a8f87c5a5e openstack.common.setup: fails to get version from git
quantum run_tests.py fails because
openstack.common.setup._get_version_from_git fails.  It is because
quantum unit tests run under quantum/tests/unit instead of git root dir.
So the function should check parent dirs for .git.
cinder folks seem to have hit this bug (1125416).

ERROR: test_network_gateway_update (quantum.tests.unit.nicira.test_networkgw.NetworkGatewayExtensionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "quantum/quantum/tests/unit/nicira/test_networkgw.py", line 70, in setUp
    config.parse(args=args)
  File "quantum/quantum/common/config.py", line 99, in parse
    version='%%prog %s' % quantum_version.release_string())
  File "quantum/quantum/openstack/common/version.py", line 63, in release_string
    self.release = self._get_version_from_pkg_resources()
  File "quantum/quantum/openstack/common/version.py", line 56, in _get_version_from_pkg_resources
    return setup.get_version(self.package)
  File "quantum/quantum/openstack/common/setup.py", line 334, in get_version
    raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository.

Change-Id: I2e24c00b5ba8f35381cac081ff72d86ea0d75d19
Fixes: bug #1131162 and bug #1125416
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2013-02-25 16:16:55 +09:00
Jenkins
4a87bf5025 Merge "Move DB thread pooling to DB API loader" 2013-02-20 21:17:02 +00:00
Jenkins
cf19732750 Merge "Fix "DirectConsumer needs mirrored queue support"" 2013-02-20 01:38:37 +00:00
Jenkins
88f1fa3928 Merge "Fast serialization of RPC envelopes for Kombu" 2013-02-20 01:31:53 +00:00
Jenkins
20cc2ebda0 Merge "Implement replay detection." 2013-02-20 01:31:50 +00:00
Jenkins
c2aff4b7b2 Merge "Add function for listing native threads to eventlet backdoor" 2013-02-19 22:27:46 +00:00
Robert Myers
87260f5d4a Change the check for the existence of .git directory.
In common setup the check for the .git directory is too
restrictive. Instead of checking that it is a directory just
check to see if it exists. That way if the project is part
of a submodule it will continue to work correctly.

Change-Id: If6b6531ab5778ac17537e3f18bde1844620c8316
Fixes: bug 1126416
2013-02-15 14:32:07 -06:00
Davanum Srinivas
1f9189cfff returncode for Popen is valid only after communicate call
Found when testing a bug in cinder (1125416), code
relying on throw_on_error won't work because returncode
is None if checked before the communicate() method is
called

Change-Id: I8c9dd00396346ec3ad7bbe1dc17643c385da8d6f
2013-02-15 10:46:18 -05:00
Jenkins
3fb2616bf5 Merge "sort options to make --help output prettier" 2013-02-13 12:52:14 +00:00
Jenkins
9985d16b07 Merge "Allow running test in uninstalled source tree." 2013-02-11 02:32:04 +00:00
Jenkins
79892b6e56 Merge "Support testing args for LocalhostMatchMaker." 2013-02-11 02:31:30 +00:00
Jenkins
a789a76f83 Merge "Add a fixture for dealing with mock patching." 2013-02-11 02:29:20 +00:00
Monty Taylor
46834756f9 Allow running test in uninstalled source tree.
It was pointed out that we missed the use-case that running tests
in a fresh tree checkout should work - and we missed that by
reaching too far into the setup module interface. Shame on us.

Change-Id: Ic0056a3113b308f063d927484e1e4a44c9316a2d
2013-02-10 04:21:24 -06:00
Jenkins
ad5ac5d2e8 Merge "Implements import_group" 2013-02-09 19:00:19 +00:00
Jenkins
9af2e5e330 Merge "Update HACKING.rst per recent changes" 2013-02-09 18:25:11 +00:00
Jenkins
c277356c00 Merge "Exchanges should return directed topics." 2013-02-08 15:58:59 +00:00
Jenkins
9d0918691b Merge "Allow to_primitive to ignore datetimes" 2013-02-08 02:47:30 +00:00
Jenkins
bd71cd01e8 Merge "timeutils: considers that now is soon" 2013-02-06 15:05:33 +00:00
Jenkins
b29e34f64d Merge "Emit a warning if RPC calls made with lock." 2013-02-06 14:46:50 +00:00
Jenkins
d185c9a51d Merge "Be explicit about set_default() parameters" 2013-02-06 14:41:47 +00:00
Jenkins
51bf4fc028 Merge "Remove duplicate DB options" 2013-02-06 14:41:45 +00:00
Jenkins
59d4948b9c Merge "Eliminate gratuitous DB difference vs Nova" 2013-02-06 14:41:43 +00:00
Jenkins
ee88a28e96 Merge "Import sqlalchemy session/models/utils" 2013-02-06 14:41:16 +00:00
Jenkins
5518a824d2 Merge "Mark password config options with secret" 2013-02-05 16:26:21 +00:00
Jenkins
13156a6823 Merge "Only unpack replies on caller." 2013-02-05 16:23:23 +00:00
Jenkins
99cff89cd2 Merge "Use bytes instead of str" 2013-02-05 16:23:20 +00:00
Jenkins
23b2c9b322 Merge "Support for SSL in wsgi.Service" 2013-02-02 16:52:24 +00:00
Jenkins
7daefa0ecc Merge "Add _FATAL_EXCEPTION_FORMAT_ERRORS global." 2013-02-02 16:42:39 +00:00
Jenkins
38a0e878d7 Merge "Use importutils for matchmaker import." 2013-02-02 16:22:58 +00:00
Jenkins
709933a26f Merge "Dict args safe processing." 2013-02-02 16:21:56 +00:00
Jenkins
a8b769b893 Merge "Support running uninstalled in a tarball dir." 2013-01-30 07:14:41 +00:00
Jenkins
b6f8e93bbe Merge "Default lockutils to using a tempdir" 2013-01-29 07:41:13 +00:00
Jenkins
25360377f8 Merge "Fix Pep8 Warning" 2013-01-29 07:38:56 +00:00
Dirk Mueller
981b94c6e1 Fix Pep8 Warning
Fixes
E271 multiple spaces after keyword "return  _run_shell_command("

Change-Id: Ic6b2c88a0b7cabd04341d073ef837a13c1bb7a29
2013-01-28 18:18:03 +01:00
Jenkins
0110ae2795 Merge "Fixes "is not", "not in" syntax usage." 2013-01-28 12:42:41 +00:00
Jenkins
ccb376ca10 Merge "Use testtools as test base class." 2013-01-28 07:55:57 +00:00
Jenkins
ad40825688 Merge "Start adding reusable test fixtures." 2013-01-28 07:55:56 +00:00
Mark McLoughlin
eaf7e11587 setup: count revs for revno if there are no tags
We currently use 'git describe --always' to figure out the number of
commits there have been leading up to the HEAD commit.

However, if there are no tags in the repo, git-describe just returns
the sha hash of HEAD and we fail.

In that case, use 'git rev-list HEAD | wc -l' so we can be  #winning.

Change-Id: I345e0ee32189504276b3dfd3367057ce1d4a2b06
2013-01-25 17:24:24 +00:00
Jenkins
fab6b1f6a7 Merge "UTC ISO8601 from timestamp" 2013-01-23 22:02:03 +00:00
Jenkins
5fdc24b716 Merge "Move logging config options into the log module" 2013-01-21 23:48:54 +00:00