784 Commits

Author SHA1 Message Date
Stephen Finucane
76474ff0da Remove six
Change-Id: I431bf688ca51825622d726f01fed4bb1eea5c564
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-07-26 17:37:49 +01:00
Stephen Finucane
ac07b56336 Drop Python 2.7 support
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>
2021-07-26 17:37:07 +01:00
Michael Johnson
63fe135f44 Fix coverage and getargspec deprecation
This patch fixes the coverage reporting and addresses the deprecation
of inspect.getargspec in python 3.x.

Change-Id: I3573e81a2d3b52d55b16a7d0fa6bbb82fb18fc04
0.10.1
2020-11-19 10:07:27 -08:00
Thomas Goirand
a3ce4a1542 Python 3.9: use encodebytes / decodebytes
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
2020-10-15 10:53:39 +02:00
Zuul
a274dcada0 Merge "Remove use of '__import__'" 0.10.0 2020-02-05 07:47:59 +00:00
Zuul
b261be6e73 Merge "Allow fault code customization" 2020-01-02 10:46:44 +00:00
Stephen Finucane
e90aecb68f Remove use of '__import__'
These are not discoverable and, in this particular instance,
unnecessary.

Change-Id: I43757263ebbb009d10a6023bbd126b41408cbdc0
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-12-19 12:18:52 +00:00
Stephen Finucane
64530e8eb5 Fix misc README issues
Change-Id: I973a40a64c98433bb0112576615ec72e18b84485
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-12-19 12:18:31 +00:00
Stephen Finucane
2be89e587c sphinxext: Fix Sphinx 3.0 compatibility
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>
2019-11-18 22:00:02 +00:00
Stephen Finucane
a54cdfb6c7 tox: Remove pecan-devNN tox targets, centralize deps
Change-Id: Ie8498b6a21143091f7514b56b059b3207945fd4f
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-11-18 21:59:52 +00:00
Stephen Finucane
7092903ba1 Rework documentation build
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>
2019-11-18 13:58:59 -08:00
jing.liuqing
c23890d619 Allow fault code customization
Sometime we need to custom error error, see also [1]

[1]: https://docs.aws.amazon.com/zh_cn/AmazonS3/latest/API/ErrorResponses.html

Change-Id: I8ce01fbcf913648c1efa6a2acd3a2069f9c2e403
2019-06-30 23:32:51 +08:00
Stephen Finucane
993d8a06d5 Undo rename of 'wsme.rest.json', 'wsme.rest.xml' modules
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>
2019-05-15 12:24:22 +01:00
Zuul
59d42ef55c Merge "Remove simplejson support" 2019-05-14 16:47:17 +00:00
Zuul
1e870375d7 Merge "Remove support for SPORE protcol" 2019-05-14 16:44:39 +00:00
Zuul
310e17ec4d Merge "Remove support for SQLAlchemy protocol" 2019-05-14 16:44:38 +00:00
Zuul
764c091ca0 Merge "Remove support for SOAP protocol" 2019-05-14 16:41:28 +00:00
Zuul
2332463ae7 Merge "Remove support for Ext Direct protocol" 2019-05-14 16:41:27 +00:00
Zuul
e4ccadbc0a Merge "Remove cornice integration" 2019-05-14 16:34:04 +00:00
Zuul
812f082db2 Merge "WebOb: Do not use the deprecated best_match method" 2019-05-14 16:19:01 +00:00
Stephen Finucane
bff9624cbc trivial: Reformat setup.cfg
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>
2019-05-02 20:42:18 +00:00
Cyril Roelandt
0ed01983a7 WebOb: Do not use the deprecated best_match method
Doing so requires WebOb >= 1.8.0 so that's updated

Change-Id: I5ddbc9244446afdd8e0fbe547967805de3e4071d
Closes-Bug: #1819752
2019-05-02 19:44:02 +00:00
Zuul
cf4d3b10ae Merge "Remove turbogears integration" 2019-05-02 18:34:56 +00:00
Zuul
5d6c3ee8d6 Merge "Remove tox templating" 2019-05-02 18:20:28 +00:00
Zuul
433930e4fa Merge "gitignore: Ignore '.eggs' directory" 2019-05-02 18:01:22 +00:00
Zuul
981b8d0237 Merge "Mark tests as passing again" 2019-05-02 17:59:45 +00:00
Stephen Finucane
6f6dbfadef Remove simplejson support
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>
2019-05-02 10:58:12 -06:00
Stephen Finucane
128f591b7e Remove support for SPORE protcol
Yet another one bites the dust.

