This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).
Change-Id: Id9f3cc222d06698d89108bd6c3d98bebcde287dc
This adds a unit test for the behavior when an object has a unicode
string field. If on python 2, the repr is encoded to the default
encoding (ascii) before being returned. This is to ensure calls like
str(obj_repr) will work under python 2.
This patch also adjusts logic to make the code compatbile for Python 4.
[1] http://astrofrog.github.io/blog/2016/01/12/stop-writing-python-4-incompatible-code/
Co-Authored-By: melanie witt <melwittt@gmail.com>
Change-Id: I65dd271ac2198b384d201349607e74992c447f75
"ComparableVersionedObject"
In python3, A class that overrides __eq__() and does not define
"__hash__()" will have its __hash__() implicitly set to None.
This will cause the set method to unhashable failed.
https://docs.python.org/3/reference/datamodel.html#object.__hash__
Change-Id: I21685303e9bd233241b7b4216e3feb7bdaecc0a4
Closes-Bug: #1687592
This change removes the now unused "warnerrors" setting,
which is replaced by "warning-is-error" in sphinx
releases >= 1.5 [1].
[1] http://lists.openstack.org/pipermail/openstack-dev/
2017-March/113085.html
Change-Id: I3f558a5bbb5c536c26929e9e6d79628a7e377a9a
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848
Change-Id: I1af28a757450789f0f523847831b42e016f785fd
The gating on python 3.4 is restricted to <= Mitaka. This is due
to the change from Ubuntu Trusty to Xenial, where only python3.5
is available. There is no need to continue to keep these settings.
Change-Id: Ic93146804d55e98c80733b2f14cde36908a42bc2
This is done so that nullable Object field's schema can be given the null or
object type property.
implements bp json-schema-for-versioned-object
Change-Id: I43b04a76cccc9d4f893162535050fed6940bee6c
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove oslo.versionedobjects.
Change-Id: I003cdce359e5d79a73f0c3f274765ad1f50bf3a4
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators. We can use
dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more readable.
2.In py2, the performance about list should be negligible,
see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html
Change-Id: I6bf760e6f3db50696dc87230c444f9ed493615f0
The release management team have indicated this is their preferred way
to collect release notes in future.
Closes-Bug: #1634356
Change-Id: Iac926d87064af92ea7e2e8eb24c72effca2641bc
When the 'Object' field stringifys a value, it is
currently hardcoded to report the object name that
the field was initialized with. This used to be
sufficient, until the 'subclasses' parameter was
added. When subclasses=True, the value may be any
arbitrary subclass, so we should be reporting the
actual object name associated with the value.
Closes-Bug: #1638577
Change-Id: I0bb4ade30a60554710a12f0f058945ef43826eff