]> git.pld-linux.org Git - packages/python-Sphinx.git/blob - python-Sphinx-mock.patch
- release 2 (by relup.sh)
[packages/python-Sphinx.git] / python-Sphinx-mock.patch
1 diff -urNp -x '*.orig' Sphinx-1.8.5.org/setup.py Sphinx-1.8.5/setup.py
2 --- Sphinx-1.8.5.org/setup.py   2019-03-10 08:47:02.000000000 +0100
3 +++ Sphinx-1.8.5/setup.py       2021-02-27 11:42:43.620291111 +0100
4 @@ -43,7 +43,6 @@ extras_require = {
5          'whoosh>=2.0',
6      ],
7      'test': [
8 -        'mock',
9          'pytest',
10          'pytest-cov',
11          'html5lib',
12 diff -urNp -x '*.orig' Sphinx-1.8.5.org/tests/test_build.py Sphinx-1.8.5/tests/test_build.py
13 --- Sphinx-1.8.5.org/tests/test_build.py        2019-03-10 08:47:02.000000000 +0100
14 +++ Sphinx-1.8.5/tests/test_build.py    2021-02-27 11:42:43.620291111 +0100
15 @@ -13,7 +13,10 @@ import pickle
16  import sys
17  from textwrap import dedent
18  
19 -import mock
20 +try:
21 +    import mock
22 +except ImportError:
23 +    from unittest import mock
24  import pytest
25  from docutils import nodes
26  
27 diff -urNp -x '*.orig' Sphinx-1.8.5.org/tests/test_config.py Sphinx-1.8.5/tests/test_config.py
28 --- Sphinx-1.8.5.org/tests/test_config.py       2019-03-10 08:47:02.000000000 +0100
29 +++ Sphinx-1.8.5/tests/test_config.py   2021-02-27 11:42:43.620291111 +0100
30 @@ -9,7 +9,10 @@
31      :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
32      :license: BSD, see LICENSE for details.
33  """
34 -import mock
35 +try:
36 +    import mock
37 +except ImportError:
38 +    from unittest import mock
39  import pytest
40  from six import PY3
41  
42 diff -urNp -x '*.orig' Sphinx-1.8.5.org/tests/test_domain_std.py Sphinx-1.8.5/tests/test_domain_std.py
43 --- Sphinx-1.8.5.org/tests/test_domain_std.py   2019-03-10 08:47:02.000000000 +0100
44 +++ Sphinx-1.8.5/tests/test_domain_std.py       2021-02-27 11:42:43.620291111 +0100
45 @@ -9,7 +9,10 @@
46      :license: BSD, see LICENSE for details.
47  """
48  
49 -import mock
50 +try:
51 +    import mock
52 +except ImportError:
53 +    from unittest import mock
54  from docutils import nodes
55  
56  from sphinx.domains.std import StandardDomain
57 diff -urNp -x '*.orig' Sphinx-1.8.5.org/tests/test_environment_indexentries.py Sphinx-1.8.5/tests/test_environment_indexentries.py
58 --- Sphinx-1.8.5.org/tests/test_environment_indexentries.py     2019-03-10 08:47:02.000000000 +0100
59 +++ Sphinx-1.8.5/tests/test_environment_indexentries.py 2021-02-27 11:42:43.620291111 +0100
60 @@ -11,7 +11,10 @@
61  
62  from collections import namedtuple
63  
64 -import mock
65 +try:
66 +    import mock
67 +except ImportError:
68 +    from unittest import mock
69  
70  from sphinx import locale
71  from sphinx.environment.adapters.indexentries import IndexEntries
72 diff -urNp -x '*.orig' Sphinx-1.8.5.org/tests/test_ext_intersphinx.py Sphinx-1.8.5/tests/test_ext_intersphinx.py
73 --- Sphinx-1.8.5.org/tests/test_ext_intersphinx.py      2019-03-10 08:47:02.000000000 +0100
74 +++ Sphinx-1.8.5/tests/test_ext_intersphinx.py  2021-02-27 11:42:43.620291111 +0100
75 @@ -13,7 +13,10 @@ import os
76  import unittest
77  from io import BytesIO
78  
79 -import mock
80 +try:
81 +    import mock
82 +except ImportError:
83 +    from unittest import mock
84  import pytest
85  import requests
86  from docutils import nodes
87 diff -urNp -x '*.orig' Sphinx-1.8.5.org/tests/test_ext_napoleon.py Sphinx-1.8.5/tests/test_ext_napoleon.py
88 --- Sphinx-1.8.5.org/tests/test_ext_napoleon.py 2019-03-10 08:47:02.000000000 +0100
89 +++ Sphinx-1.8.5/tests/test_ext_napoleon.py     2021-02-27 11:42:43.620291111 +0100
90 @@ -13,7 +13,10 @@
91  from collections import namedtuple
92  from unittest import TestCase
93  
94 -import mock
95 +try:
96 +    import mock
97 +except ImportError:
98 +    from unittest import mock
99  
100  from sphinx.application import Sphinx
101  from sphinx.ext.napoleon import _process_docstring, _skip_member, Config, setup
102 diff -urNp -x '*.orig' Sphinx-1.8.5.org/tests/test_ext_napoleon_docstring.py Sphinx-1.8.5/tests/test_ext_napoleon_docstring.py
103 --- Sphinx-1.8.5.org/tests/test_ext_napoleon_docstring.py       2019-03-10 08:47:02.000000000 +0100
104 +++ Sphinx-1.8.5/tests/test_ext_napoleon_docstring.py   2021-02-27 11:42:43.620291111 +0100
105 @@ -15,7 +15,10 @@ from inspect import cleandoc
106  from textwrap import dedent
107  from unittest import TestCase
108  
109 -import mock
110 +try:
111 +    import mock
112 +except ImportError:
113 +    from unittest import mock
114  
115  from sphinx.ext.napoleon import Config
116  from sphinx.ext.napoleon.docstring import GoogleDocstring, NumpyDocstring
117 diff -urNp -x '*.orig' Sphinx-1.8.5.org/tests/test_util_fileutil.py Sphinx-1.8.5/tests/test_util_fileutil.py
118 --- Sphinx-1.8.5.org/tests/test_util_fileutil.py        2019-03-10 08:47:02.000000000 +0100
119 +++ Sphinx-1.8.5/tests/test_util_fileutil.py    2021-02-27 11:42:43.620291111 +0100
120 @@ -9,7 +9,10 @@
121      :license: BSD, see LICENSE for details.
122  """
123  
124 -import mock
125 +try:
126 +    import mock
127 +except ImportError:
128 +    from unittest import mock
129  
130  from sphinx.jinja2glue import BuiltinTemplateLoader
131  from sphinx.util.fileutil import copy_asset, copy_asset_file
This page took 0.09387 seconds and 3 git commands to generate.