Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37840818
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.16.3
%define release alt1

%setup_python_module %name

Summary: extend python's abstract syntax tree
Name: %packagename
Version: %version
Release: %release.1
Source0: %modulename-%version.tar.gz
License: GPL
Group: Development/Python
Prefix: %{_prefix}
BuildArch: noarch
Vendor: Sylvain Thenault <sylvain.thenault at logilab.fr>
Packager: Andrey Khavryuchenko <akhavr at altlinux.org>
Url: http://www.logilab.org/project/name/logilab-astng

%add_python_req_skip logilab

%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.

This module is build for python %__python_version

%package -n python-module-%modulename-test
Summary: extend python's abstract syntax tree
Group: Development/Python
Prefix: %{_prefix}
Requires: python-module-%modulename = %version

%description -n python-module-%modulename-test
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.

This module is build for python %__python_version.

Install python-module-%modulename-test if you need unit tests for this module

%prep
%setup -q -n %modulename-%version

%build
env CFLAGS="$RPM_OPT_FLAGS" %__python setup.py build

%install
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES

grep test INSTALLED_FILES > INSTALLED_TESTS
grep -v test INSTALLED_FILES > INSTALLED_FILES2

%files -f INSTALLED_FILES2
%doc ChangeLog README

%files -n python-module-%modulename-test -f INSTALLED_TESTS

%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