[packages/python-astroid] Version: 1.5.3

jajcus jajcus at pld-linux.org
Fri Nov 24 11:03:17 CET 2017


commit 00f523896e6598a408a857848bcf885d7140ed78
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Fri Nov 24 11:02:51 2017 +0100

    Version: 1.5.3

 modules_without_sources.patch | 36 ------------------------------------
 python-astroid.spec           | 16 +++++++++-------
 2 files changed, 9 insertions(+), 43 deletions(-)
---
diff --git a/python-astroid.spec b/python-astroid.spec
index 703b1e3..1ef23e0 100644
--- a/python-astroid.spec
+++ b/python-astroid.spec
@@ -7,13 +7,13 @@
 Summary:	An abstract syntax tree for Python 2 with inference support
 Summary(pl.UTF-8):	Abstrakcyjnego drzewa składniowe dla Pythona 2 z obsługą wywodu
 Name:		python-%{module}
-Version:	1.4.1
-Release:	2
+Version:	1.5.3
+Release:	1
 License:	LGPL v2.1+
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.python.org/pypi/astroid/
-Source0:	https://pypi.python.org/packages/source/a/astroid/astroid-%{version}.tar.gz
-# Source0-md5:	a75975473d7d1d381dbd6f8370251f1a
+Source0:	https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz
+# Source0-md5:	6f65e4ea8290ec032320460905afb828
 Patch0:		modules_without_sources.patch
 URL:		http://www.astroid.org/
 %if %{with python2}
@@ -35,6 +35,9 @@ Obsoletes:	python-logilab-astng
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# current Python 3.x provides all these
+%define		_noautoreq	python3egg.backports.functools-lru-cache python3egg.enum34 python3egg.singledispatch
+
 %description
 The aim of this module is to provide a common base representation of
 Python source code for projects such as pychecker, pyreverse,
@@ -73,7 +76,6 @@ potrzebami pylinta. Dawniej nazywała się logilab-astng.
 %prep
 %setup -q -n %{module}-%{version}
 
-%patch0 -p1
 # drop python 2.5 egg deps
 %{__rm} */*/*/*/*/*py2.5.egg
 
@@ -104,7 +106,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README
+%doc ChangeLog README.rst
 %{py_sitescriptdir}/astroid
 %{py_sitescriptdir}/astroid-%{version}-py*.egg-info
 %endif
@@ -112,7 +114,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc ChangeLog README
+%doc ChangeLog README.rst
 %{py3_sitescriptdir}/astroid
 %{py3_sitescriptdir}/astroid-%{version}-py*.egg-info
 %endif
diff --git a/modules_without_sources.patch b/modules_without_sources.patch
deleted file mode 100644
index 1baa39d..0000000
--- a/modules_without_sources.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff -dur -x '*.orig' astroid-1.4.1.orig/astroid/manager.py astroid-1.4.1/astroid/manager.py
---- astroid-1.4.1.orig/astroid/manager.py	2015-11-29 21:37:16.000000000 +0100
-+++ astroid-1.4.1/astroid/manager.py	2015-12-07 10:27:07.000000000 +0100
-@@ -118,7 +118,7 @@
-                 module = self.zip_import_data(filepath)
-                 if module is not None:
-                     return module
--            elif mp_type in (imp.C_BUILTIN, imp.C_EXTENSION):
-+            elif mp_type in (imp.C_BUILTIN, imp.C_EXTENSION, imp.PY_COMPILED):
-                 if mp_type == imp.C_EXTENSION and not self._can_load_extension(modname):
-                     return self._build_stub_module(modname)
-                 try:
-@@ -127,9 +127,6 @@
-                     msg = 'Unable to load module %s (%s)' % (modname, ex)
-                     raise exceptions.AstroidBuildingException(msg)
-                 return self.ast_from_module(module, modname)
--            elif mp_type == imp.PY_COMPILED:
--                msg = "Unable to load compiled module %s" % (modname,)
--                raise exceptions.AstroidBuildingException(msg)
-             if filepath is None:
-                 msg = "Unable to load module %s" % (modname,)
-                 raise exceptions.AstroidBuildingException(msg)
-diff -dur -x '*.orig' astroid-1.4.1.orig/astroid/modutils.py astroid-1.4.1/astroid/modutils.py
---- astroid-1.4.1.orig/astroid/modutils.py	2015-11-29 21:37:16.000000000 +0100
-+++ astroid-1.4.1/astroid/modutils.py	2015-12-07 10:26:47.000000000 +0100
-@@ -563,6 +563,10 @@
-         return None, imp.C_BUILTIN
-     elif mtype == imp.PKG_DIRECTORY:
-         mp_filename = _has_init(mp_filename)
-+        try:
-+            return get_source_file(mp_filename), imp.PY_SOURCE
-+        except NoSourceFile:
-+            return mp_filename, imp.PY_COMPILED
-         mtype = imp.PY_SOURCE
-     return mp_filename, mtype
- 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-astroid.git/commitdiff/00f523896e6598a408a857848bcf885d7140ed78



More information about the pld-cvs-commit mailing list