Commit Graph

22 Commits

Author SHA1 Message Date
Hervé Beraud 60f3442e13 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: Ia50cc4538bf4e148f3870dafb414109d4ca9ccc1
2020-06-09 12:20:48 +02:00
Andreas Jaeger ab4c0cf4e4 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.

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: I064ba67b95e217426e687b5e3055cc4e5288fb5d
2020-06-01 16:23:34 +02:00
Ghanshyam Mann f8a51b3e4f [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

zaqar-ui is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/

Change-Id: Ia3f663e1271deb7a7aef6ee5fa1b17569fa5ce0e
2019-11-16 17:34:39 +00:00
gujin 3414b95a16 Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Remove unncessary "=="

Change-Id: I84ac4c0d6ae587ab10dade675a943a3670e078e8
2019-06-24 16:09:29 +08:00
zhulingjie 5777d916e8 Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org
counterparts.

Change-Id: I68e1bd83fe0013cd4267208a1e70bf07d667ea96
2019-04-24 15:42:02 +08:00
Zuul f307eaa198 Merge "Update hacking version" 2019-01-09 09:29:25 +00:00
jacky06 e6db2ff4fa Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I2d95fd234f89ea0c377a2dc287459bade6c893e4
2019-01-09 10:10:44 +08:00
“e f54bf31732 One more letter d
Change-Id: I45b0dc4b8491b4330bbf27e43d8562ce76fac2d5
2018-12-21 15:15:13 +08:00
Shu Muto b5709b73b9 Remove mox3 from doc/requirements.txt
Dependency for mox3 is fully removed. So this patch removes mox3
dependency from doc/requirements.txt

This should be cherry-picked into stable/rocky branch.

Change-Id: I7643c2a4647aa76f4feba9fbe762a019d002aac0
2018-08-22 10:34:03 +09:00
Akihiro Motoki 7f361343c8 Drop nose dependencies
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.

The change was made in horizon Rocky-3,
so horizon 14.0.0.0b3 is required at least.

Also drops unnecessary Django dependencies. There is no need to
install Django explicitly as it is a horizon dependency.

Change-Id: I4c27c5a330976637b43831b6748465c518926bb5
2018-08-17 01:05:17 +09:00
Shu Muto f14cacdd9a Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:

https://governance.openstack.org/tc/reference/project-testing-interface.html

For more details information, please refer to:

http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I08cfd42af407e6ee2c4aa88df461eb757e1243b2
2018-05-15 23:45:49 +00:00
Shu Muto 58e06d8889 Use pbr autodoc feature rather than custom logic
doc/source/conf.py has a custom logic which prepare index files
for autodoc, but now pbr and sphinx autodoc have a feature to do it
and it is not a good idea to keep the custom logic.

Change-Id: I99fceb0af1de0bd0f2c8aa25da232a4d63154cda
2017-07-13 15:47:47 +09:00
Shu Muto 97fa406ef4 Rearrange existing documentation to fit the new standard layout
This patch changes directory structure for docs.

For more detail, see the doc migration spec:
http://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html

Change-Id: Ia434909f37ff75084b8304b3b0ba7fa03903b51f
2017-07-13 15:40:38 +09:00
Shu Muto 62d4ab793c Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: I3b45cd7c2136a9ca9015bd533c0f04bcb9633807
2017-06-29 18:32:22 +09:00
Shu Muto 115da0b341 Improve docs build
Starting in Django 1.7, standalone scripts, such as a sphinx build
require that django.setup() be called first. See:
https://docs.djangoproject.com/en/1.8/releases/1.7/#standalone-scripts
It does not always necessary, but it is needed to avoid warnings
when creating autoindex.
Note that horizon no longer generates the autoindex to avoid warnings.

Add warning-is-error sphinx setting to avoid doc build warnings.

Change-Id: I1a2e2cfd6f2d976aa5aeaeb999a2f40804488c48
2017-06-27 18:26:15 +09:00
Shu Muto c5ddeb56c2 Clean up doc/ and releasenotes/
There were two Release notes information: doc/source/releases and
releasenotes (by reno). There is no need to have two different way.

It is not a good idea to have too much contents in the top page
document. Installation stuff is split into a separate page.

Title level of index.rst was inconsistent.

_static and _templates directories in releasenotes/source
are unnecessary. Also version info is set in release notes.

Change-Id: I717964f0dc219d50037f2616e500053f769dc1d0
2017-06-27 16:50:27 +09:00
liyanhang 6f64ba4634 Change "Openstack" to "OpenStack"
According to the word choice convention in
http://docs.openstack.org/contributor-guide/writing-style/word-choice.html
We should use OpenStack instead of Openstack.

Change-Id: I1aff75b8ca5671b2e42b5993192eea59e2247a3e
2016-10-25 21:48:21 +08:00
shu-mutou 8dac58c47e Replace deprecated library function os.popen() with subprocess
os.popen() is deprecated since python 2.6.
Resolved with use of subprocess module.

Change-Id: I1f06fb713b25c42f975e525711afaf2cf4a58a5a
Closes-Bug: #1529836
2016-04-08 13:14:50 +09:00
Andreas Jaeger 5bc3e6a964 Remove unused pngmath Sphinx extension
There's no RST file that uses ".. math" and thus
the pngmath Sphinx extension is not used and can
get removed.

Change-Id: I3ea4b529025c8ac3c4092f3720124647861e6668
2016-02-29 20:01:23 +01:00
Thai Tran 549053d5df Fixes test settings
We should be using the openstack test settings instead of the zaqar test
settings, which does not exist at the moment and is causing the gate checks
to fail.

Change-Id: I5c82a52d24fb579957aa6b020c2a4915024e3519
2016-02-02 11:37:23 -08:00
Thai Tran e779265f18 Re-enabling checkout and small fixes
1. Re-enabled the check-only flag for make messages. This previously did
not work because we did not have a locale file in master to revert back to.

2. Removed reduntant settings in the enabled file. The auto discovery will
take care of importing the JS files correctly.

3. Added to the documentation to include latest enabled file.

Change-Id: I8e878b60bd5951b4741171136a5e082c4007e0de
2016-01-14 13:21:17 -08:00
Thai Tran a11cbc78b1 Zaqar-ui base project with empty queues panel
This commit adds the zaqar base and an empty queues panel.
Subsequent patches will add api and content to the queues panel.

Co-Authored-By: Fei Long Wang <flwang@catalyst.net.nz>
Co-Authored-By: Rob Cresswell <rcresswe@cisco.com>
Co-Authored-By: Thai Tran <tqtran@us.ibm.com>
Change-Id: I1f4873d1e36c677956534266de41d80a01c8cd9d
2016-01-14 11:04:32 -08:00