Accepting request 481993 from devel:languages:python
- update for singlespec - update to 1.4.9 * classes can now know their definition-time arguments * getitem() now accepts node objects * explicit namespace package support * see more details in ChangeLog - update to 2.0-pre-release git version for python 3.6 support (boo#1026174) - enable test suite for all pythons OBS-URL: https://build.opensuse.org/request/show/481993 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=12
This commit is contained in:
commit
3e66e1ba21
17
_service
Normal file
17
_service
Normal file
@ -0,0 +1,17 @@
|
||||
<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:7f7e5512efe515098e77cbd3a60e87c8db8954097b0e025d8d6f72f2e8ddc298
|
||||
size 181733
|
3
astroid-1.4.9.git.1489768950.31f21cd.tar.gz
Normal file
3
astroid-1.4.9.git.1489768950.31f21cd.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4bdb94e3a1913aa1e463c4248e38e33bcd2e921f4a6914818ec30c0ba1ca3c8e
|
||||
size 255156
|
3
pytest.ini
Normal file
3
pytest.ini
Normal file
@ -0,0 +1,3 @@
|
||||
[pytest]
|
||||
python_files = astroid/tests/unittest_*.py
|
||||
norecursedirs = _build.* build
|
@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 27 14:05:03 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
- update for singlespec
|
||||
- update to 1.4.9
|
||||
* classes can now know their definition-time arguments
|
||||
* getitem() now accepts node objects
|
||||
* explicit namespace package support
|
||||
* see more details in ChangeLog
|
||||
- update to 2.0-pre-release git version for python 3.6 support
|
||||
(boo#1026174)
|
||||
- enable test suite for all pythons
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 10 12:58:40 UTC 2016 - michael@stroeder.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-astroid
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 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
|
||||
@ -16,26 +16,40 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
Name: python-astroid
|
||||
Version: 1.4.4
|
||||
Version: 1.4.9.git.1489768950.31f21cd
|
||||
Release: 0
|
||||
Url: https://github.com/pycqa/astroid
|
||||
Summary: Rebuild a new abstract syntax tree from Python's ast
|
||||
License: LGPL-2.1+
|
||||
Group: Development/Libraries/Python
|
||||
Source: https://pypi.python.org/packages/source/a/astroid/astroid-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-six
|
||||
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
|
||||
Source1: pytest.ini
|
||||
BuildRequires: %{python_module lazy-object-proxy}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
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-lazy_object_proxy
|
||||
Requires: python-wrapt
|
||||
%if 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Requires: python-backports.functools_lru_cache
|
||||
Requires: python-enum34
|
||||
Requires: python-singledispatch
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
The aim of this module is to provide a common base representation of
|
||||
@ -53,18 +67,24 @@ scopes. Furthermore, astroid builds partial trees by inspecting living
|
||||
objects.
|
||||
|
||||
%prep
|
||||
%setup -n astroid-%{version}
|
||||
%setup -q -n astroid-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root="%{buildroot}"
|
||||
%python_install
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
%files
|
||||
%check
|
||||
cp %{S:1} .
|
||||
%python_exec -m pytest -s
|
||||
|
||||
%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-%{version}-py*.egg-info
|
||||
%{python_sitelib}/astroid-*.egg-info
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user