Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37708289
en ru br
Репозитории ALT
5.1: 0.19.1-alt1
4.1: 0.16.3-alt1.1
4.0: 0.16.3-alt1
www.altlinux.org/Changes

Группа :: Разработка/Python
Пакет: python-module-logilab-astng

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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
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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin