]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix almost all read-level sphinx warnings
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 11 Apr 2020 17:53:41 +0000 (13:53 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 11 Apr 2020 17:53:41 +0000 (13:53 -0400)
Partial backport of 43bcb0de1ecc1dc2abd7e7c3eb0c39f3eab9adc0.

Also enables sphinx multiprocess.

Change-Id: I49b1959b9a5fe84fb4c74366da2724284a804936

34 files changed:
doc/build/Makefile
doc/build/changelog/changelog_07.rst
doc/build/changelog/changelog_08.rst
doc/build/changelog/changelog_09.rst
doc/build/changelog/changelog_10.rst
doc/build/changelog/changelog_11.rst
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_08.rst
doc/build/core/constraints.rst
doc/build/core/custom_types.rst
doc/build/core/ddl.rst
doc/build/core/defaults.rst
doc/build/core/dml.rst
doc/build/core/functions.rst
doc/build/core/reflection.rst
doc/build/core/schema.rst
doc/build/core/selectable.rst
doc/build/core/sqlelement.rst
doc/build/core/type_api.rst
doc/build/orm/collections.rst
doc/build/orm/composites.rst
doc/build/orm/constructors.rst
doc/build/orm/loading_columns.rst
doc/build/orm/mapped_attributes.rst
doc/build/orm/mapped_sql_expr.rst
doc/build/orm/mapping_api.rst
doc/build/orm/mapping_columns.rst
doc/build/orm/query.rst
doc/build/orm/relationship_api.rst
doc/build/orm/relationships.rst
doc/build/orm/scalar_mapping.rst
doc/build/orm/session_api.rst
lib/sqlalchemy/sql/base.py
lib/sqlalchemy/util/langhelpers.py

index cd39b7288820287fdafa222d15f8ff7f51402d62..58fdc6c162f9981d9049560caa8319e63bc292c2 100644 (file)
@@ -2,7 +2,7 @@
 #
 
 # You can set these variables from the command line.
-SPHINXOPTS    = -v
+SPHINXOPTS    = -j auto -v
 SPHINXBUILD   = sphinx-build
 PAPER         =
 BUILDDIR      = output
index 2ddeedded2526e12d17f4dddfc557cf1af3aafa3..f921d294919e1673a89d1a026b66f23cab7aedea 100644 (file)
@@ -1,62 +1,62 @@
-
 =============
 0.7 Changelog
 =============
 
 .. changelog::
     :version: 0.7.11
+    :released:
 
     .. change::
         :tags: bug, engine
         :tickets: 2851
         :versions: 0.8.3, 0.9.0b1
 
-        The regexp used by the :func:`~sqlalchemy.engine.url.make_url` function now parses
-        ipv6 addresses, e.g. surrounded by brackets.
+      The regexp used by the :func:`~sqlalchemy.engine.url.make_url` function now parses
+      ipv6 addresses, e.g. surrounded by brackets.
 
     .. change::
         :tags: bug, orm
         :tickets: 2807
         :versions: 0.8.3, 0.9.0b1
 
-        Fixed bug where list instrumentation would fail to represent a
-        setslice of ``[0:0]`` correctly, which in particular could occur
-        when using ``insert(0, item)`` with the association proxy.  Due
-        to some quirk in Python collections, the issue was much more likely
-        with Python 3 rather than 2.
+      Fixed bug where list instrumentation would fail to represent a
+      setslice of ``[0:0]`` correctly, which in particular could occur
+      when using ``insert(0, item)`` with the association proxy.  Due
+      to some quirk in Python collections, the issue was much more likely
+      with Python 3 rather than 2.
 
     .. change::
         :tags: bug, sql
         :tickets: 2801
         :versions: 0.8.3, 0.9.0b1
 
-        Fixed regression dating back to 0.7.9 whereby the name of a CTE might
-        not be properly quoted if it was referred to in multiple FROM clauses.
+      Fixed regression dating back to 0.7.9 whereby the name of a CTE might
+      not be properly quoted if it was referred to in multiple FROM clauses.
 
     .. change::
         :tags: mysql, bug
         :tickets: 2791
         :versions: 0.8.3, 0.9.0b1
 
-        Updates to MySQL reserved words for versions 5.5, 5.6, courtesy
-        Hanno Schlichting.
+      Updates to MySQL reserved words for versions 5.5, 5.6, courtesy
+      Hanno Schlichting.
 
     .. change::
         :tags: sql, bug, cte
         :tickets: 2783
         :versions: 0.8.3, 0.9.0b1
 
-        Fixed bug in common table expression system where if the CTE were
-        used only as an ``alias()`` construct, it would not render using the
-        WITH keyword.
+      Fixed bug in common table expression system where if the CTE were
+      used only as an ``alias()`` construct, it would not render using the
+      WITH keyword.
 
     .. change::
         :tags: bug, sql
         :tickets: 2784
         :versions: 0.8.3, 0.9.0b1
 
-        Fixed bug in :class:`.CheckConstraint` DDL where the "quote" flag from a
-        :class:`.Column` object would not be propagated.
+      Fixed bug in :class:`.CheckConstraint` DDL where the "quote" flag from a
+      :class:`.Column` object would not be propagated.
 
     .. change::
         :tags: bug, orm
index bef1ece84c84e2c9de5ff4b6d9c03077a0aa5768..e50b140ac6b541981ee291fed7782f481f8ce187 100644 (file)
@@ -1,4 +1,3 @@
-
 =============
 0.8 Changelog
 =============
index a3140f0ca10f318445df1b84f2e2a854506ee22b..ad8a9016787345c00607017c99c5b1e6620a751d 100644 (file)
@@ -7,9 +7,11 @@
     .. include:: changelog_08.rst
         :start-line: 5
 
+
     .. include:: changelog_07.rst
         :start-line: 5
 
+
 .. _unreleased_changelog::
     :version: 0.9.11
 
index 7126bfcbe9ac9d4d7a1cb7978a9d863d6e18ac19..3437b74f4d2232628a74c80b63dac1a777f1900b 100644 (file)
@@ -1,5 +1,3 @@
-
-
 =============
 1.0 Changelog
 =============
@@ -9,13 +7,16 @@
     .. include:: changelog_09.rst
         :start-line: 5
 
+
     .. include:: changelog_08.rst
         :start-line: 5
 
+
     .. include:: changelog_07.rst
         :start-line: 5
 
 
+
 .. changelog::
     :version: 1.0.19
     :released: August 3, 2017
index 0ba89e75146a22d67499c38eae10fb571cc3d07f..aec6670388eef35432d8889e1cf4ee0cd32b9e94 100644 (file)
@@ -7,16 +7,20 @@
     .. include:: changelog_10.rst
         :start-line: 5
 
+
     .. include:: changelog_09.rst
         :start-line: 5
 
+
     .. include:: changelog_08.rst
         :start-line: 5
 
+
     .. include:: changelog_07.rst
         :start-line: 5
 
 
+
 .. changelog::
     :version: 1.1.19
     :include_notes_from: unreleased_11
index 66a46778082edaa7ae373fada0eff7de4a75f605..d7eece95c9fcff52a3ac298264971607a804f520 100644 (file)
@@ -7,9 +7,11 @@
     .. include:: changelog_11.rst
         :start-line: 5
 
+
     .. include:: changelog_10.rst
         :start-line: 5
 
+
 .. changelog::
     :version: 1.2.20
     :include_notes_from: unreleased_12
index dcf117c29497af31506e5f61ebb98400e2ff6196..f0661c4fc1d10d928e51f7a704502c3bce48bd79 100644 (file)
@@ -1298,7 +1298,7 @@ be no pending state change on an unloaded attribute.
 :ticket:`2320`
 
 :attr:`.Column.key` is honored in the :attr:`.Select.c` attribute of :func:`.select` with :meth:`.Select.apply_labels`
------------------------------------------------------------------------------------------------------------------------
+--------------------------------------------------------------------------------------------------------------------------------
 
 Users of the expression system know that :meth:`.Select.apply_labels`
 prepends the table name to each column name, affecting the
index 991820efca2e0e2bfcdbc2e513c2e5dcc57edb23..c077cd83779d6d4957fe09fb3dce35dabeeb81cb 100644 (file)
@@ -1,7 +1,7 @@
 .. _metadata_constraints_toplevel:
 .. _metadata_constraints:
 
-.. module:: sqlalchemy.schema
+.. currentmodule:: sqlalchemy.schema
 
 ================================
 Defining Constraints and Indexes
index b7d0eef93624dc6691de84f5b51f54c249a4045f..02b2a500fe48bec0e5b04487f630b044b9f8b559 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.types
+.. currentmodule:: sqlalchemy.types
 
 .. _types_custom:
 
index 3ca4dccf485e70d54838155007e6c35a43b9c929..46a4e1d841720bd0838ba9418e8f279dbdb7639f 100644 (file)
@@ -1,6 +1,6 @@
 .. _metadata_ddl_toplevel:
 .. _metadata_ddl:
-.. module:: sqlalchemy.schema
+.. currentmodule:: sqlalchemy.schema
 
 Customizing DDL
 ===============
index 6775f3155189e0ff72a438844a8aa7cd2154f433..07f859001c5564c9685296ddf9e204ef5c8e6538 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.schema
+.. currentmodule:: sqlalchemy.schema
 
 .. _metadata_defaults_toplevel:
 
index 3b6949b79580aee8fd7846dff02742fbf90791a7..51c9a2f1cd51d90d39ddbf9503065d383cb230d0 100644 (file)
@@ -5,7 +5,7 @@ INSERT, UPDATE and DELETE statements build on a hierarchy starting
 with :class:`.UpdateBase`.   The :class:`.Insert` and :class:`.Update`
 constructs build on the intermediary :class:`.ValuesBase`.
 
-.. module:: sqlalchemy.sql.expression
+.. currentmodule:: sqlalchemy.sql.expression
 
 .. autofunction:: delete
 
index 90164850d4cb8a60915a75dae413fa3f4bfdf881..cb53eda13988f4466df81554dafa2a7922705f14 100644 (file)
@@ -5,7 +5,7 @@
 SQL and Generic Functions
 =========================
 
-.. module:: sqlalchemy.sql.expression
+.. currentmodule:: sqlalchemy.sql.expression
 
 SQL functions which are known to SQLAlchemy with regards to database-specific
 rendering, return types and argument behavior. Generic functions are invoked
index 8092f149064f3b239fcfc5b8e1bae0a7f2d007e5..1848c044e04539452d6aa44fc900e09a69fc7ee4 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.schema
+.. currentmodule:: sqlalchemy.schema
 
 .. _metadata_reflection_toplevel:
 .. _metadata_reflection:
index 8553ebcbf67831c5fa0eb8af633d2c17a3285e61..5de685c7f24840f04ed368e14724595f8929fd96 100644 (file)
@@ -4,7 +4,7 @@
 Schema Definition Language
 ==========================
 
-.. module:: sqlalchemy.schema
+.. currentmodule:: sqlalchemy.schema
 
 This section references SQLAlchemy **schema metadata**, a comprehensive system of describing and inspecting
 database schemas.
index 57e389722e1f595184a7842ccddefc31e0c30007..8952daec5e6fdbb2ae7e22bddba4d31fc415efbe 100644 (file)
@@ -7,7 +7,7 @@ distinguishing feature is their :attr:`.FromClause.c` attribute, which is
 a namespace of all the columns contained within the FROM clause (these
 elements are themselves :class:`.ColumnElement` subclasses).
 
-.. module:: sqlalchemy.sql.expression
+.. currentmodule:: sqlalchemy.sql.expression
 
 .. autofunction:: alias
 
index bdd2091f61661439bda480fea84ebd99792da8f9..daf2ada2f62ed787b4f42081c8c7694431b3ffec 100644 (file)
@@ -1,7 +1,7 @@
 Column Elements and Expressions
 ===============================
 
-.. module:: sqlalchemy.sql.expression
+.. currentmodule:: sqlalchemy.sql.expression
 
 The expression API consists of a series of classes each of which represents a
 specific lexical element within a SQL string.  Composed together
index f165df5a2668259c0075b269d9f2131dc215b764..115cbd202f210469dbfc49ce7c739f7c797dd1e8 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.types
+.. currentmodule:: sqlalchemy.types
 
 .. _types_api:
 
index 9e49f7c1ead814d846c9ba1eb4b4c1cef86c23d5..cba82ef00d9daaccb39a4566710676aacdfa8068 100644 (file)
@@ -13,7 +13,6 @@ This section presents additional information about collection configuration
 and techniques.
 
 .. _largecollections:
-.. currentmodule:: sqlalchemy.orm
 
 Working with Large Collections
 ==============================
@@ -185,6 +184,7 @@ database.
     :paramref:`.orm.mapper.passive_deletes` - similar feature on :func:`.mapper`
 
 .. currentmodule:: sqlalchemy.orm.collections
+
 .. _custom_collections:
 
 Customizing Collection Access
index e933e81c9080309f9f577fbc47a52c04543e415c..786a6b5be8cf6111e77bf4474215dc4321d98d71 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.orm
+.. currentmodule:: sqlalchemy.orm
 
 .. _mapper_composite:
 
index 4d7268557d39c15ed3a74498202e04880ab8ac8f..ded70a9720c5a6b67385a5c3d9ca92d3641ce6e0 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.orm
+.. currentmodule:: sqlalchemy.orm
 
 .. _mapping_constructors:
 
index d12865145391e2918c048c4f66a461be4d2233b7..5135dff64f6aab7542ec867fab3ea35fbc9aca48 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.orm
+.. currentmodule:: sqlalchemy.orm
 
 ===============
 Loading Columns
index bce40bfb4910b86216f90f052e5604a31d140951..535c075c94b65545baff04eed32e4f63ef1deb23 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.orm
+.. currentmodule:: sqlalchemy.orm
 
 Changing Attribute Behavior
 ===========================
index e04abba806b604d637c32e2b0f27395c67f825a7..db3b84b7c9f2ebda46b96735909cd241d94f7259 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.orm
+.. currentmodule:: sqlalchemy.orm
 
 .. _mapper_sql_expressions:
 
index cd7c379cd2ee5c849efc279c32bae5bc10c908f8..99e0ba52d441adf00fb379c5c91c3b2d99fd5155 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.orm
+.. currentmodule:: sqlalchemy.orm
 
 Class Mapping API
 =================
index 7d7b691409145cf2fa3047e95d7e7f030df31ae6..71e145747c12c8d7a7854ee6c230335237960918 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.orm
+.. currentmodule:: sqlalchemy.orm
 
 Mapping Table Columns
 =====================
index a192bad941436e5a7778ffa62083b03ec5830698..e997a4dcbde2013ffbfcafee63bf8a5ed5cc4b6c 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.orm
+.. currentmodule:: sqlalchemy.orm
 
 .. _query_api_toplevel:
 
index 03045f6980d75d41f26d07d9ddcdc616a73ef85c..2766c4020a714a654f578653c1b9568b2b85c61d 100644 (file)
@@ -1,4 +1,4 @@
-.. automodule:: sqlalchemy.orm
+.. currentmodule:: sqlalchemy.orm
 
 Relationships API
 -----------------
index f5cbac87eba4342eb3ea61a6fdd1f53970295ef8..37f59d34523473b02253423728ccdfd0260ee98e 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.orm
+.. currentmodule:: sqlalchemy.orm
 
 .. _relationship_config_toplevel:
 
index 65efd5dbd9f1f01b0c47ac68ee55f673e0b6ff04..e8829af49a61166f04cd6101fdc3f1437c928c5b 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.orm
+.. currentmodule:: sqlalchemy.orm
 
 ===============================
 Mapping Columns and Expressions
index 683719945fb787831bb282c6345563bc2700793e..11e37a2c87aa09606093800a0698302a65361e94 100644 (file)
@@ -1,4 +1,4 @@
-.. module:: sqlalchemy.orm.session
+.. currentmodule:: sqlalchemy.orm.session
 
 Session API
 ===========
index 4259cecb4b5a08ef5213fe0eaade7b67c376dad7..d67fba2905d54d970c9247643f83ab94e8b51cd5 100644 (file)
@@ -401,7 +401,9 @@ class Executable(Generative):
         return self._execution_options
 
     def execute(self, *multiparams, **params):
-        """Compile and execute this :class:`.Executable`."""
+        """Compile and execute this :class:`.Executable`.
+
+        """
         e = self.bind
         if e is None:
             label = getattr(self, "description", self.__class__.__name__)
index f2341222c107316c703ed99e003f326d4c6bec38..876a4bd7136c0a471a69c9961888c803eeaa1deb 100644 (file)
@@ -213,7 +213,7 @@ def %(name)s(%(args)s):
             "Inherited from :func:`sqlalchemy%s`; this constructor "
             "creates a :class:`%s` object"
             % (linked_to_location, class_location),
-            0,
+            1,
         )
         decorated.__doc__ = linked_to_doc
     else:
@@ -1677,6 +1677,8 @@ def _dedent_docstring(text):
 def inject_docstring_text(doctext, injecttext, pos):
     doctext = _dedent_docstring(doctext or "")
     lines = doctext.split("\n")
+    if len(lines) == 1:
+        lines.append("")
     injectlines = textwrap.dedent(injecttext).split("\n")
     if injectlines[0]:
         injectlines.insert(0, "")