From 6f67d6b0f02e4e8e146e3774a8c60fff765fea5f Mon Sep 17 00:00:00 2001
From: Andreas Jaeger <aj@suse.com>
Date: Wed, 4 Mar 2020 20:46:18 +0100
Subject: [PATCH] Update python files for OpenDev

Update Python files for move to OpenDev.

Update openstackdocstheme also to newer version and remove
now obsolete comments.

Remove unused sections from setup.cfg.

Change-Id: I2184e381f587c2630e514e44fa9a9f3bbc4d65e2
---
 doc/source/conf.py | 21 +++++++++------------
 requirements.txt   |  2 +-
 setup.cfg          | 15 +++------------
 setup.py           | 10 +---------
 4 files changed, 14 insertions(+), 34 deletions(-)

diff --git a/doc/source/conf.py b/doc/source/conf.py
index 61e253e..1ea2497 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -24,11 +24,11 @@ todo_include_todos = True
 master_doc = 'index'
 
 # General information about the project.
-project = u'OpenStack Project Infrastructure Manual'
-copyright = ('%d, OpenStack Contributors.' % datetime.date.today().year)
+project = u'OpenDev Manual'
+copyright = ('%d, OpenDev Contributors.' % datetime.date.today().year)
 
 # openstackdocstheme options
-repository_name = 'openstack-infra/infra-manual'
+repository_name = 'openstack/infra-manual'
 bug_project = '721'
 bug_tag = ''
 
@@ -64,9 +64,6 @@ man_pages = []
 # a list of builtin themes.
 html_theme = 'openstackdocs'
 
-# Must set this variable to include year, month, day, hours, and minutes.
-html_last_updated_fmt = '%Y-%m-%d %H:%M'
-
 # If false, no module index is generated.
 html_domain_indices = False
 
@@ -80,7 +77,7 @@ html_use_index = False
 # (source start file, target name, title, author, documentclass [howto/manual]).
 latex_documents = [
   ('index', 'Infra-manual.tex', u'Infra Manual',
-   u'OpenStack Contributors', 'manual'),
+   u'OpenDev Contributors', 'manual'),
 ]
 
 
@@ -91,7 +88,7 @@ latex_documents = [
 #  dir menu entry, description, category)
 texinfo_documents = [
   ('index', 'Infra-manual', u'Infra Manual',
-   u'OpenStack Contributors', 'infra-manual', 'OpenStack Project Infrastructure Manual.',
+   u'OpenDev Contributors', 'infra-manual', 'OpenDev Manual.',
    'Miscellaneous'),
 ]
 
@@ -99,7 +96,7 @@ texinfo_documents = [
 # -- Options for Epub output ---------------------------------------------------
 
 # Bibliographic Dublin Core info.
-epub_title = u'OpenStack Project Infrastructure Manual'
-epub_author = u'OpenStack Contributors'
-epub_publisher = u'OpenStack Contributors'
-epub_copyright = u'%s, OpenStack Contributors' % datetime.date.today().year
+epub_title = u'OpenDev Manual'
+epub_author = u'OpenDev Contributors'
+epub_publisher = u'OpenDev Contributors'
+epub_copyright = u'%s, OpenDev Contributors' % datetime.date.today().year
diff --git a/requirements.txt b/requirements.txt
index df48d23..cbcd41d 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,5 +2,5 @@
 # of appearance. Changing the order has an impact on the overall integration
 # process, which may cause wedges in the gate later.
 pbr>=2.0.0,!=2.1.0  # Apache-2.0
-openstackdocstheme>=1.17.0 # Apache-2.0
+openstackdocstheme>=1.32.1 # Apache-2.0
 sphinx>=1.6.2 # BSD
diff --git a/setup.cfg b/setup.cfg
index 315c46e..cd7eeb9 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,21 +1,12 @@
 [metadata]
 name = infra-manual
-summary = OpenStack Project Infrastructure Manual
+summary = OpenDev Manual
 description-file =
     README.rst
-author = OpenStack
+author = OpenDev
 author-email = openstack-infra@lists.openstack.org
-home-page = http://www.openstack.org/
+home-page = http://www.opendev.org/
 classifier =
     Intended Audience :: Developers
     License :: OSI Approved :: Apache Software License
     Operating System :: POSIX :: Linux
-
-[build_sphinx]
-all_files = 1
-build-dir = doc/build
-source-dir = doc/source
-warning-is-error = 1
-
-[wheel]
-universal = 1
diff --git a/setup.py b/setup.py
index 4a4d537..47577d4 100644
--- a/setup.py
+++ b/setup.py
@@ -16,14 +16,6 @@
 
 import setuptools
 
-# In python < 2.7.4, a lazy loading of package `pbr` will break
-# setuptools if some other modules registered functions in `atexit`.
-# solution from: http://bugs.python.org/issue15881#msg170215
-try:
-    import multiprocessing  # noqa
-except ImportError:
-    pass
-
 setuptools.setup(
-    setup_requires=['pbr>=1.8'],
+    setup_requires=['pbr>=2.0.0'],
     pbr=True)