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