Commit Graph

11 Commits

Author SHA1 Message Date
Takashi Kajinami 897f088ec9 Bump hacking
hacking 3.0.x is too old.

Change-Id: Ie182c4501004d8b6fdb735376fe53073ec2e730e
2024-01-26 01:14:48 +09:00
Stephen Finucane f234316cce Uncap PrettyTable
This is now maintained as a Jazzband project [1].

[1] https://github.com/jazzband/prettytable

Change-Id: Id484bf8fe017bf8f6784155462640840b2053677
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-02-11 12:01:55 +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 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
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
Hervé Beraud 0d84429800 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in Ussuri cycle.

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

Change-Id: I99e49c84779439317a9f13307c7e7d2fc092d7fb
Sem-Ver: api-break
2020-02-06 10:26:31 +01: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
Ben Nemec 95685f540b Proper requirements specification
Adds lower constraints to all requirements.
2018-09-12 22:39:56 +00:00
Ben Nemec 1f333e1aea Add i18n support
There are translatable strings in this library and we need to
support that properly. Replace the stub _() with a proper
implementation based on oslo.i18n.
2018-09-12 22:28:44 +00:00
Ben Nemec 302c40a857 Initial implementation 2018-09-12 18:20:50 +00:00
Ben Nemec d671294399 Initial commit 2018-09-12 17:35:58 +00:00