[packages/python3-parso] up to 0.8.4

atler atler at pld-linux.org
Sat Apr 19 17:48:49 CEST 2025


commit 01a254713d23cfcf6f6c5bbf20aec7a47093d903
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Apr 19 17:18:45 2025 +0200

    up to 0.8.4

 python-parso.spec => python3-parso.spec | 75 ++++-----------------------------
 1 file changed, 8 insertions(+), 67 deletions(-)
---
diff --git a/python-parso.spec b/python3-parso.spec
similarity index 53%
rename from python-parso.spec
rename to python3-parso.spec
index 4e1a0dc..78d41d3 100644
--- a/python-parso.spec
+++ b/python3-parso.spec
@@ -2,43 +2,30 @@
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
 %bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 Summary:	Python parser
 Summary(pl.UTF-8):	Parser Pythona
-Name:		python-parso
-# keep 0.7.x here for python2 support
-Version:	0.7.1
-Release:	6
+Name:		python3-parso
+Version:	0.8.4
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/parso/
 Source0:	https://files.pythonhosted.org/packages/source/p/parso/parso-%{version}.tar.gz
-# Source0-md5:	eac40cda515ee71e3bb008c404ca3ac1
+# Source0-md5:	f83b2e4164f6589ccae39b16c30ed5de
 URL:		https://pypi.org/project/parso/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-docopt
-BuildRequires:	python-pytest >= 3.0.7
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
+BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-docopt
 BuildRequires:	python3-pytest >= 3.0.7
 %endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
-BuildRequires:	sphinx-pdg-2
+BuildRequires:	sphinx-pdg-3
 %endif
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.6
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -52,22 +39,6 @@ Parso to parser Pythona obsługujący wznawianie po błędach i obustronną
 analizę dla różnych wersji Pythona (w wielu wersjach Pythona). Parso
 potrafi także wypisać wiele błędów składni w pliku pythonowym.
 
-%package -n python3-parso
-Summary:	Python parser
-Summary(pl.UTF-8):	Parser Pythona
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-parso
-Parso is a Python parser that supports error recovery and round-trip
-parsing for different Python versions (in multiple Python versions).
-Parso is also able to list multiple syntax errors in your python file.
-
-%description -n python3-parso -l pl.UTF-8
-Parso to parser Pythona obsługujący wznawianie po błędach i obustronną
-analizę dla różnych wersji Pythona (w wielu wersjach Pythona). Parso
-potrafi także wypisać wiele błędów składni w pliku pythonowym.
-
 %package apidocs
 Summary:	API documentation for Python parso module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona parso
@@ -83,61 +54,31 @@ Dokumentacja API modułu Pythona parso.
 %setup -q -n parso-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest test
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
-# test_python_errors are not ready for python 3.10
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 %{__python3} -m pytest test -k 'not test_python_errors'
 %endif
-%endif
 
 %if %{with doc}
 %{__make} -C docs html \
-	SPHINXBUILD=sphinx-build-2
+	SPHINXBUILD=sphinx-build-3
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS.txt CHANGELOG.rst LICENSE.txt README.rst
-%{py_sitescriptdir}/parso
-%{py_sitescriptdir}/parso-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-parso
-%defattr(644,root,root,755)
-%doc AUTHORS.txt CHANGELOG.rst LICENSE.txt README.rst
 %{py3_sitescriptdir}/parso
 %{py3_sitescriptdir}/parso-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-parso.git/commitdiff/01a254713d23cfcf6f6c5bbf20aec7a47093d903



More information about the pld-cvs-commit mailing list