Commit Graph

16 Commits

Author SHA1 Message Date
Hervé Beraud d46e9e267d 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].
Removed 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: Ifa46f9f0b7dca27c9e8a305932141da78b85cd50
2021-01-05 11:18:34 +01:00
Zuul d537df2a53 Merge "Fix hacking min version to 3.0.1" 2020-06-23 03:14:37 +00:00
Andreas Jaeger dc3e4448f7 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
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ib3db49d1256072975e9f3a9472cb27ca6d9895f6
2020-05-30 16:13:15 +02:00
Ghanshyam Mann 9c2e432a88 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: If6bd35105d281ebf179dbdd4d3636a0419d5cd5c
2020-05-12 19:23:10 -05:00
Andreas Jaeger f932b4ea2a Cleanup py27 support
This repo is now testing only with Python 3, so let's 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
- Update classifiers
- Use newer openstackdocstheme and Sphinx versions
- Build docs, don't publish yet

Change-Id: I2de4e1dbac061002940f80b2cf129dc343343a0d
2020-05-09 18:08:43 +02:00
Zuul 14f2771431 Merge "Update hacking for Python3" 2020-04-29 08:08:07 +00:00
Zuul 2082188cf3 Merge "Follow PTI for docs builds" 2020-04-29 07:45:55 +00:00
Andreas Jaeger 61a1ca1641 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: I7dd7a16d2b2d75120fa14de1d5c080a1a1c9729d
2020-04-29 09:24:20 +02:00
Sean McGinnis b7ab048a72 Follow PTI for docs builds
This updates the docs build command to follow the instructions from the
project team guide.

Use newer TOX_CONSTRAINTS variable.

Change-Id: I4381ae349e2988b2654696086ca5f7159b695b7e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-29 09:17:12 +02:00
Sean McGinnis d528b3cee4
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: Icc42a058851448152ddc86fded6b8808e2e704a4
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-20 09:37:25 -05:00
Sean McGinnis f3b42daedd
[ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

This also adds the standard expected jobs to be run for ussuri.

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

Various fixes to make the expected jobs pass as well.

Change-Id: I3e8c107c9e3cb8a13a531fb81fd2030d0aad0e7e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-20 09:36:01 -05:00
jacky06 bd59ec3a61 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: I1d321e17470216b76fca84f21896bc1457a6a92a
2020-04-02 02:59:18 +00:00
Akihiro Motoki baeb8879a2 Drop nose dependencies
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.

Filenames of test modules need to start with test_*
so that Django test runner detects them.
There is no test defined but it would be nice to adjust the filename.

Also moves horizon dependencies to requirements.txt.

Change-Id: Ib2f246d76da8a1f5d26a9cf8e9ef27e5f4f62bee
2018-08-17 02:16:42 +09:00
Andreas Jaeger ccbbff0f8e Fix horizon install
Install horizon from git in OpenStack CI instead of from tarball.

Update tox.ini for this.

Change-Id: I78ec5f3cb2105dcaed6b3e3879af189d5890fbfc
2018-03-23 08:55:40 +01:00
Adrian Turjak 379709c979 Clean up service and role translations
* add documentation for settings
* clean up documentation
* split role help into own template
* remove old debug print statements

Change-Id: Id764dca96e37627974c77181e73634f461ab10b1
2018-02-13 18:03:20 +13:00
adrian-turjak 2e042e4c45 Initial code base for StackTask UI
* Ported over from the Catalyst repos into its own
  plugin for better maintainability and ease of sharing
  with upstream.

Change-Id: I4e7e1787330d549c59ede6f024e1216f5a073ecd
2017-04-06 18:28:26 +12:00