diff --git a/doc/requirements.txt b/doc/requirements.txt index 4f75977e..a877a7cd 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,13 +1,11 @@ # The order of packages is significant, because pip processes them in the order # 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 +openstackdocstheme>=2.0.0 # Apache-2.0 reno>=2.5.0 # Apache-2.0 doc8>=0.6.0 # Apache-2.0 -sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD -sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD +sphinx>=2.0.0,!=2.1.0 # BSD mock>=2.0.0 # BSD -os-api-ref>=1.4.0 # Apache-2.0 ddt>=1.0.1 # MIT fixtures>=3.0.0 # Apache-2.0/BSD oslotest>=3.2.0 # Apache-2.0 diff --git a/doc/source/conf.py b/doc/source/conf.py index c1379aa1..33663855 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -15,8 +15,6 @@ import os import sys -import openstackdocstheme - sys.path.insert(0, os.path.abspath('../..')) # -- General configuration ---------------------------------------------------- @@ -33,7 +31,6 @@ extensions = [ repository_name = 'openstack/manila-ui' bug_project = 'manila-ui' bug_tag = 'docs' -html_last_updated_fmt = '%Y-%m-%d %H:%M' # autodoc generation is a bit aggressive and a nuisance when doing heavy # text edit cycles. @@ -65,7 +62,6 @@ pygments_style = 'sphinx' # Sphinx are currently 'default' and 'sphinxdoc'. # html_theme_path = ["."] html_theme = 'openstackdocs' -html_theme_path = [openstackdocstheme.get_html_theme_path()] # html_static_path = ['static'] # Output file base name for HTML help builder. diff --git a/lower-constraints.txt b/lower-constraints.txt index 7e571a3f..c43e70a3 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -46,7 +46,7 @@ msgpack==0.5.6 munch==2.2.0 netaddr==0.7.19 netifaces==0.10.6 -openstackdocstheme==1.18.1 +openstackdocstheme==2.0.0 openstacksdk==0.12.0 os-client-config==1.29.0 os-service-types==1.2.0 @@ -59,7 +59,7 @@ oslo.log==3.37.0 oslo.policy==1.34.0 oslo.serialization==2.25.0 oslo.utils==3.33.0 -osprofiler==2.0.0 +osprofiler==2.3.0 packaging==17.1 pbr==2.0.0 Pint==0.8.1 @@ -96,7 +96,7 @@ semantic-version==2.6.0 simplejson==3.13.2 six==1.10.0 snowballstemmer==1.2.1 -Sphinx==1.6.2 +Sphinx==2.0.0 sphinxcontrib-websupport==1.0.1 stevedore==1.28.0 testrepository==0.0.18 diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index f2a5062f..4af6cf19 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -31,8 +31,6 @@ # -- General configuration ------------------------------------------------ -import openstackdocstheme - # If your documentation needs a minimal Sphinx version, state it here. # needs_sphinx = '1.0' @@ -48,7 +46,6 @@ extensions = [ repository_name = 'openstack/manila-ui' bug_project = 'manila-ui' bug_tag = 'release notes' -html_last_updated_fmt = '%Y-%m-%d %H:%M' # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -121,9 +118,6 @@ html_theme = 'openstackdocs' # documentation. # html_theme_options = {} -# Add any paths that contain custom themes here, relative to this directory. -html_theme_path = [openstackdocstheme.get_html_theme_path()] - # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". # html_title = None diff --git a/requirements.txt b/requirements.txt index a950d2e6..cc311b61 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,6 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0 # Horizon Core Requirements -Babel!=2.4.0,>=2.3.4 # BSD django-compressor>=2.0 # MIT iso8601>=0.1.11 # MIT oslo.utils>=3.33.0 # Apache-2.0 diff --git a/setup.cfg b/setup.cfg index a834576c..76aea8b5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,6 +6,7 @@ description-file = author = OpenStack author-email = openstack-discuss@lists.openstack.org home-page = https://docs.openstack.org/manila-ui/latest/ +python-requires = >=3.6 classifier = Environment :: OpenStack Intended Audience :: Information Technology @@ -13,6 +14,8 @@ classifier = License :: OSI Approved :: Apache Software License Operating System :: POSIX :: Linux Programming Language :: Python + Programming Language :: Python :: Implementation :: CPython + Programming Language :: Python :: 3 :: Only Programming Language :: Python :: 3 Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 @@ -20,12 +23,3 @@ classifier = [files] packages = manila_ui - -[build_sphinx] -source-dir = doc/source -build-dir = doc/build -all_files = 1 -warning-is-error = 1 - -[upload_sphinx] -upload-dir = doc/build/html diff --git a/setup.py b/setup.py index 566d8443..cd35c3c3 100644 --- a/setup.py +++ b/setup.py @@ -13,17 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT 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>=2.0.0'], pbr=True) diff --git a/test-requirements.txt b/test-requirements.txt index 7eab2376..b06bb865 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -6,9 +6,8 @@ hacking>=3.0,<3.1.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 ddt>=1.0.1 # MIT python-subunit>=1.0.0 # Apache-2.0/BSD -sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD -sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD -openstackdocstheme>=1.18.1 # Apache-2.0 +openstackdocstheme>=2.0.0 # Apache-2.0 +sphinx>=2.0.0,!=2.1.0 # BSD pytest>=5.3.5 # MIT testrepository>=0.0.18 # Apache-2.0/BSD testscenarios>=0.4 # Apache-2.0/BSD diff --git a/tox.ini b/tox.ini index 88a20410..4d24412f 100644 --- a/tox.ini +++ b/tox.ini @@ -51,7 +51,7 @@ commands = {toxinidir}/tools/cover.sh {posargs} whitelist_externals = rm commands = rm -rf doc/build - python setup.py build_sphinx + sphinx-build -W -b html doc/source doc/build/html [testenv:pdf-docs] usedevelop = True