Change-Id: I604a6bfd0dbc39495a4dc2e66175d0d5408c472f
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-05-02 10:56:51 -06:00
Stephen Finucane
4ea5f92704 Remove support for SQLAlchemy protocol
Change-Id: I3b6ea08bd4ab626a15a6a16248d609668db7fbab
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-05-02 10:56:49 -06:00
Stephen Finucane
4c5c051fcb Remove support for SOAP protocol
This also allows us to removal lxml as an optional dependency.

Change-Id: I7ce0418012070677e36e41236487f3fabc0763a8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-05-02 10:54:56 -06:00
Stephen Finucane
3fb55f7f4f Remove support for Ext Direct protocol
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>
2019-05-02 09:41:00 -06:00
Stephen Finucane
21dadaef0e Remove cornice integration
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>
2019-05-02 09:41:00 -06:00
Stephen Finucane
a9faca002b Remove turbogears integration
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>
2019-05-02 09:41:00 -06:00
Stephen Finucane
f4d26d9863 Remove tox templating
Cmon guys. Not cool.

Change-Id: Ib12ff96340687dd9fb64bef44def9f1e28ac45d9
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-05-02 09:41:00 -06:00
Stephen Finucane
7a85c8a5ac gitignore: Ignore '.eggs' directory
Change-Id: Id259eb8bd0902d987822a308b42f9b0284035c6c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-05-02 09:40:40 -06:00
Stephen Finucane
2606e64e5e Mark tests as passing again
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>
2019-05-02 09:10:52 -06:00
OpenDev Sysadmins
6680933d57 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:34 +00:00
Zuul
1d73d6e504 Merge "Update the tox.ini template and regenerate tox.ini" 2019-03-14 16:03:53 +00:00
Zuul
e59a014a7e Merge "Move CI jobs in-tree, add Python 3.6 and 3.7" 2019-03-14 15:45:15 +00:00
Cyril Roelandt
1b5ca365b4 Fix overindentation
Without this fix, "tox -epep8" fails.

Change-Id: I5c95add72735fd3c01b22a84b07ccf8d78e86aa2
2019-03-12 20:41:43 +01:00
Dmitry Tantsur
ac9c58cd6c Update the tox.ini template and regenerate tox.ini
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
2019-03-12 14:25:03 +01:00
Dmitry Tantsur
f054ccbf4d Move CI jobs in-tree, add Python 3.6 and 3.7
Fixes a pep8 error that managed to sneak in.

Change-Id: I90b91a69537934fd279bda808aae2d2c653b17e1
2019-03-12 12:20:36 +01:00
Chris Dent
3957f12aa2 Get WSME tests working again
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>
2018-11-12 16:16:30 +01:00
zhulingjie
9d2d21e4c1 Python 3 compatibility: fix xrange/range issues
xrange is not defined in python3. update it to range.

Change-Id: I5de140e4107980383682138b53973488f92fa54e
Closes-Bug: #1797768
2018-10-09 04:10:17 -04:00
qingszhao
033b03fa19 Removed older version of python added 3.5
In setup.cfg file the python 3.5 is added

Change-Id: I46c9d28f4dae0bba29af14e8beb4515d1d59fbd7
2018-09-30 10:07:52 +08:00
Vladyslav Drok
f36a607124 Improve handling of :module: in wsme documenters
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
0.9.3
2018-06-27 10:34:05 +03:00
Vladyslav Drok
6dc053296f Change flask restful module name
It moved from flask.ext.restful to flask_restful.

Change-Id: I160e665976b13a263ee04a0472b67c0fd99e218d
2018-06-26 19:59:32 +03:00
Zuul
7498845c68 Merge "fix a typo in documentation" 2018-04-11 11:00:38 +00:00
melissaml
256dca7a71 fix a typo in documentation
Change-Id: I9696d3d12f4ab24505e223e6737a306e1f82e4f5
2018-04-11 14:44:36 +08:00
Chris Dent
1440eeb13b Fix (some) tests for modern flask and pep8
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
2018-04-09 13:24:20 +01:00