Commit Graph

367 Commits (e9204ee7b702f67c4de1c777db9482b065126407)

Author SHA1 Message Date
Doug Hellmann e9204ee7b7
add property methods to extension for more entry point values
The underlying EntryPoint class has some similar methods to fetch
these values, but they depend on the version of importlib.metadata
that is installed, so this provides a consistent API

Change-Id: I7a1b9541f0e4042a224e49c890ba3c63e8a5a259
Signed-off-by: Doug Hellmann <>
2020-07-12 17:50:24 -04:00
Doug Hellmann bc04ca91e0
sphinxext: fix warning message for detailed list
Fix the way the warning for undocumented modules in a detail list is
produced. The new importlib.metadata.EntryPoint type is derived from
namedtuple so using string interpolation means the multi-part tuple
causes an error. Take the opportunity to include a more detailed

Change-Id: I02223a982258a1bf8fc28fa91c7c090c7ac3554e
Signed-off-by: Doug Hellmann <>
2020-07-12 15:01:34 -04:00
Doug Hellmann 5eb3ef2de3
add release note before major version update
Change-Id: I1ffe194f9edfffac07c9c78f9691e999f2e61246
Signed-off-by: Doug Hellmann <>
2020-07-10 14:19:16 -04:00
Doug Hellmann d5297167e0 switch to importlib.metadata package
Load entry points using 'importlib.metadata' instead of 'pkg_resources'.

Include a caching layer.  The cache stores the parsed text data from all
of the ini input files in a single JSON file with a name based on the
hash of the path entries and the mtimes. This should produce a unique
filename for each import path, regardless of the use of a virtualenv.

The data is stored in a format that means no other files need to be
examined or parsed in order to return EntryPoint objects.

Change-Id: I8b08f289d446f4775eac1e1a91997fa96f25f641
Depends-On: Ic6db7af34c87a636bfe55bacae03c42154f4b9c7
Signed-off-by: Doug Hellmann <>
2020-07-06 08:39:52 -04:00
Sean McGinnis 01c12eca14
Remove Travis CI config
Travis is not actually used for this repo. Remove the old configuration
file to clean things up.

Change-Id: I862f8e0222a7f0e12c7b67ad305e021b76859fe4
Signed-off-by: Sean McGinnis <>
2020-06-08 08:16:34 -05:00
Michał Górny 34b9a13049 Replace external mock with built-in unittest.mock
Now that stevedore does not support Python 2 anymore, there is no need
to ever use the external 'mock' package.  Python 3.3+ has it integrated
as 'unittest.mock', so just use that.

Change-Id: I28a50cac12670bb6987b4c7794a15e15aa1fe965
Signed-off-by: Michał Górny <>
2020-06-05 15:46:27 +02:00
Zuul 0c10f5cf21 Merge "Stop to use the __future__ module." 2020-06-03 11:06:55 +00:00
Hervé Beraud db43e802fb Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]


Change-Id: I5f8107287877dc5dc4a12c1f85e8671c8d49f56f
2020-06-03 10:34:57 +02:00
Andreas Jaeger 02a28cce85 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also

Change-Id: Ie53af423c56f3355e7e911e6f2efd6c73c6d57c5
2020-06-02 13:52:02 +02:00
OpenStack Release Bot 45348742e1 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].


Change-Id: I60066db4e84dd3807cd9c35d44e8253ff1c54438
2020-05-04 18:22:39 +02:00
Sean McGinnis edc7f06a92 Mark sphinx extensions thread safe
This adds the return of some metadata to our sphinx extension setup to
indicate they are thread safe. This is needed to allow consuming
projects to do multithreaded docs builds. In some cases, this can save a
noticeable amount of time in job execution.

Change-Id: I43e8f0c992eaec9f5b669eea4ae551c8a3273588
Signed-off-by: Sean McGinnis <>
2020-04-21 15:14:20 +01:00
Stephen Finucane ee784d5de7 Remove dead files
You don't need a file when using pbr, and the announce.rst
file wasn't referenced anywhere and has been effectively replaced by

Change-Id: Ib40d6f194a47901487c4fca1220dad7002d31984
Signed-off-by: Stephen Finucane <>
2020-04-21 15:14:20 +01:00
Stephen Finucane 1aca4bcbb7 Drop Python 2.7 support
Change-Id: I7ae34cb701111adb2968e9b0c153dfd60aeb2fbb
Signed-off-by: Stephen Finucane <>
Sem-Ver: api-break
2020-04-21 15:14:10 +01:00
OpenStack Release Bot 08cf225eee Update master for stable/ussuri
Add file to the reno documentation build to show release notes for

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on

