summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--babel.cfg2
-rw-r--r--doc/requirements.txt6
-rw-r--r--doc/source/conf.py7
-rw-r--r--lower-constraints.txt4
-rw-r--r--oslo_policy/sphinxext.py4
-rw-r--r--oslo_policy/sphinxpolicygen.py4
-rw-r--r--releasenotes/source/conf.py6
-rw-r--r--setup.cfg14
8 files changed, 17 insertions, 30 deletions
diff --git a/babel.cfg b/babel.cfg
deleted file mode 100644
index 15cd6cb..0000000
--- a/babel.cfg
+++ /dev/null
@@ -1,2 +0,0 @@
-[python: **.py]
-
diff --git a/doc/requirements.txt b/doc/requirements.txt
index 9cf3697..3882a1e 100644
--- a/doc/requirements.txt
+++ b/doc/requirements.txt
@@ -2,8 +2,8 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
-openstackdocstheme>=1.20.0 # Apache-2.0
-sphinx>=1.8.0,!=2.1.0 # BSD
+openstackdocstheme>=2.2.0 # Apache-2.0
+sphinx>=2.0.0,!=2.1.0 # BSD
sphinxcontrib-apidoc>=0.2.0 # BSD
-reno>=2.5.0 # Apache-2.0
+reno>=3.1.0 # Apache-2.0
diff --git a/doc/source/conf.py b/doc/source/conf.py
index c2b91e4..201bb96 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -25,9 +25,9 @@ extensions = [
]
# openstackdocstheme options
-repository_name = 'openstack/oslo.policy'
-bug_project = 'oslo.policy'
-bug_tag = ''
+openstackdocs_repo_name = 'openstack/oslo.policy'
+openstackdocs_bug_project = 'oslo.policy'
+openstackdocs_bug_tag = ''
# autodoc generation is a bit aggressive and a nuisance when doing heavy
# text edit cycles.
@@ -40,7 +40,6 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
-project = u'oslo.policy'
copyright = u'2014, OpenStack Foundation'
source_tree = 'https://opendev.org/openstack/oslo.policy/src/branch/master'
diff --git a/lower-constraints.txt b/lower-constraints.txt
index 0ede244..616bc90 100644
--- a/lower-constraints.txt
+++ b/lower-constraints.txt
@@ -20,7 +20,6 @@ mox3==0.20.0
msgpack-python==0.4.0
netaddr==0.7.18
netifaces==0.10.4
-openstackdocstheme==1.20.0
os-client-config==1.28.0
oslo.config==5.2.0
oslo.context==2.22.0
@@ -35,7 +34,6 @@ python-mimeparse==1.6.0
python-subunit==1.0.0
pytz==2013.6
PyYAML==3.12
-reno==2.5.0
requests==2.14.2
requests-mock==1.2.0
requestsexceptions==1.2.0
@@ -44,8 +42,6 @@ six==1.10.0
stestr==2.0.0
smmap==0.9.0
snowballstemmer==1.2.1
-Sphinx==1.8.0
-sphinxcontrib-websupport==1.0.1
stevedore==1.20.0
testrepository==0.0.18
testtools==2.2.0
diff --git a/oslo_policy/sphinxext.py b/oslo_policy/sphinxext.py
index d8b8ce0..a6c02b6 100644
--- a/oslo_policy/sphinxext.py
+++ b/oslo_policy/sphinxext.py
@@ -165,3 +165,7 @@ class ShowPolicyDirective(rst.Directive):
def setup(app):
app.add_directive('show-policy', ShowPolicyDirective)
+ return {
+ 'parallel_read_safe': True,
+ 'parallel_write_safe': True,
+ }
diff --git a/oslo_policy/sphinxpolicygen.py b/oslo_policy/sphinxpolicygen.py
index 2693e34..1aef057 100644
--- a/oslo_policy/sphinxpolicygen.py
+++ b/oslo_policy/sphinxpolicygen.py
@@ -92,3 +92,7 @@ def setup(app):
app.add_config_value('policy_generator_config_file', None, 'env')
app.add_config_value('sample_policy_basename', None, 'env')
app.connect('builder-inited', generate_sample)
+ return {
+ 'parallel_read_safe': True,
+ 'parallel_write_safe': True,
+ }
diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py
index 5084a9d..b72c0a4 100644
--- a/releasenotes/source/conf.py
+++ b/releasenotes/source/conf.py
@@ -40,9 +40,9 @@ extensions = [
]
# openstackdocstheme options
-repository_name = 'openstack/oslo.policy'
-bug_project = 'oslo.policy'
-bug_tag = ''
+openstackdocs_repo_name = 'openstack/oslo.policy'
+openstackdocs_bug_project = 'oslo.policy'
+openstackdocs_bug_tag = ''
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
diff --git a/setup.cfg b/setup.cfg
index b94ba2d..700f8c1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -39,17 +39,3 @@ console_scripts =
oslo.policy.rule_checks =
http = oslo_policy._external:HttpCheck
https = oslo_policy._external:HttpsCheck
-
-[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