Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37841589
en ru br
ALT Linux repos
5.0: 0.17.4-alt1
4.1: 0.16.3-alt1.1
4.0: 0.16.3-alt1

Group :: Development/Python
RPM: python-module-logilab-astng

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define name logilab-astng
%define version 0.17.4
%define release alt1

%setup_python_module %name

%python_module_declare %python_sitelibdir/logilab

Name: %packagename
Version: %version
Release: %release

Summary: Python Abstract Syntax Tree New Generation
License: GPLv2+
Group: Development/Python

BuildArch: noarch

Url: http://www.logilab.org/project/name/logilab-astng
Source: %modulename-%version.tar.gz

Packager: Andrey Rahmatullin <wrar at altlinux.ru>

%description
The aim of this module is to provide a common base representation of
python source code for projects such as pychecker, pyreverse,
pylint... Well, actually the development of this library is essentialy
governed by pylint's needs.

It extends class defined in the compiler.ast [1] module with some
additional methods and attributes. Instance attributes are added by a
builder object, which can either generate extended ast (let's call
them astng ;) by visiting an existant ast tree or by inspecting living
object. Methods are added by monkey patching ast classes.


%prep
%setup -n %modulename-%version

%build
env CFLAGS="%optflags" %__python setup.py build

%install
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES
grep -v test/ INSTALLED_FILES > INSTALLED_FILES2
rm -rf %buildroot%python_sitelibdir/logilab/astng/test

%files -f INSTALLED_FILES2
%doc ChangeLog README


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin