7e185ad96b
Why? HttpCheck/HttpsCheck are examples of rule checks that can be implemented outside of the oslo.policy library. Once we setup the infra for registering and using these as stevedore extensions, we automatically get the capability of other folks contributing to writing custom rules for their own use cases. * Add HttpCheck/HttpsCheck as entrypoints in setup.cfg * parser will check get_extensions() to see if there are any external checks registered * Move HttpCheck/HttpsCheck into external module * Move related test cases to test_external.py Change-Id: Icde2b26a38d7c7842defae053228d9208454b969
71 lines
1.7 KiB
INI
71 lines
1.7 KiB
INI
[metadata]
|
|
name = oslo.policy
|
|
summary = Oslo Policy library
|
|
description-file =
|
|
README.rst
|
|
author = OpenStack
|
|
author-email = openstack-dev@lists.openstack.org
|
|
home-page = https://docs.openstack.org/oslo.policy/latest/
|
|
classifier =
|
|
Environment :: OpenStack
|
|
Intended Audience :: Information Technology
|
|
Intended Audience :: System Administrators
|
|
License :: OSI Approved :: Apache Software License
|
|
Operating System :: POSIX :: Linux
|
|
Programming Language :: Python
|
|
Programming Language :: Python :: 2
|
|
Programming Language :: Python :: 2.7
|
|
Programming Language :: Python :: 3
|
|
Programming Language :: Python :: 3.5
|
|
|
|
[files]
|
|
packages =
|
|
oslo_policy
|
|
|
|
[pbr]
|
|
autodoc_index_modules = True
|
|
api_doc_dir = reference/api
|
|
autodoc_exclude_modules =
|
|
oslo_policy.tests.*
|
|
oslo_policy._*
|
|
|
|
[entry_points]
|
|
oslo.config.opts =
|
|
oslo.policy = oslo_policy.opts:list_opts
|
|
|
|
console_scripts =
|
|
oslopolicy-checker = oslo_policy.shell:main
|
|
oslopolicy-sample-generator = oslo_policy.generator:generate_sample
|
|
oslopolicy-policy-generator = oslo_policy.generator:generate_policy
|
|
oslopolicy-list-redundant = oslo_policy.generator:list_redundant
|
|
|
|
oslo.policy.rule_checks =
|
|
http = oslo_policy._external:HttpCheck
|
|
https = oslo_policy._external:HttpsCheck
|
|
|
|
[build_sphinx]
|
|
all-files = 1
|
|
warning-is-error = 1
|
|
source-dir = doc/source
|
|
build-dir = doc/build
|
|
|
|
[upload_sphinx]
|
|
upload-dir = doc/build/html
|
|
|
|
[compile_catalog]
|
|
directory = oslo_policy/locale
|
|
domain = oslo_policy
|
|
|
|
[update_catalog]
|
|
domain = oslo_policy
|
|
output_dir = oslo_policy/locale
|
|
input_file = oslo_policy/locale/oslo_policy.pot
|
|
|
|
[extract_messages]
|
|
keywords = _ gettext ngettext l_ lazy_gettext
|
|
mapping_file = babel.cfg
|
|
output_file = oslo_policy/locale/oslo_policy.pot
|
|
|
|
[wheel]
|
|
universal = true
|