Commit Graph

795 Commits (master)

Author SHA1 Message Date
Stephen Finucane 8312bb23d4 setup: Fix classifier
Change-Id: Id87045d233a4a7c5574e0138f0da7ade8a5d7fd7
Signed-off-by: Stephen Finucane <>
2023-09-21 19:00:56 +01:00
Stephen Finucane 784112aef6 Drop support for Python < 3.8, use PTI test interface
Everything except the check-requirements-job template, since we're not
an official OpenStack project.

Change-Id: I610a35f12e0570477c5f6c24af6252be2525bd17
Signed-off-by: Stephen Finucane <>
2023-09-11 11:08:06 +01:00
Stephen Finucane c898b2c5ff setup: Update classifiers
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 <>
2023-09-07 15:48:08 +01:00
Stephen Finucane db14d97dbf Migrate to importlib.metadata
pkg_resources is removed in Python 3.12.

Change-Id: I6ea6d9eb098378dbab52cceb9aa6df335ef9407b
Signed-off-by: Stephen Finucane <>
2023-09-07 15:48:08 +01:00
Stephen Finucane 87c586051f Remove use of deprecated APIs
inspect.getargspec is gone in Python 3.11.

unittest.TestCase.assertRaisesRegex is preferred to

Change-Id: Ib6ec492e8c892424ab408a96696df346c3bbfde3
Signed-off-by: Stephen Finucane <>
2023-09-07 15:48:08 +01:00
Stephen Finucane 16eeb35127 Fix compatibility with recent Sphinx versions
Change-Id: Ib8bdcb82c595e4f19df224834fe102425cb0f271
Signed-off-by: Stephen Finucane <>
2023-09-07 15:48:08 +01:00
Stephen Finucane 2e3b14a46c Fix flake8 issues
Change-Id: I2d615054b5b3ad3e1ab992a8488e4c10bd86afd7
Signed-off-by: Stephen Finucane <>
2023-09-07 15:48:08 +01:00
Stephen Finucane e392656946 tests: Migrate to pytest
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

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

Change-Id: Ie7b57b1f34957459793bcaa5253ce1b446e36336
Signed-off-by: Stephen Finucane <>
2023-09-07 11:09:28 +01:00
Rafael Weingärtner a45e0af97e Fix code to work with Sphinx>5.0
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

Change-Id: I65c2bd535fe366933e9aaf842ee9b953c5af375b
2023-09-04 13:40:49 -03:00
Stephen Finucane 80bda9053f sphinxext: Resolve compatibility with Sphinx 4.x
This necessitates bumping the lowest version supported to avoid having
to maintain shims.

Change-Id: I6c324a5a7c2b7296a15aaa57fc8b98491099702c
Signed-off-by: Stephen Finucane <>
2021-07-26 17:38:10 +01:00
Stephen Finucane 8597c57219 Remove useless __future__ imports
We're in the future.

Change-Id: I5b0ac0bc6d8d01c1f8db5a1f93951b80c49f1c93
Signed-off-by: Stephen Finucane <>
2021-07-26 17:37:49 +01:00
Stephen Finucane 76474ff0da Remove six
Change-Id: I431bf688ca51825622d726f01fed4bb1eea5c564
Signed-off-by: Stephen Finucane <>
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 <>
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
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__'" 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,

Change-Id: I43757263ebbb009d10a6023bbd126b41408cbdc0
Signed-off-by: Stephen Finucane <>
2019-12-19 12:18:52 +00:00
Stephen Finucane 64530e8eb5 Fix misc README issues
Change-Id: I973a40a64c98433bb0112576615ec72e18b84485
Signed-off-by: Stephen Finucane <>
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 <>
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 <>
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 <>
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]


Change-Id: I8ce01fbcf913648c1efa6a2acd3a2069f9c2e403
2019-06-30 23:32:51 +08:00
Stephen Finucane 993d8a06d5 Undo rename of '', '' 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 <>
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 <>
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 <>
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 <>
2019-05-02 10:56:51 -06:00
Stephen Finucane 4ea5f92704 Remove support for SQLAlchemy protocol
Change-Id: I3b6ea08bd4ab626a15a6a16248d609668db7fbab
Signed-off-by: Stephen Finucane <>
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 <>
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 <>
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 <>
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

Change-Id: Ifeff1f40834289093dd997ce34fc3b42c3abbc13
Signed-off-by: Stephen Finucane <>
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 <>
2019-05-02 09:41:00 -06:00
Stephen Finucane 7a85c8a5ac gitignore: Ignore '.eggs' directory
Change-Id: Id259eb8bd0902d987822a308b42f9b0284035c6c
Signed-off-by: Stephen Finucane <>
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 <>
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:

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 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