]> git.pld-linux.org Git - packages/ipython3.git/blame - ipython3.spec
rebuild with python 3.10
[packages/ipython3.git] / ipython3.spec
CommitLineData
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 6Summary: An enhanced Interactive Python shell
ff6802f6 7Summary(pl.UTF-8): Interaktywna powłoka języka Python
b177bc0b 8Name: ipython3
973a4586 9Version: 7.25.0
89683df6 10Release: 3
91856dc0 11License: BSD
bc92a4bc 12Group: Applications/Shells
d0972d0f 13Source0: http://archive.ipython.org/release/%{version}/ipython-%{version}.tar.gz
973a4586 14# Source0-md5: c83047b581398490b5d83129da73aa89
d0972d0f
JB
15Patch0: ipython-use-setuptools.patch
16URL: http://ipython.org/
973a4586
JP
17BuildRequires: pydoc3 >= 1:3.7
18BuildRequires: python3-devel >= 1:3.7
19BuildRequires: python3-devel-tools >= 1:3.7
0ebb1b5e 20BuildRequires: python3-setuptools >= 1:18.5
4bd9f8e5 21BuildRequires: rpm-pythonprov
a3a1c95d 22BuildRequires: rpmbuild(macros) >= 1.747
d0972d0f 23%if %{with tests}
0463bdc3 24BuildRequires: python3-backcall
d0972d0f
JB
25BuildRequires: python3-decorator
26BuildRequires: python3-ipykernel
fd4b74c1
JB
27BuildRequires: python3-jedi >= 0.16
28BuildRequires: python3-matplotlib_inline
d0972d0f
JB
29BuildRequires: python3-nbformat
30BuildRequires: python3-nose >= 0.10.1
fd4b74c1 31BuildRequires: python3-numpy >= 1.17
459eb3b6 32BuildRequires: python3-pexpect > 4.3
d0972d0f 33BuildRequires: python3-pickleshare
0463bdc3
JB
34BuildRequires: python3-prompt_toolkit >= 3.0.2
35BuildRequires: python3-prompt_toolkit < 3.1.0
d0972d0f
JB
36BuildRequires: python3-pygments
37BuildRequires: python3-requests
d0972d0f
JB
38BuildRequires: python3-testpath
39BuildRequires: python3-traitlets >= 4.2
40%endif
41%if %{with doc}
0463bdc3 42BuildRequires: python3-docrepr
d0972d0f
JB
43BuildRequires: python3-docutils
44BuildRequires: python3-ipykernel
0463bdc3 45BuildRequires: python3-matplotlib
d0972d0f
JB
46BuildRequires: python3-sphinx_rtd_theme
47BuildRequires: sphinx-pdg-3 >= 1.3
48%endif
49Requires: python3-ipython = %{version}-%{release}
50Suggests: python3-PyQt5
c5cd9c46 51Suggests: python3-zmq
e33c22cf 52BuildArch: noarch
53BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55%description
56IPython is a free software project which tries to:
57
ef8a19a7 581. Provide an interactive interpreter superior to Python's default.
59IPython has many features for object introspection, shell access, and
60its own special command system for adding functionality when working
61interactively.
e33c22cf 62
ef8a19a7 632. Serve as an embeddable, ready to use interpreter for your own
64programs. IPython can be started with a single call from inside
65another program, providing access to the current namespace. This can
66be very useful both for debugging purposes and for situations where a
67blend of batch-processing and interactive exploration are needed.
e33c22cf 68
ef8a19a7 693. Offer a flexible framework which can be used as the base
70environment for other systems with Python as the underlying language.
71Specifically scientific environments like Mathematica, IDL and Mathcad
72inspired its design, but similar ideas can be useful in many fields.
e33c22cf 73
9299d2f0 74This package contains IPython shell.
75
8251843b
JR
76%description -l pl.UTF-8
77IPython jest wolnym oprogramowaniem, którego celem jest:
78
791. Dostarczenie interaktywnej powłoki lepszej od standardowej
80dostarczanej z językiem Python. IPython umożliwia badanie obiektów,
81dostęp do powłoki oraz własny system poleceń, który umożliwia
82rozszerzanie funkcjonalności podczas pracy interaktywnej.
83
842. Dostarczenie gotowego interpretera, który można dołączać do własnej
85aplikacji. IPython może zostać uruchomiony za pomocą wywołania jednej
86funkcji z poziomu innego programu umożliwiając jednocześnie dostęp do
87aktualnej przestrzeni nazw tego programu. Może to być bardzo użyteczne
88do celów takich jak śledzenie programu czy też sytuacji gdzie jest
89wymagane połączenie przetwarzania wsadowego z interaktywną
90introspekcją.
91
923. Dostarczenie szkieletu, który może zostać użyty jako podstawa
93systemu, którego polecenia opierają się na zasadach języka Python.
94Projekt został zainspirowany przez oprogramowanie naukowe takie jak
95Mathematica, IDL oraz Mathcad, gdzie podobne idee mogą być realizowane
9299d2f0 96w wielu przypadkach.
97
8251843b 98Pakiet ten zawiera powłokę IPython.
9299d2f0 99
5648a7a4 100%package -n python3-ipython
9299d2f0 101Summary: An enhanced Interactive Python shell modules
ff6802f6 102Summary(pl.UTF-8): Moduły interaktywnej powłoki języka Python
9299d2f0 103Group: Libraries/Python
973a4586
JP
104Requires: pydoc3 >= 1:3.7
105Requires: python3-devel-tools >= 1:3.7
9299d2f0 106
5648a7a4 107%description -n python3-ipython
9299d2f0 108IPython is a free software project which tries to:
109
ef8a19a7 1101. Provide an interactive interpreter superior to Python's default.
111IPython has many features for object introspection, shell access, and
112its own special command system for adding functionality when working
113interactively.
9299d2f0 114
ef8a19a7 1152. Serve as an embeddable, ready to use interpreter for your own
116programs. IPython can be started with a single call from inside
117another program, providing access to the current namespace. This can
118be very useful both for debugging purposes and for situations where a
119blend of batch-processing and interactive exploration are needed.
9299d2f0 120
ef8a19a7 1213. Offer a flexible framework which can be used as the base
122environment for other systems with Python as the underlying language.
123Specifically scientific environments like Mathematica, IDL and Mathcad
124inspired its design, but similar ideas can be useful in many fields.
9299d2f0 125
126This package contains IPython modules.
127
5648a7a4 128%description -n python3-ipython -l pl.UTF-8
8251843b
JR
129IPython jest wolnym oprogramowaniem, którego celem jest:
130
1311. Dostarczenie interaktywnej powłoki lepszej od standardowej
132dostarczanej z językiem Python. IPython umożliwia badanie obiektów,
133dostęp do powłoki oraz własny system poleceń, który umożliwia
134rozszerzanie funkcjonalności podczas pracy interaktywnej.
135
1362. Dostarczenie gotowego interpretera, który można dołączać do własnej
137aplikacji. IPython może zostać uruchomiony za pomocą wywołania jednej
138funkcji z poziomu innego programu umożliwiając jednocześnie dostęp do
139aktualnej przestrzeni nazw tego programu. Może to być bardzo użyteczne
140do celów takich jak śledzenie programu czy też sytuacji gdzie jest
141wymagane połączenie przetwarzania wsadowego z interaktywną
142introspekcją.
143
1443. Dostarczenie szkieletu, który może zostać użyty jako podstawa
145systemu, którego polecenia opierają się na zasadach języka Python.
146Projekt został zainspirowany przez oprogramowanie naukowe takie jak
147Mathematica, IDL oraz Mathcad, gdzie podobne idee mogą być realizowane
ef8a19a7 148w wielu przypadkach.
149
8251843b 150Pakiet ten zawiera moduły interaktywnej powłoki języka Python.
ef8a19a7 151
fd4b74c1
JB
152%package -n python3-ipython-apidocs
153Summary: API documentation for Python IPython module
154Summary(pl.UTF-8): Dokumentacja API modułu Pythona IPython
155Group: Documentation
156
157%description -n python3-ipython-apidocs
158API documentation for Python IPython module.
159
160%description -n python3-ipython-apidocs -l pl.UTF-8
161Dokumentacja 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 176PYTHONPATH=$(pwd) \
d0972d0f
JB
177%{__python3} IPython/testing/iptest.py IPython
178%endif
179
180%if %{with doc}
181PYTHONPATH=$(pwd) \
182%{__make} -C docs html \
a3a1c95d 183 PYTHON=%{__python3} \
d0972d0f
JB
184 SPHINXBUILD=sphinx-build-3
185%endif
e33c22cf 186
187%install
188rm -rf $RPM_BUILD_ROOT
d0972d0f 189install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
e33c22cf 190
7b6aa749 191%py3_install
e33c22cf 192
d0972d0f
JB
193cp -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
200rm -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
This page took 0.106014 seconds and 4 git commands to generate.