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>
Apparently this project uses templating for tox.ini..
Deprecate support for SQLAlchemy, since it has never worked in the first
place, and only officially supports ancient versions of SQLAlchemy.
Drops support for tgXX environments that do not do anything now.
Change-Id: Ia9b392f83ad4e9c1450a13c908813c7b6dbe74cb
It had been a long time since WSME had any patches, so the
tests had not been run in a while. This corrects errors found
while bring the tests back to work.
Change-Id: I67efc4151d6eaec673b431904aa7288a7501cb43
Co-Authored-By: 98k <18552437190@163.com>
It appears that in newer sphinx versions the index of :module:
directive in the resulting documenter object array has changed,
it is not the last element anymore. Apart from that, it is
possible to have several :module: entries in class for example.
This change fixes the issue for service, function and type
wsme documenters.
Change-Id: Icf44f8af0c1e6e70d8e921615efe03b845885be7
Somewhere along the way, WSME and flask/werkzeug have got out of sync
and tests have started failing. Since there aren't regular contributions
to WSME we don't catch these changes, so this may have happened months
or years ago.
I have adjusted tests to attempt to account for what I can, but one test
fails to work so I have marked it as an xfail. It works correctly with
werkzeug 1.13.x but not later. Since WSME is in something worse than
maintenance mode, I'm not inclined to fix this.
pep8/flake8 in python3 is more strict than python. The gate now
runs the pep8 jobs using python3 by default, so the local jobs
should as well. This changes the job and also fixes the new problems it
points out.
There are other failures, but they are present in master as well, so
leaving that for other changes.
Change-Id: I57ae0405e0d6ddba0bb1dac93020fb08a0fc7c89