Change-Id: Ib0b263bcc254061c17a42bcb974591d10213545a
Sem-Ver: feature
2020-04-14 10:19:45 +00:00
Zuul 5165a274b7 Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 2019-12-19 09:30:29 +00:00
pengyuesheng 120b70b11a Switch to Ussuri jobs
Change-Id: I473d9bb2d8a1f936ea220baa35815d64340eb9c6
2019-10-25 15:10:22 +08:00
Zuul 568361905d Merge "Update master for stable/train" 2019-10-10 12:17:03 +00:00
pengyuesheng 22d92824d2 Blacklist sphinx 2.1.0 (autodoc bug)
See for upstream details

Change-Id: I0573019ba9e98d31ccb43179590a970c9b7647af
2019-10-10 15:05:44 +08:00
pengyuesheng 234a272d98 Update the constraints url
For more detail, see

Change-Id: I82437c3e68e65475df7490e34e6f47b2b927a982
2019-09-29 10:16:30 +08:00
OpenStack Release Bot 3864b2ad6e Update master for stable/train
Add file to the reno documentation build to show release notes for

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on

Change-Id: I8d08e2f45efacaf96f6935c9ce86813263b2f2c3
Sem-Ver: feature
2019-09-20 17:44:47 +00:00
Corey Bryant 6817543c30 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:

Change-Id: Idcfef4d6661e51ba36caa0885e36df3784e483ab
Story: #2005924
Task: #34234
2019-07-05 15:15:24 -04:00
Elod Illes feac47186d Add local bindep.txt
As it was announced [1] global bindep-fallback.txt was removed and now
projects need to have a local bindep.txt to be able to install binary
dependencies for testing.

In documentation zuul job graphviz package ('dot' command) is needed.
Without that the job fails with:
    dot command 'dot' cannot be run (needed for graphviz output),
    check the graphviz_dot setting


Change-Id: I5efddfc72e9dc0dd1b8b9e1e37708e1d30ef3c39
2019-06-27 12:59:31 +02:00
Hervé Beraud 74cc8cfe13 Cap Bandit below 1.6.0 and update Sphinx requirement
Bandit 1.6.0 accidentally changed how the exclusion list option is
handled and breaks our use of it. Cap to the previous version until
Bandit has fixed the problem.

Sphinx 2.0 no longer works on python 2.7, so we need to start
marking it there as well.

Change-Id: Ieaf9c77d62551352833a644ab22dff261c08bb78
2019-05-16 16:30:18 +02:00
Zuul 0fa7d4a065 Merge "update to opendev" 2019-05-03 18:57:17 +00:00
liuwei b13d7fe599 update to opendev
Change-Id: Ie3617d76b6131386c2fa241b41888436ed44909f
2019-04-25 01:07:11 +00:00
Zuul 743a4e8327 Merge "Dropping the py35 testing" 2019-04-24 14:27:33 +00:00
OpenDev Sysadmins 4a25aa10cf 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:31:04 +00:00
Ghanshyam Mann 936f18e05b Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:


Change-Id: Ib38da77120fd0392984388350bb785eae5893c06
2019-04-16 04:43:57 +00:00
OpenStack Release Bot 9de37d3227 Update master for stable/stein
Add file to the reno documentation build to show release notes for

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on

Change-Id: I3dee8ebf67de1f4cb6724e832cace24a273ba483
Sem-Ver: feature
2019-03-18 14:57:27 +00:00
zhangwen1 aa0f033838 Delete repeated param description.
Change-Id: Icdccc700a91f893a4427ee89c140de9a153e4c54
2019-03-14 18:49:08 +08:00
Sahid Orentino Ferdjaoui df3b8372f2 add python 3.7 unit test job
See ML discussion here [1] for context.


Story: #2004073
Co-authored-by: Corey Bryant <>
Signed-off-by: Sahid Orentino Ferdjaoui <>
Change-Id: If7fc1428d98a96d73d90ca261c12c67836329341
2019-02-26 15:51:42 +00:00
Andreas Jaeger 27a8395660 Use template for lower-constraints
Small cleanups:

* Use openstack-lower-constraints-jobs template, remove individual
* Sort list of templates

