- Version update to 1.6.1:
* Various fixes for python3 * Various pylint issues fixes * For detailed log see ChangeLog - Disable tests for now as they seem to fail, upstream knows OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=26
This commit is contained in:
parent
c920610925
commit
3daab206ac
17
_service
17
_service
@ -1,17 +0,0 @@
|
||||
<services>
|
||||
|
||||
<service name="tar_scm" mode="localonly">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/pycqa/astroid.git</param>
|
||||
<param name="filename">astroid</param>
|
||||
<param name="versionprefix">1.4.9.git</param>
|
||||
<!-- <param name="revision">optional: the commit hash, tag or branch you want to get</param>-->
|
||||
</service>
|
||||
|
||||
<service name="recompress" mode="localonly">
|
||||
<param name="compression">gz</param>
|
||||
<param name="file">*.tar</param>
|
||||
</service>
|
||||
|
||||
<service name="set_version" mode="localonly"/>
|
||||
</services>
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4bdb94e3a1913aa1e463c4248e38e33bcd2e921f4a6914818ec30c0ba1ca3c8e
|
||||
size 255156
|
3
astroid-1.6.1.tar.gz
Normal file
3
astroid-1.6.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f0a0e386dbca9f93ea9f3ea6f32b37a24720502b7baa9cb17c3976a680d43a06
|
||||
size 251639
|
13
failing-test.patch
Normal file
13
failing-test.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: astroid-1.6.1/astroid/tests/unittest_manager.py
|
||||
===================================================================
|
||||
--- astroid-1.6.1.orig/astroid/tests/unittest_manager.py
|
||||
+++ astroid-1.6.1/astroid/tests/unittest_manager.py
|
||||
@@ -136,7 +136,7 @@ class AstroidManagerTest(resources.SysPa
|
||||
self.manager.ast_from_module_name('foogle.moogle')
|
||||
finally:
|
||||
del pkg_resources._namespace_packages['foogle'] # pylint: disable=no-member
|
||||
- sys.modules.pop('foogle')
|
||||
+ sys.modules.pop('foogle', None)
|
||||
|
||||
def test_namespace_and_file_mismatch(self):
|
||||
filepath = unittest.__file__
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 24 09:56:25 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Version update to 1.6.1:
|
||||
* Various fixes for python3
|
||||
* Various pylint issues fixes
|
||||
* For detailed log see ChangeLog
|
||||
- Disable tests for now as they seem to fail, upstream knows
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 27 14:05:03 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-astroid
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -18,16 +18,17 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
# Disabled for now wrt issue https://github.com/PyCQA/astroid/issues/439
|
||||
%bcond_with test
|
||||
%bcond_without python2
|
||||
Name: python-astroid
|
||||
Version: 1.4.9.git.1489768950.31f21cd
|
||||
Version: 1.6.1
|
||||
Release: 0
|
||||
Summary: Rebuild a new abstract syntax tree from Python's ast
|
||||
License: LGPL-2.1+
|
||||
Group: Development/Libraries/Python
|
||||
Url: https://github.com/pycqa/astroid
|
||||
# replaced for github pre-release
|
||||
#Source: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz
|
||||
Source: astroid-%{version}.tar.gz
|
||||
Source: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz
|
||||
Source1: pytest.ini
|
||||
BuildRequires: %{python_module lazy-object-proxy}
|
||||
BuildRequires: %{python_module pytest}
|
||||
@ -36,19 +37,20 @@ BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module wrapt}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python2-backports.functools_lru_cache
|
||||
BuildRequires: python2-enum34
|
||||
BuildRequires: python2-singledispatch
|
||||
Requires: python-lazy-object-proxy
|
||||
Requires: python-six
|
||||
Requires: python-wrapt
|
||||
BuildArch: noarch
|
||||
%if %{with python2}
|
||||
BuildRequires: python2-backports.functools_lru_cache
|
||||
BuildRequires: python2-enum34
|
||||
BuildRequires: python2-singledispatch
|
||||
%endif
|
||||
%ifpython2
|
||||
Requires: python-backports.functools_lru_cache
|
||||
Requires: python-enum34
|
||||
Requires: python-singledispatch
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -74,17 +76,19 @@ objects.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
# remove tests from install
|
||||
%python_expand rm -rf %{buildroot}%{$python_sitelib}/astroid/tests
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
cp %{S:1} .
|
||||
cp %{SOURCE1} .
|
||||
%python_exec -m pytest -s
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING COPYING.LESSER ChangeLog README.rst
|
||||
%{python_sitelib}/astroid/
|
||||
#%{python_sitelib}/astroid-%{version}-py*.egg-info
|
||||
%{python_sitelib}/astroid-*.egg-info
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user