Name: python-asttokens Version: 1.1.6 Release: 1%{?dist} Summary: Module to annotate Python abstract syntax trees with source code positions License: ASL 2.0 URL: https://pypi.python.org/pypi/asttokens Source0: https://pypi.python.org/packages/04/e4/760448c4f1cdbb78f74efde30c4f18ce51814124708b665aeed8379d1d85/asttokens-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python3-devel BuildRequires: python2-nose BuildRequires: python3-nose BuildRequires: python2-astroid BuildRequires: python3-astroid BuildRequires: python2-six BuildRequires: python3-six %global _description \ The asttokens module annotates Python abstract syntax trees (ASTs)\ with the positions of tokens and text in the source code that\ generated them. This makes it possible for tools that work with\ logical AST nodes to find the particular text that resulted in those\ nodes, for example for automated refactoring or highlighting. %description %_description %package -n python2-asttokens Summary: %{summary} Requires: python2-six %{?python_provide:%python_provide python2-asttokens} %description -n python2-asttokens %_description %package -n python3-asttokens Summary: %{summary} Requires: python3-six %{?python_provide:%python_provide python3-asttokens} %description -n python3-asttokens %_description %prep %autosetup -p1 -n asttokens-%{version} %build %py2_build %py3_build %install %py2_install %py3_install %check nosetests-2 tests/ -v nosetests-3 tests/ -v %files -n python2-asttokens %license LICENSE %doc README.rst # For noarch packages: sitelib %{python2_sitelib}/* %files -n python3-asttokens %license LICENSE %doc README.rst %{python3_sitelib}/* %changelog * Mon Nov 6 2017 Zbigniew Jędrzejewski-Szmek - 1.1.6-1 - Initial version