diff --git a/.gitignore b/.gitignore index f767b7c..f47b7e6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /astroid-version-1.0.0.tar.bz2 +/astroid-version-1.0.1.tar.bz2 diff --git a/0001-fix-error-in-namedtuple-inference-we-should-add-an-a.patch b/0001-fix-error-in-namedtuple-inference-we-should-add-an-a.patch deleted file mode 100644 index b3f34b0..0000000 --- a/0001-fix-error-in-namedtuple-inference-we-should-add-an-a.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 1c1248d1c18b0121d8b7d641edbb2ff7e799db17 Mon Sep 17 00:00:00 2001 -From: "Brian C. Lane" -Date: Tue, 3 Sep 2013 09:14:19 -0700 -Subject: [PATCH] fix error in namedtuple inference, we should add an astng - class node *instance* in .bases - -From upstream commit: -https://bitbucket.org/logilab/astroid/commits/5ed6266cab789bc89d882444c938f03953491496 ---- - brain/py2stdlib.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/brain/py2stdlib.py b/brain/py2stdlib.py -index 739a4ad..f43bd35 100644 ---- a/brain/py2stdlib.py -+++ b/brain/py2stdlib.py -@@ -201,7 +201,7 @@ def infer_named_tuple(node, context=None): - # we want to return a Class node instance with proper attributes set - class_node = nodes.Class(name, 'docstring') - # set base class=tuple -- class_node.bases.append(nodes.Tuple) -+ class_node.bases.append(nodes.Tuple._proxied) - # XXX add __init__(*attributes) method - for attr in attributes: - fake_node = nodes.EmptyNode() --- -1.8.3.1 - diff --git a/python-astroid.spec b/python-astroid.spec index 16f42ea..246e70d 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -5,30 +5,28 @@ %endif # This needs to be pulled from the source tarball -%global commit 1d6914a1a1a0 +%global commit f67f24131b3a Name: python-astroid -Version: 1.0.0 -Release: 6%{?dist} +Version: 1.0.1 +Release: 1%{?dist} Summary: Python Abstract Syntax Tree New Generation Group: Development/Languages License: GPLv2+ URL: http://www.astroid.org Source0: https://bitbucket.org/logilab/astroid/get/astroid-version-%{version}.tar.bz2 -Patch0: 0001-fix-error-in-namedtuple-inference-we-should-add-an-a.patch - Provides: python-astroid = %{version}-%{release} Obsoletes: python-logilab-astng <= 0.24.1 BuildArch: noarch BuildRequires: python-devel python-setuptools python-tools -BuildRequires: python-logilab-common >= 0.60.0 -Requires: python-logilab-common >= 0.60.0 +BuildRequires: python-logilab-common >= 0.61.0 +Requires: python-logilab-common >= 0.61.0 %if 0%{?with_python3} BuildRequires: python3-devel python3-setuptools python3-tools -BuildRequires: python3-logilab-common >= 0.60.0 +BuildRequires: python3-logilab-common >= 0.61.0 %endif # if with_python3 %description @@ -41,7 +39,7 @@ python module with some additional methods and attributes. %package -n python3-astroid Summary: Python Abstract Syntax Tree New Generation Group: Development/Languages -Requires: python3-logilab-common >= 0.60.0 +Requires: python3-logilab-common >= 0.61.0 %description -n python3-astroid The aim of this module is to provide a common base representation of @@ -52,7 +50,6 @@ python module with some additional methods and attributes. %prep %setup -q -n logilab-astroid-%{commit} -%patch0 -p1 %if 0%{?with_python3} rm -rf %{py3dir} @@ -115,6 +112,10 @@ popd %endif # with_python3 %changelog +* Thu Feb 27 2014 Brian C. Lane 1.0.1-1 +- Upstream v1.0.1 + Drop patch included in upstream + * Thu Oct 24 2013 Brian C. Lane 1.0.0-6 - Switching on python3 support diff --git a/sources b/sources index b19dbc8..729f108 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e7aeaf5b02af4526e577ba5787243445 astroid-version-1.0.0.tar.bz2 +556daeab0e496795ae791992cc373ca0 astroid-version-1.0.1.tar.bz2