Commit Graph

14 Commits

Author SHA1 Message Date
Stephen Finucane 8a43c37004 Remove lower-constraints remnants
These were missed in change I3eafc92ba7c7305b1a73d3f96c427ed12c96dbf7.

Change-Id: Idf7148bcf588efbd20352bf2160ecee573156444
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-02-11 12:03:16 +00:00
Ghanshyam Mann 9f95a6e19b Register oslo policy opts explicitly for check_policy_json
check_policy_json() common check need [oslo_policy].policy_file
config value and it is better to register those options explicitly
in check_policy_json() in case they are not register by services.

Currently it work as oslo.policy opts are registered via some import
in service side code path for upgradechecks which are not so safe
when these code import path change.

Change-Id: I16fcce119698c7375e4b58558fdce89e78a79a9b
2020-12-07 21:12:03 +00:00
Ghanshyam Mann 9d3bb03fc8 Fix lower-constraints job
oslotest 1.5.1 is restricted to pbr <1.0 which conflict
with other deps lower constarint for pbr.

Error:
The conflict is caused by:
    oslo-i18n 3.15.3 depends on pbr!=2.1.0 and >=2.0.0
    oslo-serialization 2.21.1 depends on pbr!=2.1.0 and >=2.0.0
    oslo-utils 4.5.0 depends on pbr!=2.1.0 and >=2.0.0
    oslotest 1.5.1 depends on pbr!=0.7, <1.0 and >=0.6

https: //zuul.opendev.org/t/openstack/build/cb2bce3b4e004601958b764dfd0737b8
Change-Id: I513262b85a57ce9f81a63bd778fdd7f7be27e485
2020-12-07 14:24:37 -06:00
Ghanshyam Mann c705067278 Add common checks for json to yaml policy file migration
As part of community goal[1] for migrating the policy file
from JSON format to YAML we need to add upgrade check to
detect any JSON formatted file. That check needs to be
done in each service side which are deprecating the JSON
format. So to avoid duplicate code, this commit add that
check in oslo_upgradechecks and that can be enabled from
service side during they migrate to YAML format.

Service will enable it like below:

    _upgrade_checks = (
        (_('Policy File JSON to YAML Migration'),
            (common_checks.check_policy_json, {'conf': CONF})),
    )

Also modify the check() method to accept the **kwargs for checks.

[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Ifa71c20879c964f794a40b981744d95db4ab1602
2020-11-21 19:11:55 +00:00
Andreas Jaeger 9a1b0cecb1 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 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.

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.

Depends-On: https://review.opendev.org/728938
Change-Id: Iec4e4b3ed18e36d8ee1942e45e290ce292e7f881
2020-05-18 21:01:34 +02:00
Dmitry Tantsur 4129baee14 Remove Babel from requirements
It's not a runtime dependency (and even oslo.i18n is dropping it).

Change-Id: I678338bda728c683a6cf37df2abb706c48a980e2
2020-04-17 11:43:52 +02:00
Zuul 96cb80163e Merge "Bump Babel to 2.3.4 on lower-constraint" 2020-01-30 12:25:42 +00:00
Hervé Beraud 1024d00f10 Bump Babel to 2.3.4 on lower-constraint
CI jobs complained about lower constraint who was not aligned so moving
Babel from 1.3 to 2.3.4

Change-Id: Icd6095a373188f5ef152ec2f1748aa7f826ad8a8
2020-01-30 13:00:53 +01:00
Zuul 62bddcec72 Merge "Bump the openstackdocstheme extension to 1.20" 2020-01-09 19:54:32 +00:00
caoyuan 9e70fdadee tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: I2831ab17d943638062b709882c7a1cc481e46476
2019-10-26 00:07:16 +08:00
pengyuesheng 6eb5a871d7 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: Ic626d2dc2974ac6ac7b6a816963995915e723ec7
2019-10-12 15:02:30 +08:00
Stephen Finucane d6278ce104 doc: Switch to openstackdocstheme
No reason to still be using oslo.sphinx in this day and age.

Change-Id: I7734f9a636b5435f70659f8bd3d0c2b7e49c78d6
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2018-12-13 14:44:52 +00:00
Ben Nemec a5039dae1d Add reno support
Change-Id: I05e50ae0b6e96e2d793dcd14d76ac0f990d88e36
2018-10-09 21:56:06 +00:00
Ben Nemec 95685f540b Proper requirements specification
Adds lower constraints to all requirements.
2018-09-12 22:39:56 +00:00