Commit Graph

93 Commits

Author SHA1 Message Date
Hervé Beraud 7d710044b6 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.
It also update horizon version in requirements.txt to match the horizon
version in  lower-constriants.txt to fix requirements-check job.

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: I425e9b4cfcf86e67c6288796e3da95b07769c6dc
2021-02-03 12:22:27 +00:00
Andreas Jaeger f4fca35744 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.

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

Change-Id: Ifd0cbfb6e8ee1c6b998e73b3c6c4e922fe07841f
2020-05-31 19:56:44 +02:00
Ghanshyam Mann 53fa7f95f1 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: Id56c7f2b9f36ee7d56e4196266037b537b5baaf3
2020-05-12 19:30:32 -05:00
Andreas Jaeger 7975ca5ca4 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Switch to using sphinx-build
- Use newer openstackdocstheme and Sphinx versions
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE, UPPER_CONSTRAINTS_FILE is obsolete
- remove unused sections from tox.ini

Change-Id: Ia14273b824c3ee16ac2c8517ea73c3fa8d24484b
2020-05-09 19:34:39 +02:00
Sean McGinnis 22efa8fd7f Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I5ad2c7a44dee2e19ab2576f206c69d94126a22b1
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
2020-04-20 03:54:03 -07:00
zhurong c946775e91 Add pytest to test requirements
Change-Id: I3ea0c9255d99ce213065cfcf9038b638d19691aa
2020-04-13 23:32:32 -07:00
zhurong c39867edef Cleanup py27 support
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 obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I4a9d26f52ce250a5402f71d30b120ee54f8bacc6
2020-04-07 01:55:47 -07:00
Andreas Jaeger c80e23edfd Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Change-Id: I7073a478d38fb46619e7a300808e9449403e704d
2020-03-30 10:49:50 +00:00
Ghanshyam Mann 5f11df8111 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

murano-dashbaord 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: Ibcead8ed02becfce9edcefa7f044098d71df8dff
2019-11-20 06:53:04 +00:00
Zuul 0355561a9d Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 2019-07-04 11:55:38 +00:00
pengyuesheng 090fa214f8 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: I8c9dbce32c592a99671716c249b1a338824169c0
2019-07-04 16:04:18 +08:00
pengyuesheng 66a34475cc Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details
Depend-On: https://review.opendev.org/#/c/663060/

Change-Id: Id44a25bf49cf3454651cd8ce90f34d93f9e6e511
2019-07-04 15:39:07 +08:00
zhurong 43efb80725 Fix sphinx requirements
Change-Id: I7a29fe57f78ccb602d391fb17be54f29432d4790
2019-05-28 19:39:23 +08:00
zhurong 4985bfa010 Switch test runner to django default runner
nose is not actively maintained now and Django default test runner
seems to have enough features.

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.

And murano-dashboard using unittest instead of testtools.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I419e0e166ea88c3ab1203f35ffa00928cf94acb1
Depends-On: https://review.openstack.org/599156/
2018-10-09 02:22:08 +00:00
Chuck Short 5e52eb36d2 Remove use_mox directive
As of horizon 14.0.0.0b2 or later the use_mox directive is unecessary
so we can remove it.

Additionally:
* Drop mox3 from test-requirements.txt
* raise lower bound for Horizon (due to mox3 removal)

Change-Id: Ibcdd5fcda789a4038a538b19d09bc87cdc6fe7f3
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-08-09 13:50:51 -04:00
OpenStack Proposal Bot e312c97143 Updated from global requirements
Change-Id: I664445942ac872e1a43450480ca610ed5210c303
2018-03-15 07:14:56 +00:00
OpenStack Proposal Bot 87ba42fb2d Updated from global requirements
Change-Id: Ie493f386d42c9b26bab3819677231ab7ab832f0a
2018-01-24 01:04:13 +00:00
OpenStack Proposal Bot 873fd7ff85 Updated from global requirements
Change-Id: I43a97594c0372f9c42c180b3bd91c07ee2814bfe
2018-01-18 03:05:06 +00:00
OpenStack Proposal Bot 534c4cc7c2 Updated from global requirements
Change-Id: I00ed7a0374d871031a7cbfd1666cc61838aef080
2017-11-29 09:02:42 +00:00
Zuul 5614161c8e Merge "Updated from global requirements" 2017-11-23 04:20:04 +00:00
OpenStack Proposal Bot 30e29cc55c Updated from global requirements
Change-Id: Ie7de453daac7d886ef0f111e1731d15f6e6211c7
2017-11-16 11:11:42 +00:00
Akihiro Motoki d84339d90e Drop django_openstack_auth from requirements.txt
django_openstack_auth has been merged into horizon tree
as an effort of blueprint merge-openstack-auth.
There is no need to depend on django_openstack_auth any more.

