]>
Commit | Line | Data |
---|---|---|
f504124f | 1 | # |
d0972d0f | 2 | # Conditional build: |
a3a1c95d | 3 | %bcond_with doc # Sphinx documentation |
d0972d0f JB |
4 | %bcond_with tests # unit tests (need to wait for fulfilling dependencies in PLD) |
5 | ||
e33c22cf | 6 | Summary: An enhanced Interactive Python shell |
ff6802f6 | 7 | Summary(pl.UTF-8): Interaktywna powłoka języka Python |
b177bc0b | 8 | Name: ipython3 |
973a4586 | 9 | Version: 7.25.0 |
89683df6 | 10 | Release: 3 |
91856dc0 | 11 | License: BSD |
bc92a4bc | 12 | Group: Applications/Shells |
d0972d0f | 13 | Source0: http://archive.ipython.org/release/%{version}/ipython-%{version}.tar.gz |
973a4586 | 14 | # Source0-md5: c83047b581398490b5d83129da73aa89 |
d0972d0f JB |
15 | Patch0: ipython-use-setuptools.patch |
16 | URL: http://ipython.org/ | |
973a4586 JP |
17 | BuildRequires: pydoc3 >= 1:3.7 |
18 | BuildRequires: python3-devel >= 1:3.7 | |
19 | BuildRequires: python3-devel-tools >= 1:3.7 | |
0ebb1b5e | 20 | BuildRequires: python3-setuptools >= 1:18.5 |
4bd9f8e5 | 21 | BuildRequires: rpm-pythonprov |
a3a1c95d | 22 | BuildRequires: rpmbuild(macros) >= 1.747 |
d0972d0f | 23 | %if %{with tests} |
0463bdc3 | 24 | BuildRequires: python3-backcall |
d0972d0f JB |
25 | BuildRequires: python3-decorator |
26 | BuildRequires: python3-ipykernel | |
fd4b74c1 JB |
27 | BuildRequires: python3-jedi >= 0.16 |
28 | BuildRequires: python3-matplotlib_inline | |
d0972d0f JB |
29 | BuildRequires: python3-nbformat |
30 | BuildRequires: python3-nose >= 0.10.1 | |
fd4b74c1 | 31 | BuildRequires: python3-numpy >= 1.17 |
459eb3b6 | 32 | BuildRequires: python3-pexpect > 4.3 |
d0972d0f | 33 | BuildRequires: python3-pickleshare |
0463bdc3 JB |
34 | BuildRequires: python3-prompt_toolkit >= 3.0.2 |
35 | BuildRequires: python3-prompt_toolkit < 3.1.0 | |
d0972d0f JB |
36 | BuildRequires: python3-pygments |
37 | BuildRequires: python3-requests | |
d0972d0f JB |
38 | BuildRequires: python3-testpath |
39 | BuildRequires: python3-traitlets >= 4.2 | |
40 | %endif | |
41 | %if %{with doc} | |
0463bdc3 | 42 | BuildRequires: python3-docrepr |
d0972d0f JB |
43 | BuildRequires: python3-docutils |
44 | BuildRequires: python3-ipykernel | |
0463bdc3 | 45 | BuildRequires: python3-matplotlib |
d0972d0f JB |
46 | BuildRequires: python3-sphinx_rtd_theme |
47 | BuildRequires: sphinx-pdg-3 >= 1.3 | |
48 | %endif | |
49 | Requires: python3-ipython = %{version}-%{release} | |
50 | Suggests: python3-PyQt5 | |
c5cd9c46 | 51 | Suggests: python3-zmq |
e33c22cf | 52 | BuildArch: noarch |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %description | |
56 | IPython is a free software project which tries to: | |
57 | ||
ef8a19a7 | 58 | 1. Provide an interactive interpreter superior to Python's default. |
59 | IPython has many features for object introspection, shell access, and | |
60 | its own special command system for adding functionality when working | |
61 | interactively. | |
e33c22cf | 62 | |
ef8a19a7 | 63 | 2. Serve as an embeddable, ready to use interpreter for your own |
64 | programs. IPython can be started with a single call from inside | |
65 | another program, providing access to the current namespace. This can | |
66 | be very useful both for debugging purposes and for situations where a | |
67 | blend of batch-processing and interactive exploration are needed. | |
e33c22cf | 68 | |
ef8a19a7 | 69 | 3. Offer a flexible framework which can be used as the base |
70 | environment for other systems with Python as the underlying language. | |
71 | Specifically scientific environments like Mathematica, IDL and Mathcad | |
72 | inspired its design, but similar ideas can be useful in many fields. | |
e33c22cf | 73 | |
9299d2f0 | 74 | This package contains IPython shell. |
75 | ||
8251843b JR |
76 | %description -l pl.UTF-8 |
77 | IPython jest wolnym oprogramowaniem, którego celem jest: | |
78 | ||
79 | 1. Dostarczenie interaktywnej powłoki lepszej od standardowej | |
80 | dostarczanej z językiem Python. IPython umożliwia badanie obiektów, | |
81 | dostęp do powłoki oraz własny system poleceń, który umożliwia | |
82 | rozszerzanie funkcjonalności podczas pracy interaktywnej. | |
83 | ||
84 | 2. Dostarczenie gotowego interpretera, który można dołączać do własnej | |
85 | aplikacji. IPython może zostać uruchomiony za pomocą wywołania jednej | |
86 | funkcji z poziomu innego programu umożliwiając jednocześnie dostęp do | |
87 | aktualnej przestrzeni nazw tego programu. Może to być bardzo użyteczne | |
88 | do celów takich jak śledzenie programu czy też sytuacji gdzie jest | |
89 | wymagane połączenie przetwarzania wsadowego z interaktywną | |
90 | introspekcją. | |
91 | ||
92 | 3. Dostarczenie szkieletu, który może zostać użyty jako podstawa | |
93 | systemu, którego polecenia opierają się na zasadach języka Python. | |
94 | Projekt został zainspirowany przez oprogramowanie naukowe takie jak | |
95 | Mathematica, IDL oraz Mathcad, gdzie podobne idee mogą być realizowane | |
9299d2f0 | 96 | w wielu przypadkach. |
97 | ||
8251843b | 98 | Pakiet ten zawiera powłokę IPython. |
9299d2f0 | 99 | |
5648a7a4 | 100 | %package -n python3-ipython |
9299d2f0 | 101 | Summary: An enhanced Interactive Python shell modules |
ff6802f6 | 102 | Summary(pl.UTF-8): Moduły interaktywnej powłoki języka Python |
9299d2f0 | 103 | Group: Libraries/Python |
973a4586 JP |
104 | Requires: pydoc3 >= 1:3.7 |
105 | Requires: python3-devel-tools >= 1:3.7 | |
9299d2f0 | 106 | |
5648a7a4 | 107 | %description -n python3-ipython |
9299d2f0 | 108 | IPython is a free software project which tries to: |
109 | ||
ef8a19a7 | 110 | 1. Provide an interactive interpreter superior to Python's default. |
111 | IPython has many features for object introspection, shell access, and | |
112 | its own special command system for adding functionality when working | |
113 | interactively. | |
9299d2f0 | 114 | |
ef8a19a7 | 115 | 2. Serve as an embeddable, ready to use interpreter for your own |
116 | programs. IPython can be started with a single call from inside | |
117 | another program, providing access to the current namespace. This can | |
118 | be very useful both for debugging purposes and for situations where a | |
119 | blend of batch-processing and interactive exploration are needed. | |
9299d2f0 | 120 | |
ef8a19a7 | 121 | 3. Offer a flexible framework which can be used as the base |
122 | environment for other systems with Python as the underlying language. | |
123 | Specifically scientific environments like Mathematica, IDL and Mathcad | |
124 | inspired its design, but similar ideas can be useful in many fields. | |
9299d2f0 | 125 | |
126 | This package contains IPython modules. | |
127 | ||
5648a7a4 | 128 | %description -n python3-ipython -l pl.UTF-8 |
8251843b JR |
129 | IPython jest wolnym oprogramowaniem, którego celem jest: |
130 | ||
131 | 1. Dostarczenie interaktywnej powłoki lepszej od standardowej | |
132 | dostarczanej z językiem Python. IPython umożliwia badanie obiektów, | |
133 | dostęp do powłoki oraz własny system poleceń, który umożliwia | |
134 | rozszerzanie funkcjonalności podczas pracy interaktywnej. | |
135 | ||
136 | 2. Dostarczenie gotowego interpretera, który można dołączać do własnej | |
137 | aplikacji. IPython może zostać uruchomiony za pomocą wywołania jednej | |
138 | funkcji z poziomu innego programu umożliwiając jednocześnie dostęp do | |
139 | aktualnej przestrzeni nazw tego programu. Może to być bardzo użyteczne | |
140 | do celów takich jak śledzenie programu czy też sytuacji gdzie jest | |
141 | wymagane połączenie przetwarzania wsadowego z interaktywną | |
142 | introspekcją. | |
143 | ||
144 | 3. Dostarczenie szkieletu, który może zostać użyty jako podstawa | |
145 | systemu, którego polecenia opierają się na zasadach języka Python. | |
146 | Projekt został zainspirowany przez oprogramowanie naukowe takie jak | |
147 | Mathematica, IDL oraz Mathcad, gdzie podobne idee mogą być realizowane | |
ef8a19a7 | 148 | w wielu przypadkach. |
149 | ||
8251843b | 150 | Pakiet ten zawiera moduły interaktywnej powłoki języka Python. |
ef8a19a7 | 151 | |
fd4b74c1 JB |
152 | %package -n python3-ipython-apidocs |
153 | Summary: API documentation for Python IPython module | |
154 | Summary(pl.UTF-8): Dokumentacja API modułu Pythona IPython | |
155 | Group: Documentation | |
156 | ||
157 | %description -n python3-ipython-apidocs | |
158 | API documentation for Python IPython module. | |
159 | ||
160 | %description -n python3-ipython-apidocs -l pl.UTF-8 | |
161 | Dokumentacja API modułu Pythona IPython. | |
162 | ||
e33c22cf | 163 | %prep |
d0972d0f JB |
164 | %setup -q -n ipython-%{version} |
165 | %patch0 -p1 | |
166 | ||
a3a1c95d JB |
167 | %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' \ |
168 | examples/Embedding/embed_class_long.py \ | |
169 | "examples/IPython Kernel/ipython-get-history.py" \ | |
170 | "examples/IPython Kernel/gui"/gui-*.py | |
171 | ||
d0972d0f JB |
172 | %build |
173 | %py3_build | |
174 | ||
175 | %if %{with tests} | |
a3a1c95d | 176 | PYTHONPATH=$(pwd) \ |
d0972d0f JB |
177 | %{__python3} IPython/testing/iptest.py IPython |
178 | %endif | |
179 | ||
180 | %if %{with doc} | |
181 | PYTHONPATH=$(pwd) \ | |
182 | %{__make} -C docs html \ | |
a3a1c95d | 183 | PYTHON=%{__python3} \ |
d0972d0f JB |
184 | SPHINXBUILD=sphinx-build-3 |
185 | %endif | |
e33c22cf | 186 | |
187 | %install | |
188 | rm -rf $RPM_BUILD_ROOT | |
d0972d0f | 189 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
e33c22cf | 190 | |
7b6aa749 | 191 | %py3_install |
e33c22cf | 192 | |
d0972d0f JB |
193 | cp -pr examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
194 | ||
195 | # test suite | |
196 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/iptest* | |
70e89205 | 197 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/IPython/{core/tests,extensions/tests,lib/tests,terminal/tests,testing/tests,utils/tests} |
4bd9f8e5 | 198 | |
e33c22cf | 199 | %clean |
200 | rm -rf $RPM_BUILD_ROOT | |
201 | ||
202 | %files | |
203 | %defattr(644,root,root,755) | |
d0972d0f JB |
204 | %attr(755,root,root) %{_bindir}/ipython |
205 | %attr(755,root,root) %{_bindir}/ipython3 | |
206 | %{_mandir}/man1/ipython.1* | |
9299d2f0 | 207 | |
5648a7a4 | 208 | %files -n python3-ipython |
9299d2f0 | 209 | %defattr(644,root,root,755) |
0463bdc3 | 210 | %doc COPYING.rst LICENSE README.rst |
d0972d0f JB |
211 | %{py3_sitescriptdir}/IPython |
212 | %{py3_sitescriptdir}/ipython-%{version}-py*.egg-info | |
213 | %{_examplesdir}/%{name}-%{version} | |
fd4b74c1 JB |
214 | |
215 | %if %{with doc} | |
216 | %files -n python3-ipython-apidocs | |
217 | %defattr(644,root,root,755) | |
218 | %doc docs/build/html/{_images,_static,about,api,config,coredev,development,install,interactive,parallel,whatsnew,*.html,*.js} | |
219 | %endif |