Everything except the check-requirements-job template, since we're not
an official OpenStack project.
Change-Id: I610a35f12e0570477c5f6c24af6252be2525bd17
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
We don't support Python 3.5 any more but to be honest this whole thing
is unnecessary now that we've 'python_requires'.
Change-Id: I27d455d6379f059ed0476360c7f32a776ecf7d2b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
inspect.getargspec is gone in Python 3.11.
unittest.TestCase.assertRaisesRegex is preferred to
unittest.TestCase.assertRaisesRegexp.
Change-Id: Ib6ec492e8c892424ab408a96696df346c3bbfde3
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
nose is not compatible with Python 3.10 or later and stestr can't handle
multiple test directories nor test directories that are not importable
modules.
While here, we also fix the case for two other dependencies to prevent
test failures. We also update the tox file to reflect modern best
practices.
Change-Id: Ie7b57b1f34957459793bcaa5253ce1b446e36336
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
The patch [1] introduced the use of Sphinx 6.2.1, which has some
incompatibilities with the current code base.
As we can see in [2], the `no_docstring` argument of
`sphinx.ext.autodoc.Documenter.add_content()` was removed. It was
already not used in our code base, therefore, we can remove its
usage without any issues.
[1] 289feed317
[2] https://www.sphinx-doc.org/en/master/extdev/deprecated.html#dev-deprecated-apis
Change-Id: I65c2bd535fe366933e9aaf842ee9b953c5af375b
This necessitates bumping the lowest version supported to avoid having
to maintain shims.
Change-Id: I6c324a5a7c2b7296a15aaa57fc8b98491099702c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This is now a Python 3-only package. We must temporarily cap Sphinx at
3.x or lower to get the build passing, but this can be addressed in a
follow-up shortly.
Change-Id: I1923d1dcd92cce349211dee5b01a3c365b151ead
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This patch fixes the coverage reporting and addresses the deprecation
of inspect.getargspec in python 3.x.
Change-Id: I3573e81a2d3b52d55b16a7d0fa6bbb82fb18fc04
The methodes base64.encodestring and base64.decodebytes have been
marked as obsolete aliases for a long time, and in Python 3.9, they
are simply gone. WSME must switch to the encodebytes / decodebytes
to keep working in Python 3.9, and that's what this patch does.
Change-Id: Id6b70cffa2010ce84af0754342e39e1c82fc5d4d
These are not discoverable and, in this particular instance,
unnecessary.
Change-Id: I43757263ebbb009d10a6023bbd126b41408cbdc0
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Sphinx is currently issuing the following warnings for projects using
this extension.
RemovedInSphinx30Warning: sphinx.locale.l_() is deprecated. Please
use `_()` instead.
Head this off before it becomes an issue.
Change-Id: I108d36ab909a7afd4fd28bfb565812f69ae02118
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Modern docs! This fixes a couple of issues introduced in the previous
patches and generally cleans up a lot of mess.
Change-Id: Ib964c16251bce12fe498b13455ed3515ef205916
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Use absolute imports to ensure we import the standard library 'json'
module and not our module that shadows it.
Change-Id: I7b55aad974a0145934069f14c91ce03e41bccef3
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Came to see if there was documentation configured here. Ended up fixing
formatting. So be it.
Change-Id: I61247ff85571c775dd7be823127fe1ca4ca622d4
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This was allegedly included back when simplejson was more performant
that the 'json' library in Python's library. It's additional complexity
that we simple don't need. Remove it. This also allows us to clean up
the tox file significantly.
Note that we must also rename the 'json' module to 'json_utils', as this
was shadowing a built-in library. This is a latent issue that was
highlighted by removing of 'simplejson' imports.
Change-Id: Id9faa9859993e598e2fd08133de576b740790bf3
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This also allows us to removal lxml as an optional dependency.
Change-Id: I7ce0418012070677e36e41236487f3fabc0763a8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
I didn't even know this was a thing. Needless to say, we can safely
remove this now.
Change-Id: I92c9c0fe99af61c438ab92a61bd8dd8bb192054b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
As with turbogears, no one was using this in OpenStack and therefore we
can and should remove this adaptor.
Change-Id: I0d3942680c1156e57d70f334caea6b89590b46c7
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
No one in OpenStack that's still using this is using turbogears. Kill
it.
Change-Id: Ifeff1f40834289093dd997ce34fc3b42c3abbc13
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Something has changed under the hood here and the test is now working
again. Fix things.
Change-Id: I15d3618c1b56b20af772e89385d5e450bb654ccb
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>