3 %bcond_without doc # Sphinx documentation
4 %bcond_with tests # unit tests (failing at start as of 0.17.0)
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
8 Summary: An autocompletion tool for Python that can be used for text editors
9 Summary(pl.UTF-8): Narzędzie do automatycznego dopełaniania dla Pythona, nadające się do użycia w edytorach
11 # keep 0.17.x here for python2 support
14 License: MIT (Jedi), Apache v2.0 (typeshed)
15 Group: Libraries/Python
16 #Source0Download: https://pypi.org/simple/jedi/
17 Source0: https://files.pythonhosted.org/packages/source/j/jedi/jedi-%{version}.tar.gz
18 # Source0-md5: f012668907d76cebe9c4766f3b806fcf
19 URL: https://pypi.org/project/jedi/
21 BuildRequires: python-modules >= 1:2.7
22 BuildRequires: python-setuptools
24 BuildRequires: python-colorama
25 BuildRequires: python-docopt
26 BuildRequires: python-parso >= 0.7.0
27 BuildRequires: python-parso < 0.8.0
28 BuildRequires: python-pytest >= 3.9.0
29 BuildRequires: python-pytest < 5
33 BuildRequires: python3-modules >= 1:3.5
34 BuildRequires: python3-setuptools
36 BuildRequires: python3-colorama
37 BuildRequires: python3-docopt
38 BuildRequires: python3-parso >= 0.7.0
39 BuildRequires: python3-parso < 0.8.0
40 BuildRequires: python3-pytest >= 3.9.0
41 BuildRequires: python3-pytest < 5
44 BuildRequires: rpm-pythonprov
45 BuildRequires: rpmbuild(macros) >= 1.714
47 BuildRequires: python-parso >= 0.7.0
48 BuildRequires: sphinx-pdg-2
50 Requires: python-modules >= 1:2.7
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 Jedi is a static analysis tool for Python that is typically used in
56 IDEs/editors plugins. Jedi has a focus on autocompletion and goto
57 functionality. Other features include refactoring, code search and
60 %description -l pl.UTF-8
61 Jedi to narzędzie do statycznej analizy kodu dla Pythona, zwykle
62 używane w IDE i wtyczkach do edytorów. Jedi skupia się na funkcjach
63 automatycznego dopełniania oraz przemieszczania po kodzie. Pozostałe
64 funkcje obejmują refaktorowanie, przeszukiwanie kodu i wyszukiwanie
67 %package -n python3-jedi
68 Summary: An autocompletion tool for Python that can be used for text editors
69 Summary(pl.UTF-8): Narzędzie do automatycznego dopełaniania dla Pythona, nadające się do użycia w edytorach
70 Group: Libraries/Python
71 Requires: python3-modules >= 1:3.5
73 %description -n python3-jedi
74 Jedi is a static analysis tool for Python that is typically used in
75 IDEs/editors plugins. Jedi has a focus on autocompletion and goto
76 functionality. Other features include refactoring, code search and
79 %description -n python3-jedi -l pl.UTF-8
80 Jedi to narzędzie do statycznej analizy kodu dla Pythona, zwykle
81 używane w IDE i wtyczkach do edytorów. Jedi skupia się na funkcjach
82 automatycznego dopełniania oraz przemieszczania po kodzie. Pozostałe
83 funkcje obejmują refaktorowanie, przeszukiwanie kodu i wyszukiwanie
87 Summary: API documentation for Python jedi module
88 Summary(pl.UTF-8): Dokumentacja API modułu Pythona jedi
92 API documentation for Python jedi module.
94 %description apidocs -l pl.UTF-8
95 Dokumentacja API modułu Pythona jedi.
98 %setup -q -n jedi-%{version}
105 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
106 %{__python} -m pytest
114 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
115 %{__python3} -m pytest
120 %{__make} -C docs html \
121 SPHINXBUILD=sphinx-build-2
125 rm -rf $RPM_BUILD_ROOT
138 rm -rf $RPM_BUILD_ROOT
142 %defattr(644,root,root,755)
143 %doc AUTHORS.txt CHANGELOG.rst LICENSE.txt README.rst
144 %{py_sitescriptdir}/jedi
145 %{py_sitescriptdir}/jedi-%{version}-py*.egg-info
149 %files -n python3-jedi
150 %defattr(644,root,root,755)
151 %doc AUTHORS.txt CHANGELOG.rst LICENSE.txt README.rst
152 %{py3_sitescriptdir}/jedi
153 %{py3_sitescriptdir}/jedi-%{version}-py*.egg-info
158 %defattr(644,root,root,755)
159 %doc docs/_build/html/{_images,_modules,_static,docs,*.html,*.js}