Summary: Python 2 and 3 ast modules with type comment support
Summary(pl.UTF-8): Moduły ast z Pythona 2 i 3 z obsługą komentarzy o typach
Name: python3-typed_ast
-Version: 1.5.0
+Version: 1.5.2
Release: 1
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/typed-ast/
Source0: https://files.pythonhosted.org/packages/source/t/typed-ast/typed_ast-%{version}.tar.gz
-# Source0-md5: c10e924e90f70312eb0303afb5293670
+# Source0-md5: e51a3df86ddf23f2c2230ca27c1ea8e7
URL: https://pypi.org/project/typed-ast/
-BuildRequires: python3-modules >= 1:3.5
+BuildRequires: python3-modules >= 1:3.6
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-pytest
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python3-modules >= 1:3.5
+Requires: python3-modules >= 1:3.6
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
version of Python under which they are run. The typed_ast parsers
produce the standard Python AST (plus type comments), and are both
fast and correct, as they are based on the CPython 2.7 and 3.7
-parsers. typed_ast runs on CPython 3.5-3.8 on Linux, OS X and Windows.
+parsers. typed_ast runs on CPython 3.6-3.10 on Linux, OS X and
+Windows.
%description -l pl.UTF-8
typed_ast to pakiet Pythona 3 udostępniający parser dla Pythona 2.7
Pythona, przez którą są uruchamiane. Parsery typed_ast tworzą
standardowe pythonowe drzewo składniowe (AST), wzbogacone o komentarze
o typach; są szybkie i poprawne, jako że są oparte na kodzie CPythona
-2.7 oraz 3.7. typed_ast działa na CPythonie 3.5-3.8 pod Linuksem, OS X
-oraz Windows.
+2.7 oraz 3.7. typed_ast działa na CPythonie 3.6-3.10 pod Linuksem, OS
+X oraz Windows.
%prep
%setup -q -n typed_ast-%{version}
export PYTHONPATH=$(echo $(pwd)/build-3/lib.*)
# run from subdir, so python won't catch PWD as PYTHONPATH
cd ast3
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python3} -m pytest tests
%endif