Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:
UserWarning: Usage of dash-separated 'description-file' will not be
supported in future versions. Please use the underscore name
'description_file' instead
[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
Change-Id: I62cedb56f25f1f409ed24fa3a1b1a3dbc8758e74
This patch introduces the same functionality as is implemented in panko
recently[1], and allows us to limit the number of alarm histories
deleted in a single iteration, to avoid the query takes a long time and
if there are many expired records.
[1] Icf83ffe089301b3782273923f18efd4d209131c2
Change-Id: Ie1d1bbb911cf56a56f712291f61ffaabfa97422f
Add file to the reno documentation build to show release notes for
stable/wallaby.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.
Sem-Ver: feature
Change-Id: I0a6dce64c17477aa49de33e6441ca91feae9e02f
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:
1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.
2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.
Also replace policy.json to policy.yaml ref from doc and tests.
[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html
Change-Id: Ia0fa4ba1fecf2740a291c5a65b906b089c95404d
This commit updates the default policies to include supports for
enhanced token scope checking and default roles, including a read-only
role for GET APIs.
This is part of a broader change across OpenStack projects to
consolidate common personas and provide a more secure and consistent
authorization experience for end users and operators.
Change-Id: If17dbfec10302c9c57d814cb406faee1a6efc59a
This commit adds some common personas, or check strings, to the
policies.py file. We can use these later to implement more secure policy
defaults that will be consistent with changes across OpenStack and will
provide a better, more secure authorization experience for operators and
users.
Change-Id: I030a5c6a94c5a4be59051d1b8828ab41281465f0
This commit bumps the versions for oslo.policy, oslo.log, and
keystonemiddleware. It also adds a dependency on oslo.context so that we
can re-use context objects to make authorization decisions in
oslo.policy, instead of building authorization information from the
request manually, which is error-prone and redundant.
The versions bumps for these libraries are necessary to provide better
default policies through deprecations and enhanced scope checking.
Change-Id: I1bdecf2e762e2b7652a411efd03210ea51575ada
This function has been deprecated for a long time, let's finally
remove it. It is only generating a warning anyway.
Depends-On: https://review.opendev.org/c/openstack/panko/+/763941
Change-Id: I02372642b94ef508aed28942fe49a09f3ad35728
Add file to the reno documentation build to show release notes for
stable/victoria.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.
Change-Id: I01dd4d116884d06c57ba85ec050f1323369f54db
Sem-Ver: feature
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.
Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.
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: Ic3745264cee3515683dfe028014203388e735fdd
These translation sections are not needed anymore, Babel can
generate translation files without them.
Change-Id: I75d52a207ec280353892354cc5fd680db5843617
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.
Change-Id: Ifc5f88dec427fe34b56b053b11ff18adf829e664
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Add file to the reno documentation build to show release notes for
stable/ussuri.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.
Change-Id: I3b055e39544dea6173df0a7fbe9119cb150e3727
Sem-Ver: feature
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
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Use newer openstackdocstheme and reno version
- Update hacking version to 3.0
- move python3 setting into toxenv, remove install_command and
move constraints into deps
Change-Id: Ibb42f8199eb4ca93e438e5e7ef5d4c4e0b35a738
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: Ia621c3fea2b8ded8df7727c07931ad071a61e736