Change-Id: Ie4fa0a49318e20b9c4a32db44de0bdb59666eddd
2018-12-20 21:36:31 +01:00
melissaml 6d368b229a Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I4d3bd4a4536e972fa2ebf14a9c73b674084cad88
2018-12-04 18:41:48 +08:00
Sean McGinnis 5b39123aa4 Update sphinx logging to not use app object
Logging via the application object was deprecated in sphinx 1.6 and is
now removed in the master branch that will become 2.0. This updates our
sphinx extension to use the recommended sphinx.util.logging instead.

Closes-bug: #1798174

Change-Id: Ie66579146d68680905c3eac3d256369309130cf4
Signed-off-by: Sean McGinnis <>
2018-10-16 13:52:37 -05:00
qingszhao e43f7c5743 Removed older version of python added 3.5
In setup.cfg file the python 3.5 is added

Change-Id: I6dbad224fb05d0f2fdb70828d157429bb1cf6282
2018-09-29 20:59:54 +08:00
zhang.lei ec53c7607a Update doc/ to avoid warnings with sphinx 1.8
The autodoc_default_flags option is now deprecated.[1] This warning can
cause documentation build failed. use autodoc_default_options instead.

Change-Id: I73041da072edb635661503b75a9c7460e1242220
2018-09-18 10:46:09 +00:00
Zuul 5a02139933 Merge "fix wrong link" 2018-08-23 15:06:09 +00:00
Doug Hellmann 6bb066b3b3 add lib-forward-testing-python3 test job
This is a mechanically generated patch to add a functional test job
running under Python 3 as part of the python3-first goal.

See the python3-first goal document for details:

Change-Id: I760a924068be4d61496010cec967e5a181042b1b
Story: #2002586
Task: #24322
2018-08-11 18:20:19 -04:00
wu.chunyang 804b5aea5f fix wrong link
Change-Id: I19f63102037199d3a5b3afb614900075d8710b63
2018-08-08 09:02:22 +00:00
Doug Hellmann a4af200a42 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:

Change-Id: I48e460abaf97613dfd2c9b035b322d38ba9bab52
Story: #2002586
Task: #24322
2018-08-07 16:17:39 -04:00
Doug Hellmann 365e5b1ffc import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

See the python3-first goal document for details:

Change-Id: Ia67171e6d46244a712ec8b8aa5736e9b8683600e
Story: #2003250
2018-08-03 17:47:56 -04:00
OpenStack Release Bot e4ef5d0df4 Update reno for stable/rocky
Change-Id: I7c0686a713d9e302f47f41c04cc3b3f2b1f79f6b
2018-07-26 12:42:39 +00:00
Vu Cong Tuan 64f70f245a Remove unnecessary py27 testenv
The pyNN factors automatically set basepython unless explicitly requested otherwise.
Therefore, "testenv:py27" section are unnecessary and should be removed
as the recommendation from Stephen in [1]


Change-Id: I07428041f70c68520c451589fc65cb586741b69b
2018-07-06 08:27:28 +07:00
Vu Cong Tuan 963a7d8eb7 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.


Change-Id: I1b5bd8a53d0f93b99dd60fd5711a60f1135bcc4c
2018-07-05 18:04:48 +07:00
Doug Hellmann 236297973f fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Decode subprocess output so it has the right type under python 3.

Change-Id: Id2df5439fa6e788199bec4ac7c98c56347053621
Signed-off-by: Doug Hellmann <>
2018-06-06 16:17:02 -04:00
XiaojueGuan f641e9aeaa Trivial: Update pypi url to new url
Change-Id: Ie738ac6938b035c414c0c8d964b771c5155ed115
2018-05-01 15:53:28 +00:00
malei 68a9a4f885 Trivial: Update pypi url to new url
Pypi url changed from [1] to [2]


Change-Id: Ifc9114fd4b4d95f2ae0acd7e0a19d217786b1168
2018-04-21 09:21:32 +08:00
Doug Hellmann 4ba1d970bc set default python to python3
Set the default python to python3 except for the py27 environment. We
have to set that explicitly to override the new default.

Change-Id: Ia540b70e648d585aa0de017f72ceb96214b67e27
Signed-off-by: Doug Hellmann <>
2018-04-13 16:15:04 -04:00
Doug Hellmann 40064ea0e7 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

for more details.

Change-Id: Id469e90d53d52f13b596b71904604ec073289e88
Signed-off-by: Doug Hellmann <>
2018-03-24 21:03:12 -04:00
OpenStack Proposal Bot d42d448b53 Updated from global requirements
Change-Id: If0cae1d2b4c59ff6c1f2675db18fc658bbc739bf
2018-03-15 09:34:12 +00:00