Commit Graph

12 Commits

Author SHA1 Message Date
Hervé Beraud 6462e9a129 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: Iac98e1abac61757ff143e33f0094babe42cc2e60
2020-06-09 01:21:20 +02:00
Andreas Jaeger 9296424e44 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.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

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.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

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
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I6635fbab5d4cf60be6bc317061cdac2118cebc25
2020-05-21 13:01:11 +02:00
Andreas Jaeger a4d4159820 Cleanup Python 2.7 support
OpenStack is dropping the py2.7 support in ussuri cycle.

Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove section from setup.cfg: Wheel is not needed for python
  3 only repo
- Update requirements

Change-Id: Ibca03f9ebaeaca595e027be9cb5900c368c8de6d
2020-03-27 16:55:52 +01:00
Andreas Jaeger 0aafb1c46f Cleanup docs building
* Remove doc/source/install/conf.py, it's not used
* Update openstackdocstheme version and remove settings that are now the
  default.
* Use docs dependencies for api-ref building.

Change-Id: If37ed5bdbf6a1ef3107e66073eca9917704edee2
2020-02-23 14:16:10 +01:00
Goutham Pacha Ravi cb95b6f6f5 [ussuri][goal] Drop python2.7 support
As per the official python support timeline
set forth by the OpenStack TC [1][2], OpenStack
Train (in our case, manila 9.x) is the last
release that will support python2.7.

[1] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I5b4dc1853d7e4f8f736dd2a22eb08bcfdeac3411
2019-12-08 19:32:52 -08:00
pengyuesheng 5c1f27f69f Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

This will show other versions of the doc, too.

Change-Id: I2f8e4fec3aa48b91d6ab636504ecc90553a4b802
2019-07-01 15:30:47 +08:00
pengyuesheng c5dd767303 Update sphinx dependency
Sphinx 2.0 no longer works on python 2.7,
so we need to start capping it there as well
depend on https://review.opendev.org/#/c/657890/

Change-Id: Ibbc3a3f04ea6253139112944cf7e0f6c265d0f26
2019-06-06 10:41:53 +08:00
OpenStack Proposal Bot 627efa714e Updated from global requirements
Change-Id: I64f3bc5686b5ab4f81b6462da60febd66fbf3499
2018-03-23 01:06:24 +00:00
OpenStack Proposal Bot ed99505bb0 Updated from global requirements
Change-Id: I411f954e1017cda61a32b58dad20caff74f0f031
2018-03-10 13:19:48 +00:00
OpenStack Proposal Bot 6e5ef90294 Updated from global requirements
Change-Id: I573d269e272930f77826d46803aa40c9b08fe3ea
2018-01-24 01:00:04 +00:00
OpenStack Proposal Bot 12822b838a Updated from global requirements
Change-Id: I957911eff487f0edd0d352ee480d9563442f9606
2018-01-18 09:37:13 +00:00
junboli a60daf4f60 Follow the new PTI for document build
For compliance with the Project Testing Interface as
described in [1]:
[1] https://governance.openstack.org/tc/reference/project-testing-interface.html
For more detials information, please refer to [2]:
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I1fe5352e8e4a7703bd9908e7221f04110163d6fb
2018-01-17 09:53:00 +00:00