Commit Graph

17 Commits

Author SHA1 Message Date
Anand Bhat 06283974c4 Migrate from testr to stestr
* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore and test-requirements.txt file accordingly
* Use py3 as the default runtime for tox

Change-Id: Ib24d7b90a20f3b56993c1faede020c015395a1be
2021-07-01 16:08:49 +05:30
Hervé Beraud 749acf98d6 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removing specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: I813c8d5c20b576911baea15fe9ae106e74500f3b
2021-01-07 17:32:29 +01:00
Andreas Jaeger 9232f14ea1 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_version to not auto-version the documents.

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: I3ef12cec64103a3fe2c101d05b211bc94c147d59
2020-06-01 16:27:45 +02:00
Hongbin Lu 3dc2289538 Fix stable branch py2 job
The hacking version is not available at python2, which breaks
stable/stein py2 job. This commit makes hacking py3 only.

Change-Id: I3864f5eb05321345bfc3b2fa7d08654665a84219
2020-05-25 01:26:47 +00:00
Ghanshyam Mann 5df462dcfa Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I80ac3e7869d315f23c66b3f9684a8b63209f0eb0
2020-05-12 21:44:27 -05:00
jacky06 5a193ab20f Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I16995f9237168d16c834662876683760127aabb3
2020-05-06 13:28:00 +08:00
Andreas Jaeger 9043347888 Update docs building
Update docs building:
* Switch to sphinx-build
* Update requirements for Sphinx and openstackdocstheme for
  python 3
* Remove unneeded doc and translation sections from setup.cfg
* Remove install_command, it's unneeded, the default is fine.

Change-Id: I3d2e0459ba4aedf21c01d7725fe5ab266f9f4da3
2020-04-19 10:24:33 +02:00
Ghanshyam Mann ce8f9d7b5c Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

zun-tempest-plugin 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://review.opendev.org/#/c/691178/

Change-Id: If4cec36beab64c83a59ebc7cf5c98f3d15ba328b
2020-01-22 22:17:45 +00:00
pengyuesheng de8893e91f 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.

Change-Id: I43a278afd810498606c4ce5bc2ca50079380599e
2019-08-05 09:38:38 +08:00
pengyuesheng f2564f08d3 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: I242b0716e1ce3a9361fc2776aa10b8d3f973ceda
2019-08-02 15:06:07 +08:00
gujin f5dd082207 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: Ief6c48fdbd54ace79a37dca6a096d716a771b79d
Closes-Bug: #1831517
2019-06-04 09:44:04 +08:00
OpenStack Proposal Bot 0375128c2e Updated from global requirements
Change-Id: I94430e252f688dcf074cbd32be5f28c328f4c009
2018-03-15 09:41:27 +00:00
OpenStack Proposal Bot 700610cef4 Updated from global requirements
Change-Id: I8a32588ea0fab751dc8623ae50e26b864b0773a8
2018-01-27 18:52:29 +00:00
Kien Nguyen c797709736 Fix Zun-tempest-plugin's documentation
Change-Id: Iebb6f1604a0b02919ad7419f42b4ecab47486021
2017-12-19 10:08:03 +07:00
Chandan Kumar 82a2a09cdf Fixed requirements and test-requirements for zun tempest plugin
* Since tempest plugin does contains any unit tests that's why there
  will be no test dependency stay there and those will be moved
  to requirements.txt. The tempest plugin sanity check runned
  against tempest gate is also failing giving
  ImportError: No module named tempest_plugin.plugin.

  It can be fixed by fixing requirements for the plugin.
* https://review.openstack.org/#/c/514269/

Change-Id: I3de3d6c6928d31af9c2deeba800b201bb681ac4e
2017-11-17 18:04:49 +05:30
Hongbin Lu 34fd39eceb Remove dependency on Zun
The tempest tests have some dependencies on some modules on Zun
repo, but these modules are no longer available since tempest
plugin became a separated repo now.

Change-Id: Ic57ded871875c0481fdeedca19db2b61ab8d24c4
2017-09-22 18:49:45 -04:00
Hongbin Lu efe304dca8 Apply cookiecutter to newly split project
This tempest plugin is being split out of the main zun project in
accordance with Queens goal "Split Tempest Plugins into Separate
Repos/Projects"[1]. This patch applies the standard boilerplate files
for OpenStack projects so that it can stand on its own.

[1] https://governance.openstack.org/tc/goals/queens/split-tempest-plugins.html
2017-09-07 16:17:22 -04:00