3 %bcond_without doc # Sphinx documentation
4 %bcond_without tests # unit tests
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
9 Summary(pl.UTF-8): Parser Pythona
14 Group: Libraries/Python
15 #Source0Download: https://pypi.org/simple/parso/
16 Source0: https://files.pythonhosted.org/packages/source/p/parso/parso-%{version}.tar.gz
17 # Source0-md5: d3a892fb4d9a0ffed838b0a3416145bf
18 URL: https://pypi.org/project/parso/
20 BuildRequires: python-modules >= 1:2.7
21 BuildRequires: python-setuptools
23 BuildRequires: python-docopt
24 BuildRequires: python-pytest >= 3.0.7
28 BuildRequires: python3-modules >= 1:3.4
29 BuildRequires: python3-setuptools
31 BuildRequires: python3-docopt
32 BuildRequires: python3-pytest >= 3.0.7
35 BuildRequires: rpm-pythonprov
36 BuildRequires: rpmbuild(macros) >= 1.714
38 BuildRequires: sphinx-pdg
40 Requires: python-modules >= 1:2.7
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 Parso is a Python parser that supports error recovery and round-trip
46 parsing for different Python versions (in multiple Python versions).
47 Parso is also able to list multiple syntax errors in your python file.
49 %description -l pl.UTF-8
50 Parso to parser Pythona obsługujący wznawianie po błędach i obustronną
51 analizę dla różnych wersji Pythona (w wielu wersjach Pythona). Parso
52 potrafi także wypisać wiele błędów składni w pliku pythonowym.
54 %package -n python3-parso
55 Summary: Python parser
56 Summary(pl.UTF-8): Parser Pythona
57 Group: Libraries/Python
58 Requires: python3-modules >= 1:3.4
60 %description -n python3-parso
61 Parso is a Python parser that supports error recovery and round-trip
62 parsing for different Python versions (in multiple Python versions).
63 Parso is also able to list multiple syntax errors in your python file.
65 %description -n python3-parso -l pl.UTF-8
66 Parso to parser Pythona obsługujący wznawianie po błędach i obustronną
67 analizę dla różnych wersji Pythona (w wielu wersjach Pythona). Parso
68 potrafi także wypisać wiele błędów składni w pliku pythonowym.
71 Summary: API documentation for Python parso module
72 Summary(pl.UTF-8): Dokumentacja API modułu Pythona parso
76 API documentation for Python parso module.
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API modułu Pythona parso.
82 %setup -q -n parso-%{version}
89 %{__python} -m pytest test
97 %{__python3} -m pytest test
102 %{__make} -C docs html
106 rm -rf $RPM_BUILD_ROOT
119 rm -rf $RPM_BUILD_ROOT
123 %defattr(644,root,root,755)
124 %doc AUTHORS.txt CHANGELOG.rst LICENSE.txt README.rst
125 %{py_sitescriptdir}/parso
126 %{py_sitescriptdir}/parso-%{version}-py*.egg-info
130 %files -n python3-parso
131 %defattr(644,root,root,755)
132 %doc AUTHORS.txt CHANGELOG.rst LICENSE.txt README.rst
133 %{py3_sitescriptdir}/parso
134 %{py3_sitescriptdir}/parso-%{version}-py*.egg-info
139 %defattr(644,root,root,755)
140 %doc docs/_build/html/{_modules,_static,docs,*.html,*.js}