From 8afd70bd6fd9ea19430db9b66b8024871cbbed0d7ff6b55eff5b778ae5a62ae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 4 Oct 2019 07:42:00 +0000 Subject: [PATCH 1/2] Accepting request 734809 from home:mcalabkova:branches:devel:languages:python - Update to 2.3.1 * A transform for the builtin `dataclasses` module was added. * Add a brain tip for ``subprocess.check_output`` * Remove NodeNG.nearest method because of lack of usage in astroid and pylint. * Allow importing wheel files. * Dropped support for Python 3.4. * Add support for Python 3.8's `NamedExpr` nodes, which is part of assignment expressions. * ...and more. OBS-URL: https://build.opensuse.org/request/show/734809 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=42 --- astroid-2.2.5.tar.gz | 3 --- astroid-2.3.1.tar.gz | 3 +++ python-astroid.changes | 12 ++++++++++++ python-astroid.spec | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) delete mode 100644 astroid-2.2.5.tar.gz create mode 100644 astroid-2.3.1.tar.gz diff --git a/astroid-2.2.5.tar.gz b/astroid-2.2.5.tar.gz deleted file mode 100644 index 4a2ff38..0000000 --- a/astroid-2.2.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6560e1e1749f68c64a4b5dee4e091fce798d2f0d84ebe638cf0e0585a343acf4 -size 281829 diff --git a/astroid-2.3.1.tar.gz b/astroid-2.3.1.tar.gz new file mode 100644 index 0000000..6cb53bb --- /dev/null +++ b/astroid-2.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7546ffdedbf7abcfbff93cd1de9e9980b1ef744852689decc5aeada324238c6 +size 297020 diff --git a/python-astroid.changes b/python-astroid.changes index 6de5d2d..0e670e5 100644 --- a/python-astroid.changes +++ b/python-astroid.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Thu Oct 3 14:07:26 UTC 2019 - Marketa Calabkova + +- Update to 2.3.1 + * A transform for the builtin `dataclasses` module was added. + * Add a brain tip for ``subprocess.check_output`` + * Remove NodeNG.nearest method because of lack of usage in astroid and pylint. + * Allow importing wheel files. + * Dropped support for Python 3.4. + * Add support for Python 3.8's `NamedExpr` nodes, which is part of assignment expressions. + * ...and more. + ------------------------------------------------------------------- Mon Mar 11 09:46:52 UTC 2019 - Tomáš Chvátal diff --git a/python-astroid.spec b/python-astroid.spec index 3d18082..f2bc33f 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astroid -Version: 2.2.5 +Version: 2.3.1 Release: 0 Summary: Representation of Python source as an AST for pylint License: LGPL-2.1-or-later From 858a1eb0908ba71e32a7eb0c77f52ef41e1d02f85966feae7ff71fdea7ad7ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 4 Oct 2019 08:27:26 +0000 Subject: [PATCH 2/2] - Add patch to not use pinned dependencies and to work in our distro: * unpin-deps.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=43 --- python-astroid.changes | 6 ++++++ python-astroid.spec | 23 ++++++++++++----------- unpin-deps.patch | 19 +++++++++++++++++++ 3 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 unpin-deps.patch diff --git a/python-astroid.changes b/python-astroid.changes index 0e670e5..4f7bf8e 100644 --- a/python-astroid.changes +++ b/python-astroid.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Oct 4 08:24:37 UTC 2019 - Tomáš Chvátal + +- Add patch to not use pinned dependencies and to work in our distro: + * unpin-deps.patch + ------------------------------------------------------------------- Thu Oct 3 14:07:26 UTC 2019 - Marketa Calabkova diff --git a/python-astroid.spec b/python-astroid.spec index f2bc33f..02b7de7 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -23,24 +23,24 @@ Version: 2.3.1 Release: 0 Summary: Representation of Python source as an AST for pylint License: LGPL-2.1-or-later -Group: Development/Libraries/Python URL: https://github.com/pycqa/astroid Source: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz -BuildRequires: %{python_module lazy-object-proxy} +Patch0: unpin-deps.patch +BuildRequires: %{python_module lazy-object-proxy >= 1.4} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six} -BuildRequires: %{python_module wrapt} +BuildRequires: %{python_module six >= 1.12} +BuildRequires: %{python_module wrapt >= 1.11} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-lazy-object-proxy -Requires: python-six -Requires: python-wrapt +Requires: python-lazy-object-proxy >= 1.4 +Requires: python-six >= 1.12 +Requires: python-wrapt >= 1.11 BuildArch: noarch -%if 0%{?suse_version} < 1500 -BuildRequires: %{python_module typing} -Requires: python-typing +%if 0%{?suse_version} <= 1500 +BuildRequires: %{python_module typed-ast} +Requires: python-typed-ast %endif %python_subpackages @@ -59,6 +59,7 @@ objects. %prep %setup -q -n astroid-%{version} +%patch0 -p1 %build %python_build @@ -68,7 +69,7 @@ objects. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v +%pytest %files %{python_files} %license COPYING COPYING.LESSER diff --git a/unpin-deps.patch b/unpin-deps.patch new file mode 100644 index 0000000..98be946 --- /dev/null +++ b/unpin-deps.patch @@ -0,0 +1,19 @@ +Index: astroid-2.3.1/astroid/__pkginfo__.py +=================================================================== +--- astroid-2.3.1.orig/astroid/__pkginfo__.py ++++ astroid-2.3.1/astroid/__pkginfo__.py +@@ -22,10 +22,10 @@ numversion = tuple(int(elem) for elem in + + extras_require = {} + install_requires = [ +- "lazy_object_proxy==1.4.*", +- "six==1.12", +- "wrapt==1.11.*", +- 'typed-ast>=1.4.0,<1.5;implementation_name== "cpython" and python_version<"3.8"', ++ "lazy_object_proxy>=1.4", ++ "six>=1.12", ++ "wrapt>=1.11", ++ 'typed-ast>=1.4.0;implementation_name== "cpython" and python_version<"3.7"', + ] + + # pylint: disable=redefined-builtin; why license is a builtin anyway?