|
31 | 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
32 | 32 | # ones.
|
33 | 33 | extensions = [
|
34 |
| - 'sphinx.ext.extlinks', |
35 |
| - 'sphinx.ext.intersphinx', |
36 |
| - 'sphinx.ext.todo', |
37 |
| - 'sphinx_inline_tabs', |
38 |
| - 'sphinx_copybutton', |
39 |
| - 'sphinx_toolbox.collapse', |
| 34 | + "sphinx.ext.extlinks", |
| 35 | + "sphinx.ext.intersphinx", |
| 36 | + "sphinx.ext.todo", |
| 37 | + "sphinx_inline_tabs", |
| 38 | + "sphinx_copybutton", |
| 39 | + "sphinx_toolbox.collapse", |
40 | 40 | ]
|
41 | 41 |
|
42 | 42 | # config for copy button
|
43 | 43 | copybutton_prompt_text = r">>> |\.\.\. |\$ |> "
|
44 | 44 | copybutton_prompt_is_regexp = True
|
45 | 45 |
|
46 | 46 | # Add any paths that contain templates here, relative to this directory.
|
47 |
| -templates_path = ['_templates'] |
| 47 | +templates_path = ["_templates"] |
48 | 48 |
|
49 | 49 | # The suffix(es) of source filenames.
|
50 | 50 | # You can specify multiple suffix as a list of string:
|
51 | 51 | #
|
52 | 52 | # source_suffix = ['.rst', '.md']
|
53 |
| -source_suffix = '.rst' |
| 53 | +source_suffix = ".rst" |
54 | 54 |
|
55 | 55 | # The encoding of source files.
|
56 | 56 | #
|
57 | 57 | # source_encoding = 'utf-8-sig'
|
58 | 58 |
|
59 | 59 | # The master toctree document.
|
60 |
| -master_doc = 'index' |
| 60 | +master_doc = "index" |
61 | 61 |
|
62 | 62 | # -- Project information -----------------------------------------------------
|
63 | 63 |
|
64 |
| -github_url = 'https://github.com' |
65 |
| -github_repo_org = 'pypa' |
66 |
| -github_repo_name = 'packaging.python.org' |
67 |
| -github_repo_slug = f'{github_repo_org}/{github_repo_name}' |
68 |
| -github_repo_url = f'{github_url}/{github_repo_slug}' |
69 |
| -github_repo_issues_url = f'{github_url}/{github_repo_slug}/issues' |
70 |
| -github_sponsors_url = f'{github_url}/sponsors' |
| 64 | +github_url = "https://github.com" |
| 65 | +github_repo_org = "pypa" |
| 66 | +github_repo_name = "packaging.python.org" |
| 67 | +github_repo_slug = f"{github_repo_org}/{github_repo_name}" |
| 68 | +github_repo_url = f"{github_url}/{github_repo_slug}" |
| 69 | +github_repo_issues_url = f"{github_url}/{github_repo_slug}/issues" |
| 70 | +github_sponsors_url = f"{github_url}/sponsors" |
71 | 71 |
|
72 | 72 | # General information about the project.
|
73 |
| -project = u'Python Packaging User Guide' |
74 |
| -copyright = u'2013–2020, PyPA' |
75 |
| -author = 'Python Packaging Authority' |
| 73 | +project = "Python Packaging User Guide" |
| 74 | +copyright = "2013–2020, PyPA" |
| 75 | +author = "Python Packaging Authority" |
76 | 76 |
|
77 | 77 | # The version info for the project you're documenting, acts as replacement for
|
78 | 78 | # |version| and |release|, also used in various other places throughout the
|
79 | 79 | # built documents.
|
80 | 80 | #
|
81 | 81 | # The short X.Y version.
|
82 |
| -version = '' |
| 82 | +version = "" |
83 | 83 | # The full version, including alpha/beta/rc tags.
|
84 |
| -release = '' |
| 84 | +release = "" |
85 | 85 |
|
86 | 86 | # The language for content autogenerated by Sphinx. Refer to documentation
|
87 | 87 | # for a list of supported languages.
|
88 | 88 | #
|
89 | 89 | # This is also used if you do content translation via gettext catalogs.
|
90 | 90 | # Usually you set "language" from the command line for these cases.
|
91 |
| -language = 'en' |
| 91 | +language = "en" |
92 | 92 |
|
93 |
| -locale_dirs = ['../locales'] |
| 93 | +locale_dirs = ["../locales"] |
94 | 94 |
|
95 | 95 | gettext_auto_build = True # Build MO files from PO on each build
|
96 | 96 |
|
|
111 | 111 | # List of patterns, relative to source directory, that match files and
|
112 | 112 | # directories to ignore when looking for source files.
|
113 | 113 | # This patterns also effect to html_static_path and html_extra_path
|
114 |
| -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 114 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
115 | 115 |
|
116 | 116 | # The reST default role (used for this markup: `text`) to use for all
|
117 | 117 | # documents.
|
118 | 118 | # Ref: python-attrs/attrs#571
|
119 |
| -default_role = 'any' # makes single backticks autofind targets |
| 119 | +default_role = "any" # makes single backticks autofind targets |
120 | 120 |
|
121 | 121 | # If true, '()' will be appended to :func: etc. cross-reference text.
|
122 | 122 | #
|
|
133 | 133 | # show_authors = False
|
134 | 134 |
|
135 | 135 | # The name of the Pygments (syntax highlighting) style to use.
|
136 |
| -#pygments_style = 'sphinx' |
| 136 | +# pygments_style = 'sphinx' |
137 | 137 |
|
138 | 138 | # A list of ignored prefixes for module index sorting.
|
139 | 139 | # modindex_common_prefix = []
|
|
150 | 150 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
151 | 151 | # a list of builtin themes.
|
152 | 152 | #
|
153 |
| -html_theme = 'furo' |
| 153 | +html_theme = "furo" |
154 | 154 |
|
155 | 155 | # Theme options are theme-specific and customize the look and feel of a theme
|
156 | 156 | # further. For a list of options available for each theme, see the
|
|
166 | 166 | # The name for this set of Sphinx documents.
|
167 | 167 | # "<project> v<release> documentation" by default.
|
168 | 168 | #
|
169 |
| -html_title = 'Python Packaging User Guide' |
| 169 | +html_title = "Python Packaging User Guide" |
170 | 170 |
|
171 | 171 | # A shorter title for the navigation bar. Default is the same as html_title.
|
172 | 172 | #
|
|
181 | 181 | # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
182 | 182 | # pixels large.
|
183 | 183 | #
|
184 |
| -html_favicon = 'assets/py.png' |
| 184 | +html_favicon = "assets/py.png" |
185 | 185 |
|
186 | 186 | # Add any paths that contain custom static files (such as style sheets) here,
|
187 | 187 | # relative to this directory. They are copied after the builtin static files,
|
|
198 | 198 | # bottom, using the given strftime format.
|
199 | 199 | # The empty string is equivalent to '%b %d, %Y'.
|
200 | 200 | #
|
201 |
| -html_last_updated_fmt = '' |
| 201 | +html_last_updated_fmt = "" |
202 | 202 |
|
203 | 203 | # If true, SmartyPants will be used to convert quotes and dashes to
|
204 | 204 | # typographically correct entities.
|
|
271 | 271 | # html_search_scorer = 'scorer.js'
|
272 | 272 |
|
273 | 273 | # Output file base name for HTML help builder.
|
274 |
| -htmlhelp_basename = 'pythonpackagingguide-authdoc' |
| 274 | +htmlhelp_basename = "pythonpackagingguide-authdoc" |
275 | 275 |
|
276 | 276 | # -- Options for LaTeX output ---------------------------------------------
|
277 | 277 |
|
278 | 278 | latex_elements = {
|
279 |
| - # The paper size ('letterpaper' or 'a4paper'). |
280 |
| - # |
281 |
| - # 'papersize': 'letterpaper', |
282 |
| - |
283 |
| - # The font size ('10pt', '11pt' or '12pt'). |
284 |
| - # |
285 |
| - # 'pointsize': '10pt', |
286 |
| - |
287 |
| - # Additional stuff for the LaTeX preamble. |
288 |
| - # |
289 |
| - # 'preamble': '', |
290 |
| - |
291 |
| - # Latex figure (float) alignment |
292 |
| - # |
293 |
| - # 'figure_align': 'htbp', |
| 279 | + # The paper size ('letterpaper' or 'a4paper'). |
| 280 | + # |
| 281 | + # 'papersize': 'letterpaper', |
| 282 | + # The font size ('10pt', '11pt' or '12pt'). |
| 283 | + # |
| 284 | + # 'pointsize': '10pt', |
| 285 | + # Additional stuff for the LaTeX preamble. |
| 286 | + # |
| 287 | + # 'preamble': '', |
| 288 | + # Latex figure (float) alignment |
| 289 | + # |
| 290 | + # 'figure_align': 'htbp', |
294 | 291 | }
|
295 | 292 |
|
296 | 293 | # Grouping the document tree into LaTeX files. List of tuples
|
297 | 294 | # (source start file, target name, title,
|
298 | 295 | # author, documentclass [howto, manual, or own class]).
|
299 | 296 | latex_documents = [
|
300 |
| - (master_doc, 'pythonpackagingguide.tex', 'Python Packaging User Guide', |
301 |
| - 'Python Packaging Authority', 'manual'), |
| 297 | + ( |
| 298 | + master_doc, |
| 299 | + "pythonpackagingguide.tex", |
| 300 | + "Python Packaging User Guide", |
| 301 | + "Python Packaging Authority", |
| 302 | + "manual", |
| 303 | + ), |
302 | 304 | ]
|
303 | 305 |
|
304 | 306 | # The name of an image file (relative to this directory) to place at the top of
|
|
339 | 341 | # One entry per manual page. List of tuples
|
340 | 342 | # (source start file, name, description, authors, manual section).
|
341 | 343 | man_pages = [
|
342 |
| - (master_doc, 'pythonpackagingguide', 'Python Packaging User Guide', |
343 |
| - [author], 1) |
| 344 | + (master_doc, "pythonpackagingguide", "Python Packaging User Guide", [author], 1) |
344 | 345 | ]
|
345 | 346 |
|
346 | 347 | # If true, show URL addresses after external links.
|
|
354 | 355 | # (source start file, target name, title, author,
|
355 | 356 | # dir menu entry, description, category)
|
356 | 357 | texinfo_documents = [
|
357 |
| - (master_doc, 'pythonpackagingguide', 'Python Packaging User Guide', |
358 |
| - author, 'pythonpackagingguide', 'One line description of project.', |
359 |
| - 'Miscellaneous'), |
| 358 | + ( |
| 359 | + master_doc, |
| 360 | + "pythonpackagingguide", |
| 361 | + "Python Packaging User Guide", |
| 362 | + author, |
| 363 | + "pythonpackagingguide", |
| 364 | + "One line description of project.", |
| 365 | + "Miscellaneous", |
| 366 | + ), |
360 | 367 | ]
|
361 | 368 |
|
362 | 369 | # Documents to append as an appendix to all manuals.
|
|
377 | 384 |
|
378 | 385 | # -- Options for extlinks extension ---------------------------------------
|
379 | 386 | extlinks = {
|
380 |
| - 'issue': (f'{github_repo_issues_url}/%s', '#%s'), # noqa: WPS323 |
381 |
| - 'pr': (f'{github_repo_url}/pull/%s', 'PR #%s'), # noqa: WPS323 |
382 |
| - 'commit': (f'{github_repo_url}/commit/%s', '%s'), # noqa: WPS323 |
383 |
| - 'gh': (f'{github_url}/%s', 'GitHub: %s'), # noqa: WPS323 |
384 |
| - 'user': (f'{github_sponsors_url}/%s', '@%s'), # noqa: WPS323 |
| 387 | + "issue": (f"{github_repo_issues_url}/%s", "#%s"), # noqa: WPS323 |
| 388 | + "pr": (f"{github_repo_url}/pull/%s", "PR #%s"), # noqa: WPS323 |
| 389 | + "commit": (f"{github_repo_url}/commit/%s", "%s"), # noqa: WPS323 |
| 390 | + "gh": (f"{github_url}/%s", "GitHub: %s"), # noqa: WPS323 |
| 391 | + "user": (f"{github_sponsors_url}/%s", "@%s"), # noqa: WPS323 |
385 | 392 | }
|
386 | 393 |
|
387 | 394 | linkcheck_ignore = [
|
|
395 | 402 |
|
396 | 403 | # Example configuration for intersphinx: refer to the Python standard library.
|
397 | 404 | intersphinx_mapping = {
|
398 |
| - 'boltons': ('https://boltons.readthedocs.io/en/latest/', None), |
399 |
| - 'bottle': ('https://bottlepy.org/docs/dev/', None), |
400 |
| - 'build': ('https://pypa-build.readthedocs.io/en/stable/', None), |
401 |
| - 'cffi': ('https://cffi.readthedocs.io/en/latest/', None), |
402 |
| - 'conda': ('https://conda.io/en/latest/', None), |
403 |
| - 'devpi': ('https://devpi.net/docs/devpi/devpi/latest/+doc', None), |
404 |
| - 'dh-virtualenv': ('https://dh-virtualenv.readthedocs.io/en/latest/', None), |
405 |
| - 'distlib': ('https://distlib.readthedocs.io/en/latest/', None), |
406 |
| - 'flexx': ('https://flexx.readthedocs.io/en/latest/', None), |
407 |
| - 'nox': ('https://nox.thea.codes/en/latest/', None), |
408 |
| - 'openstack': ('https://docs.openstack.org/glance/latest/', None), |
409 |
| - 'packaging': ('https://packaging.pypa.io/en/latest/', None), |
410 |
| - 'packaging.python.org': ('https://packaging.python.org/en/latest/', None), |
411 |
| - 'pip': ('https://pip.pypa.io/en/latest/', None), |
412 |
| - 'pipenv': ('https://pipenv.pypa.io/en/latest/', None), |
413 |
| - 'piwheels': ('https://piwheels.readthedocs.io/en/latest/', None), |
414 |
| - 'pybind11': ('https://pybind11.readthedocs.io/en/stable/', None), |
415 |
| - 'pynsist': ('https://pynsist.readthedocs.io/en/latest/', None), |
416 |
| - 'pypa': ('https://www.pypa.io/en/latest/', None), |
417 |
| - 'python': ('https://docs.python.org/3', None), |
418 |
| - 'python-guide': ('https://docs.python-guide.org', None), |
419 |
| - 'setuptools': ('https://setuptools.pypa.io/en/latest/', None), |
420 |
| - 'spack': ('https://spack.readthedocs.io/en/latest/', None), |
421 |
| - 'sphinx': ('https://www.sphinx-doc.org/en/master', None), |
422 |
| - 'tox': ('https://tox.wiki/en/latest/', None), |
423 |
| - 'twine': ('https://twine.readthedocs.io/en/stable/', None), |
424 |
| - 'virtualenv': ('https://virtualenv.pypa.io/en/stable/', None), |
| 405 | + "boltons": ("https://boltons.readthedocs.io/en/latest/", None), |
| 406 | + "bottle": ("https://bottlepy.org/docs/dev/", None), |
| 407 | + "build": ("https://pypa-build.readthedocs.io/en/stable/", None), |
| 408 | + "cffi": ("https://cffi.readthedocs.io/en/latest/", None), |
| 409 | + "conda": ("https://conda.io/en/latest/", None), |
| 410 | + "devpi": ("https://devpi.net/docs/devpi/devpi/latest/+doc", None), |
| 411 | + "dh-virtualenv": ("https://dh-virtualenv.readthedocs.io/en/latest/", None), |
| 412 | + "distlib": ("https://distlib.readthedocs.io/en/latest/", None), |
| 413 | + "flexx": ("https://flexx.readthedocs.io/en/latest/", None), |
| 414 | + "nox": ("https://nox.thea.codes/en/latest/", None), |
| 415 | + "openstack": ("https://docs.openstack.org/glance/latest/", None), |
| 416 | + "packaging": ("https://packaging.pypa.io/en/latest/", None), |
| 417 | + "packaging.python.org": ("https://packaging.python.org/en/latest/", None), |
| 418 | + "pip": ("https://pip.pypa.io/en/latest/", None), |
| 419 | + "pipenv": ("https://pipenv.pypa.io/en/latest/", None), |
| 420 | + "piwheels": ("https://piwheels.readthedocs.io/en/latest/", None), |
| 421 | + "pybind11": ("https://pybind11.readthedocs.io/en/stable/", None), |
| 422 | + "pynsist": ("https://pynsist.readthedocs.io/en/latest/", None), |
| 423 | + "pypa": ("https://www.pypa.io/en/latest/", None), |
| 424 | + "python": ("https://docs.python.org/3", None), |
| 425 | + "python-guide": ("https://docs.python-guide.org", None), |
| 426 | + "setuptools": ("https://setuptools.pypa.io/en/latest/", None), |
| 427 | + "spack": ("https://spack.readthedocs.io/en/latest/", None), |
| 428 | + "sphinx": ("https://www.sphinx-doc.org/en/master", None), |
| 429 | + "tox": ("https://tox.wiki/en/latest/", None), |
| 430 | + "twine": ("https://twine.readthedocs.io/en/stable/", None), |
| 431 | + "virtualenv": ("https://virtualenv.pypa.io/en/stable/", None), |
425 | 432 | }
|
426 | 433 |
|
427 | 434 |
|
|
435 | 442 | # NOTE: consider having a separate ignore file
|
436 | 443 | # Ref: https://stackoverflow.com/a/30624034/595220
|
437 | 444 | nitpick_ignore = [
|
438 |
| - ('envvar', 'PATH'), |
439 |
| - ('py:func', 'find_packages'), |
440 |
| - ('py:func', 'setup'), |
441 |
| - ('py:func', 'importlib.metadata.entry_points'), # remove when 3.10 is released |
442 |
| - ('py:class', 'importlib.metadata.EntryPoint'), # remove when 3.10 is released |
443 |
| - ('py:func', 'setuptools.find_namespace_packages'), |
444 |
| - ('py:func', 'setuptools.find_packages'), |
445 |
| - ('py:func', 'setuptools.setup'), |
| 445 | + ("envvar", "PATH"), |
| 446 | + ("py:func", "find_packages"), |
| 447 | + ("py:func", "setup"), |
| 448 | + ("py:func", "importlib.metadata.entry_points"), # remove when 3.10 is released |
| 449 | + ("py:class", "importlib.metadata.EntryPoint"), # remove when 3.10 is released |
| 450 | + ("py:func", "setuptools.find_namespace_packages"), |
| 451 | + ("py:func", "setuptools.find_packages"), |
| 452 | + ("py:func", "setuptools.setup"), |
446 | 453 | ]
|
0 commit comments