inspect.getargspec was deprecated since Python 3.0 and
inspect.getfullargspec is its replacement with correct handling of
function annotations and keyword-only parameters[1].
[1] https://docs.python.org/3/library/inspect.html#inspect.getargspec
Change-Id: I29478df88665ee5311e3ba308ab645c47e5b0fc8
The repo is Python 3 now, so update hacking to version 3.1.0 which
supports Python 3.
Fix problems found.
Remove hacking and friends from lower-constraints, they are not needed
for installation.
Change-Id: I810e4c30513746bc46a3e65b398539929a7ac6b0
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I26f2df6d4657133a5c7e6ed85298aa843c1bdd73
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This allows us to use a new version of flake8 that supports Python
3-only syntax. Existing issues are resolved.
Change-Id: I5de7e5cde6a5260f4e7e57586952256b59d3756d
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
We no longer need much of the functionality this was providing.
Change-Id: I0f625b714950a712249757906974715358f9e6c6
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
In newer versions of oslotest, moxstubout will be deprecated.
So we can get out in front of the curve now and remove it.
Change-Id: I7b39aa52d3051e81a908277a6fc956d680d653e7
Signed-off-by: Charles Short <zulcss@gmail.com>
Remove Service, Database and RPC fixtures, since we don't have services and
DB/RPC APIs to mock in this library. Remove unused configuration fixtures.
Change-Id: I3be004fa873baa06dae9e0fb55740b035581a85d
Hide the utils module, which should not be part of the public API.
utils.py contains functions required internally (moved from Nova).
Change-Id: I3666d35d28592bd49768424049142e5d353a916d
Closes-Bug: 1417284
Remove remaining references to "Nova" where possible, code cleanup.
Also removed IP fields
Co-Authored-By: Michal Jastrzebski (inc0) <michal.jastrzebski@intel.com>
Change-Id: Ibad8f9fc6453321055029ad69b0374261509b9d5
Closes-Bug: 1417287
In nova, we used a metaclass to ensure that merely defining an object as
inheriting from the base would register it for use. I don't feel that is
a responsible way for the library to behave, since just importing a module
full of objects would allow things to be registered which might enable
RPC methods that are undesired.
Further, it complicated our ability to register alternate implementations
of certain objects, and provided no end of complication to our tests.
This patch adds a decorator-based object registry that looks much the same,
but requires explicit opt-in registration to objects before they can be
deserialized over RPC and instantiated by name.
Change-Id: Ic50ea4d59df7981eb8a413b5c80ca47155864166
Remove extraneous utility code and tests.
Skip tests related to remote object verification until we can rewrite
them (see the adopt-oslo-versionedobjects spec for details).
Fix pep8 errors.
Update requirements.
Set python's hash seed in tox.ini for tests that compare things that
might come out in a different order.