diff --git a/_service b/_service new file mode 100644 index 0000000..e8bbe29 --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + + git + https://github.com/pycqa/astroid.git + astroid + 1.4.9.git + + + + + gz + *.tar + + + + diff --git a/astroid-1.4.4.tar.gz b/astroid-1.4.4.tar.gz deleted file mode 100644 index 44eebee..0000000 --- a/astroid-1.4.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f7e5512efe515098e77cbd3a60e87c8db8954097b0e025d8d6f72f2e8ddc298 -size 181733 diff --git a/astroid-1.4.9.git.1489454058.313c0c3.tar.gz b/astroid-1.4.9.git.1489454058.313c0c3.tar.gz new file mode 100644 index 0000000..c594a5b --- /dev/null +++ b/astroid-1.4.9.git.1489454058.313c0c3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65108874e0efb3d1dbb4ba7724e2cde6329cbb0ba1e18d58293bcd1072a061d0 +size 254856 diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..2524541 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +python_files = astroid/tests/unittest_*.py +norecursedirs = _build.* build diff --git a/python-astroid.changes b/python-astroid.changes index a5704c0..a054971 100644 --- a/python-astroid.changes +++ b/python-astroid.changes @@ -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 diff --git a/python-astroid.spec b/python-astroid.spec index 41786c5..d7cb48e 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -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,38 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-astroid -Version: 1.4.4 +Version: 1.4.9.git.1489454058.313c0c3 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 +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} +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 +65,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