Change-Id: Idadb6dc02fa90a72e303b00b304b7c1ca70b178f
2017-11-16 07:02:25 +00:00
OpenStack Proposal Bot e6e7c76778 Updated from global requirements
Change-Id: I6714fca04656c47b87aa8c110404e76cc88188aa
2017-09-22 12:54:00 +00:00
OpenStack Proposal Bot 2da498fd44 Updated from global requirements
Change-Id: I6a0a3151e7ffe8f7110d82c0404c86f8becb55bc
2017-08-18 11:33:13 +00:00
OpenStack Proposal Bot 26c85a2043 Updated from global requirements
Change-Id: I0f8ab442e3412cb17122780b0e549d232624bc0e
2017-08-18 04:43:50 +00:00
OpenStack Proposal Bot 5e9dff02b5 Updated from global requirements
Change-Id: Iacc3dedd25a5bce2a0b2609d2b3557b017556075
2017-07-28 00:07:43 +00:00
zhurong a67b68acc4 switch to openstackdocstheme
Change-Id: Icc6e852398bfdb6cdfa9105e272d1dffe927aa3e
2017-07-07 15:45:09 +08:00
OpenStack Proposal Bot a272550a3b Updated from global requirements
Change-Id: I065868d094822aacfaa742af72e76af8296f740d
2017-06-27 17:45:51 +00:00
OpenStack Proposal Bot 890cd2c41c Updated from global requirements
Change-Id: Ia6c19342296c874b13dc1af5d430848bae25f82e
2017-06-15 16:26:30 +00:00
OpenStack Proposal Bot 85d7050bb0 Updated from global requirements
Change-Id: Ibaf900c1258278c0c9f36d3bb82198463161cd0c
2017-06-02 21:58:36 +00:00
OpenStack Proposal Bot 19fa5d154c Updated from global requirements
Change-Id: Ifd0e78ac3483cce24e2ea62f44f0c9155a3f0b73
2017-06-02 11:36:06 +00:00
OpenStack Proposal Bot e4f59108d2 Updated from global requirements
Change-Id: I8fd5c5fc8c6b1d4a247f8676014c9ff7e0f05977
2017-05-17 03:50:43 +00:00
OpenStack Proposal Bot 13c8cb20b5 Updated from global requirements
Change-Id: I98a7129a821af9a810574b48622516edc8c3c21c
2017-05-15 00:47:14 +00:00
OpenStack Proposal Bot f892bbfa95 Updated from global requirements
Change-Id: I731a31a60957468629a604a6b3234640ad2deb3c
2017-03-13 19:34:24 +00:00
OpenStack Proposal Bot 2ab72b0c70 Updated from global requirements
Change-Id: Ic079c7dcd0b19d83d1f38917dd2f3082ef6f590e
2017-03-03 22:51:48 +00:00
Felipe Monteiro 9cede6d00b Fixes test_toggle_public_package ui tests failing in tearDown.
Currently, 2 tests:
  - test_toggle_public_package
  - test_toggle_public_multiple_packages
both throw keystoneauth1.exceptions.connection.ConnectFailure
errors during tearDown [0] (this one example resulted in the
same failure 3 times in a row).

Since these are the only two tests that dynamically create
a project using keystoneclient and delete the projects
in tearDown, this patch provides a workaround by removing
the create_project function and removing the need to then
clean up the project in tearDown.

This is done by relying on the alternate project 'service'
(already used in test_sharing_app_without_permission),
instead of having to create a new project then deleting it.

Also combines https://review.openstack.org/#/c/440219/
to fix flake8 error.

[0] https://murano-ci.mirantis.com/logs/40/436240/1/check/gate-murano-dashboard-ubuntu/14801da/

Related-Bug: #1668848
Co-Authored-By: ricolin <rico.lin@easystack.cn>
Change-Id: Id77e0cc59f33fdf394e2dc25a9fda0fd13c5b4fa
Backport: stable/ocata
2017-03-03 03:23:26 +00:00
OpenStack Proposal Bot a0dbc277bd Updated from global requirements
Change-Id: I087f9400b154946311bbbd0d6f077157efb75caa
2017-02-13 15:14:14 +00:00
OpenStack Proposal Bot c888e9cce9 Updated from global requirements
Change-Id: I7e56ebda768ed95375da35ebdfc300ed40851a5d
2017-01-26 17:23:40 +00:00
OpenStack Proposal Bot 260ecbead7 Updated from global requirements
Change-Id: I77893ba43ea96118b4ede60cff920a04faa8b4d2
2016-12-03 11:43:49 +00:00
OpenStack Proposal Bot 3123a16d6f Updated from global requirements
Change-Id: I813422be86d5f5975fd8be0a3338340ff2530eb2
2016-11-07 15:31:37 +00:00
OpenStack Proposal Bot e0175a8ee5 Updated from global requirements
Change-Id: I5b4d4e4d2e9f3da33560cc266da84a53a9a1d39f
2016-10-27 12:16:03 +00:00
OpenStack Proposal Bot 44accfd0cf Updated from global requirements
Change-Id: I31a1ca0f9573324c994484db22729a7a8dabea34
2016-10-22 01:21:07 +00:00
OpenStack Proposal Bot cef39fc96d Updated from global requirements
Change-Id: I112c70e697b5caca91c1078e9395491b4950695e
2016-09-29 13:29:10 +00:00
OpenStack Proposal Bot e2a0cd5ac8 Updated from global requirements
Change-Id: Id8f779c728434108e55833a41a64563dc2004d18
2016-09-27 16:57:40 +00:00
OpenStack Proposal Bot 5d116b0d64 Updated from global requirements
Change-Id: I6c055a46a4f7f51551d6edbbb865018e21df89b3
2016-08-18 12:35:22 +00:00
OpenStack Proposal Bot a968b69b9c Updated from global requirements
Change-Id: I5a58db03c3fee622cf63cdf679a968081c07ee64
2016-08-04 02:36:39 +00:00
OpenStack Proposal Bot 121fd1faa6 Updated from global requirements
Change-Id: Ief02d4482fcbe5014f0df884776eed1777162f21
2016-07-19 15:26:52 +00:00
OpenStack Proposal Bot 4bad018a36 Updated from global requirements
Change-Id: I9e121fcfb5f994a6a827954522e445ce631ab4e9
2016-07-09 03:12:30 +00:00
OpenStack Proposal Bot d9c70b3463 Updated from global requirements
Change-Id: I13ec6ed02a01542391f1b6c76522dda6e346cc83
2016-06-24 03:12:56 +00:00
OpenStack Proposal Bot 0ba994dcab Updated from global requirements
Change-Id: I748d84ad00dbcdf9c5b0af4e6ef56c54c8e38352
2016-06-21 18:00:49 +00:00