diff --git a/astroid-2.12.4-gh.tar.gz b/astroid-2.12.4-gh.tar.gz new file mode 100644 index 0000000..18a9447 --- /dev/null +++ b/astroid-2.12.4-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b39565e9c0ba43436d7719858da996129141052eccf7f047129d17d75e8c3bd +size 432812 diff --git a/astroid-2.9.3-gh.tar.gz b/astroid-2.9.3-gh.tar.gz deleted file mode 100644 index 52579ab..0000000 --- a/astroid-2.9.3-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:07234423c3722df6aa067c15f5fa60adf4f1d6ae659d2ab147acb40a8a1904f7 -size 409069 diff --git a/python-astroid.changes b/python-astroid.changes index c87bac9..a94f708 100644 --- a/python-astroid.changes +++ b/python-astroid.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Sat Aug 27 10:10:36 UTC 2022 - Ben Greiner + +- Update to 2.12.4 + * Fixed a crash involving non-standard type comments such as + `# type: # any comment`. +- Big changelog since 2.9.3, see file Changelog + * mostly crash fixes + * Python >= 3.7 is required + ------------------------------------------------------------------- Sat Jan 15 16:43:55 UTC 2022 - Dirk Müller diff --git a/python-astroid.spec b/python-astroid.spec index 2a405de..df1a04e 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -16,31 +16,38 @@ # -%define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astroid -Version: 2.9.3 +Version: 2.12.4 Release: 0 Summary: Representation of Python source as an AST for pylint License: LGPL-2.1-or-later URL: https://github.com/pycqa/astroid Source: https://github.com/PyCQA/astroid/archive/refs/tags/v%{version}.tar.gz#/astroid-%{version}-gh.tar.gz +BuildRequires: %{python_module base >= 3.7.2} BuildRequires: %{python_module lazy-object-proxy >= 1.4} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module typed-ast >= 1.4 if %python-base < 3.8} -BuildRequires: %{python_module typing_extensions >= 3.10 if %python-base < 3.10} -BuildRequires: %{python_module wrapt >= 1.11} +# typing-extensions for python310 required for tests only: gh#PyCQA/astroid#1585 +BuildRequires: %{python_module typing-extensions >= 3.10} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module wrapt >= 1.11 if %python-base < 3.11} +BuildRequires: %{python_module wrapt >= 1.14 if %python-base >= 3.11} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-lazy-object-proxy >= 1.4 -Requires: python-wrapt >= 1.11 BuildArch: noarch %if 0%{?python_version_nodots} < 38 Requires: python-typed-ast >= 1.4 %endif %if 0%{?python_version_nodots} < 310 -Requires: python-typing_extensions >= 3.10 +Requires: python-typing-extensions >= 3.10 +%endif +%if 0%{?python_version_nodots} < 311 +Requires: python-wrapt >= 1.11 +%else +Requires: python-wrapt >= 1.14 %endif %python_subpackages @@ -62,10 +69,10 @@ objects. %autopatch -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check