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
|
Wed Feb 10 12:58:40 UTC 2016 - michael@stroeder.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-astroid
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Name: python-astroid
|
||||||
Version: 1.4.4
|
Version: 1.4.9.git.1489768950.31f21cd
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: https://github.com/pycqa/astroid
|
|
||||||
Summary: Rebuild a new abstract syntax tree from Python's ast
|
Summary: Rebuild a new abstract syntax tree from Python's ast
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Source: https://pypi.python.org/packages/source/a/astroid/astroid-%{version}.tar.gz
|
Url: https://github.com/pycqa/astroid
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
# replaced for github pre-release
|
||||||
BuildRequires: python-devel
|
#Source: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz
|
||||||
BuildRequires: python-setuptools
|
Source: astroid-%{version}.tar.gz
|
||||||
BuildRequires: python-six
|
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-six
|
||||||
Requires: python-lazy_object_proxy
|
|
||||||
Requires: python-wrapt
|
Requires: python-wrapt
|
||||||
%if 0%{?suse_version} <= 1110
|
%ifpython2
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
Requires: python-backports.functools_lru_cache
|
||||||
%else
|
Requires: python-enum34
|
||||||
BuildArch: noarch
|
Requires: python-singledispatch
|
||||||
%endif
|
%endif
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The aim of this module is to provide a common base representation of
|
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.
|
objects.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n astroid-%{version}
|
%setup -q -n astroid-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%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,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING COPYING.LESSER ChangeLog README.rst
|
%doc COPYING COPYING.LESSER ChangeLog README.rst
|
||||||
%{python_sitelib}/astroid/
|
%{python_sitelib}/astroid/
|
||||||
%{python_sitelib}/astroid-%{version}-py*.egg-info
|
#%{python_sitelib}/astroid-%{version}-py*.egg-info
|
||||||
|
%{python_sitelib}/astroid-*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user