##// END OF EJS Templates
Merge pull request #13746 from krassowski/docs-requirements...
Matthias Bussonnier -
r27783:270ac0cc merge
parent child Browse files
Show More
@@ -1,64 +1,64 b''
1 IPython Documentation
1 IPython Documentation
2 ---------------------
2 ---------------------
3
3
4 This directory contains the majority of the documentation for IPython.
4 This directory contains the majority of the documentation for IPython.
5
5
6
6
7 Deploy docs
7 Deploy docs
8 -----------
8 -----------
9
9
10 Documentation is automatically deployed on ReadTheDocs on every push or merged
10 Documentation is automatically deployed on ReadTheDocs on every push or merged
11 Pull requests.
11 Pull requests.
12
12
13
13
14 Requirements
14 Requirements
15 ------------
15 ------------
16
16
17 The documentation must be built using Python 3.
17 The documentation must be built using Python 3.
18
18
19 In addition to :ref:`devinstall`,
19 In addition to :ref:`devinstall`,
20 the following tools are needed to build the documentation:
20 the following tools are needed to build the documentation:
21
21
22 - sphinx
22 - sphinx
23 - sphinx_rtd_theme
23 - sphinx_rtd_theme
24 - docrepr
24 - docrepr
25
25
26 In a conda environment, or a Python 3 ``venv``, you should be able to run::
26 In a conda environment, or a Python 3 ``venv``, you should be able to run::
27
27
28 cd ipython
28 cd ipython
29 pip install -U -r docs/requirements.txt
29 pip install .[doc] -U
30
30
31
31
32 Build Commands
32 Build Commands
33 --------------
33 --------------
34
34
35 The documentation gets built using ``make``, and comes in several flavors.
35 The documentation gets built using ``make``, and comes in several flavors.
36
36
37 ``make html`` - build the API and narrative documentation web pages, this is
37 ``make html`` - build the API and narrative documentation web pages, this is
38 the default ``make`` target, so running just ``make`` is equivalent to ``make
38 the default ``make`` target, so running just ``make`` is equivalent to ``make
39 html``.
39 html``.
40
40
41 ``make html_noapi`` - same as above, but without running the auto-generated API
41 ``make html_noapi`` - same as above, but without running the auto-generated API
42 docs. When you are working on the narrative documentation, the most time
42 docs. When you are working on the narrative documentation, the most time
43 consuming portion of the build process is the processing and rendering of the
43 consuming portion of the build process is the processing and rendering of the
44 API documentation. This build target skips that.
44 API documentation. This build target skips that.
45
45
46 ``make pdf`` will compile a pdf from the documentation.
46 ``make pdf`` will compile a pdf from the documentation.
47
47
48 You can run ``make help`` to see information on all possible make targets.
48 You can run ``make help`` to see information on all possible make targets.
49
49
50 To save time,
50 To save time,
51 the make targets above only process the files that have been changed since the
51 the make targets above only process the files that have been changed since the
52 previous docs build.
52 previous docs build.
53 To remove the previous docs build you can use ``make clean``.
53 To remove the previous docs build you can use ``make clean``.
54 You can also combine ``clean`` with other `make` commands;
54 You can also combine ``clean`` with other `make` commands;
55 for example,
55 for example,
56 ``make clean html`` will do a complete rebuild of the docs or ``make clean pdf`` will do a complete build of the pdf.
56 ``make clean html`` will do a complete rebuild of the docs or ``make clean pdf`` will do a complete build of the pdf.
57
57
58
58
59 Continuous Integration
59 Continuous Integration
60 ----------------------
60 ----------------------
61
61
62 Documentation builds are included in the Travis-CI continuous integration process,
62 Documentation builds are included in the Travis-CI continuous integration process,
63 so you can see the results of the docs build for any pull request at
63 so you can see the results of the docs build for any pull request at
64 https://travis-ci.org/ipython/ipython/pull_requests.
64 https://travis-ci.org/ipython/ipython/pull_requests.
@@ -1,9 +1,1 b''
1 -e .[test]
1 -e .[doc]
2 ipykernel
3 setuptools>=18.5
4 sphinx
5 sphinx-rtd-theme
6 docrepr
7 matplotlib
8 stack_data
9 pytest<7
@@ -1,114 +1,122 b''
1 [metadata]
1 [metadata]
2 name = ipython
2 name = ipython
3 version = attr: IPython.core.release.__version__
3 version = attr: IPython.core.release.__version__
4 url = https://ipython.org
4 url = https://ipython.org
5 description = IPython: Productive Interactive Computing
5 description = IPython: Productive Interactive Computing
6 long_description_content_type = text/x-rst
6 long_description_content_type = text/x-rst
7 long_description = file: long_description.rst
7 long_description = file: long_description.rst
8 license_file = LICENSE
8 license_file = LICENSE
9 project_urls =
9 project_urls =
10 Documentation = https://ipython.readthedocs.io/
10 Documentation = https://ipython.readthedocs.io/
11 Funding = https://numfocus.org/
11 Funding = https://numfocus.org/
12 Source = https://github.com/ipython/ipython
12 Source = https://github.com/ipython/ipython
13 Tracker = https://github.com/ipython/ipython/issues
13 Tracker = https://github.com/ipython/ipython/issues
14 keywords = Interactive, Interpreter, Shell, Embedding
14 keywords = Interactive, Interpreter, Shell, Embedding
15 platforms = Linux, Mac OSX, Windows
15 platforms = Linux, Mac OSX, Windows
16 classifiers =
16 classifiers =
17 Framework :: IPython
17 Framework :: IPython
18 Framework :: Jupyter
18 Framework :: Jupyter
19 Intended Audience :: Developers
19 Intended Audience :: Developers
20 Intended Audience :: Science/Research
20 Intended Audience :: Science/Research
21 License :: OSI Approved :: BSD License
21 License :: OSI Approved :: BSD License
22 Programming Language :: Python
22 Programming Language :: Python
23 Programming Language :: Python :: 3
23 Programming Language :: Python :: 3
24 Programming Language :: Python :: 3 :: Only
24 Programming Language :: Python :: 3 :: Only
25 Topic :: System :: Shells
25 Topic :: System :: Shells
26
26
27 [options]
27 [options]
28 packages = find:
28 packages = find:
29 python_requires = >=3.8
29 python_requires = >=3.8
30 zip_safe = False
30 zip_safe = False
31 install_requires =
31 install_requires =
32 appnope; sys_platform == "darwin"
32 appnope; sys_platform == "darwin"
33 backcall
33 backcall
34 colorama; sys_platform == "win32"
34 colorama; sys_platform == "win32"
35 decorator
35 decorator
36 jedi>=0.16
36 jedi>=0.16
37 matplotlib-inline
37 matplotlib-inline
38 pexpect>4.3; sys_platform != "win32"
38 pexpect>4.3; sys_platform != "win32"
39 pickleshare
39 pickleshare
40 prompt_toolkit>3.0.1,<3.1.0
40 prompt_toolkit>3.0.1,<3.1.0
41 pygments>=2.4.0
41 pygments>=2.4.0
42 stack_data
42 stack_data
43 traitlets>=5
43 traitlets>=5
44
44
45 [options.extras_require]
45 [options.extras_require]
46 black =
46 black =
47 black
47 black
48 doc =
48 doc =
49 Sphinx>=1.3
49 ipykernel
50 setuptools>=18.5
51 sphinx>=1.3
52 sphinx-rtd-theme
53 docrepr
54 matplotlib
55 stack_data
56 pytest<7
57 %(test)s
50 kernel =
58 kernel =
51 ipykernel
59 ipykernel
52 nbconvert =
60 nbconvert =
53 nbconvert
61 nbconvert
54 nbformat =
62 nbformat =
55 nbformat
63 nbformat
56 notebook =
64 notebook =
57 ipywidgets
65 ipywidgets
58 notebook
66 notebook
59 parallel =
67 parallel =
60 ipyparallel
68 ipyparallel
61 qtconsole =
69 qtconsole =
62 qtconsole
70 qtconsole
63 terminal =
71 terminal =
64 test =
72 test =
65 pytest<7.1
73 pytest<7.1
66 pytest-asyncio
74 pytest-asyncio
67 testpath
75 testpath
68 test_extra =
76 test_extra =
69 %(test)s
77 %(test)s
70 curio
78 curio
71 matplotlib!=3.2.0
79 matplotlib!=3.2.0
72 nbformat
80 nbformat
73 numpy>=1.19
81 numpy>=1.19
74 pandas
82 pandas
75 trio
83 trio
76 all =
84 all =
77 %(black)s
85 %(black)s
78 %(doc)s
86 %(doc)s
79 %(kernel)s
87 %(kernel)s
80 %(nbconvert)s
88 %(nbconvert)s
81 %(nbformat)s
89 %(nbformat)s
82 %(notebook)s
90 %(notebook)s
83 %(parallel)s
91 %(parallel)s
84 %(qtconsole)s
92 %(qtconsole)s
85 %(terminal)s
93 %(terminal)s
86 %(test_extra)s
94 %(test_extra)s
87 %(test)s
95 %(test)s
88
96
89 [options.packages.find]
97 [options.packages.find]
90 exclude =
98 exclude =
91 setupext
99 setupext
92
100
93 [options.package_data]
101 [options.package_data]
94 IPython.core = profile/README*
102 IPython.core = profile/README*
95 IPython.core.tests = *.png, *.jpg, daft_extension/*.py
103 IPython.core.tests = *.png, *.jpg, daft_extension/*.py
96 IPython.lib.tests = *.wav
104 IPython.lib.tests = *.wav
97 IPython.testing.plugin = *.txt
105 IPython.testing.plugin = *.txt
98
106
99 [options.entry_points]
107 [options.entry_points]
100 console_scripts =
108 console_scripts =
101 ipython = IPython:start_ipython
109 ipython = IPython:start_ipython
102 ipython3 = IPython:start_ipython
110 ipython3 = IPython:start_ipython
103 pygments.lexers =
111 pygments.lexers =
104 ipythonconsole = IPython.lib.lexers:IPythonConsoleLexer
112 ipythonconsole = IPython.lib.lexers:IPythonConsoleLexer
105 ipython = IPython.lib.lexers:IPythonLexer
113 ipython = IPython.lib.lexers:IPythonLexer
106 ipython3 = IPython.lib.lexers:IPython3Lexer
114 ipython3 = IPython.lib.lexers:IPython3Lexer
107
115
108 [velin]
116 [velin]
109 ignore_patterns =
117 ignore_patterns =
110 IPython/core/tests
118 IPython/core/tests
111 IPython/testing
119 IPython/testing
112
120
113 [tool.black]
121 [tool.black]
114 exclude = 'timing\.py'
122 exclude = 'timing\.py'
General Comments 0
You need to be logged in to leave comments. Login now