From 027ea79a63c7540590eda8b505103fe3b8eef1c25f82b4ccc67400f92f746637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 17 Oct 2023 15:46:15 +0000 Subject: [PATCH] Accepting request 1118344 from home:mcalabkova:branches:devel:languages:python:312 - Update to 3.0.1 * Add support for Python 3.12, including PEP 695 type parameter syntax. * Remove support for Python 3.7. * Use the global inference cache when inferring, even without an explicit InferenceContext. * Following a deprecation period starting in astroid 2.7.0, the astroid.node_classes and astroid.scoped_nodes modules have been removed in favor of astroid.nodes.node_classes and astroid.nodes.scoped_nodes. * Following a deprecation period starting in astroid 2.12.0, the astroid.mixins module has been removed in favor of astroid.nodes._base_nodes (private). * Remove @cached and @cachedproperty decorator (just use @cached_property from the stdlib). * Remove the inference module. Node inference methods are now in the module defining the node, rather than being associated to the node afterward. * Move LookupMixIn to astroid.nodes._base_nodes and make it private. * Remove the shims for OperationError, BinaryOperationError, and UnaryOperationError in exceptions. They were moved to util in astroid 1.5.0. * Reduce file system access in ast_from_file(). * nodes.FunctionDef no longer inherits from nodes.Lambda. * infer_call_result now shares the same interface across all implementations. * Remove unused and / or deprecated constants. * The future argument to each method is deprecated and will be removed in astroid 4.0. * So many more changes, see https://github.com/pylint-dev/astroid/blob/main/ChangeLog for a complete list. OBS-URL: https://build.opensuse.org/request/show/1118344 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=95 --- astroid-2.15.6-gh.tar.gz | 3 --- astroid-3.0.1-gh.tar.gz | 3 +++ python-astroid.changes | 27 +++++++++++++++++++++++++++ python-astroid.spec | 17 ++--------------- 4 files changed, 32 insertions(+), 18 deletions(-) delete mode 100644 astroid-2.15.6-gh.tar.gz create mode 100644 astroid-3.0.1-gh.tar.gz diff --git a/astroid-2.15.6-gh.tar.gz b/astroid-2.15.6-gh.tar.gz deleted file mode 100644 index e508cd7..0000000 --- a/astroid-2.15.6-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ea2964fab540bfd52b21a58d3517696a639ea5c79ca8305fb616549e6f0308ed -size 462156 diff --git a/astroid-3.0.1-gh.tar.gz b/astroid-3.0.1-gh.tar.gz new file mode 100644 index 0000000..ce06167 --- /dev/null +++ b/astroid-3.0.1-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f80290886f167f01b67c0464abe031deb4a3b24603a09dc4abddd469b052319b +size 461593 diff --git a/python-astroid.changes b/python-astroid.changes index 1eed022..2dcc037 100644 --- a/python-astroid.changes +++ b/python-astroid.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Tue Oct 17 15:32:34 UTC 2023 - Markéta Calábková + +- Update to 3.0.1 + * Add support for Python 3.12, including PEP 695 type parameter syntax. + * Remove support for Python 3.7. + * Use the global inference cache when inferring, even without an explicit + InferenceContext. + * Following a deprecation period starting in astroid 2.7.0, the astroid.node_classes + and astroid.scoped_nodes modules have been removed in favor of astroid.nodes.node_classes + and astroid.nodes.scoped_nodes. + * Following a deprecation period starting in astroid 2.12.0, the astroid.mixins module + has been removed in favor of astroid.nodes._base_nodes (private). + * Remove @cached and @cachedproperty decorator (just use @cached_property from the stdlib). + * Remove the inference module. Node inference methods are now in the module + defining the node, rather than being associated to the node afterward. + * Move LookupMixIn to astroid.nodes._base_nodes and make it private. + * Remove the shims for OperationError, BinaryOperationError, and UnaryOperationError + in exceptions. They were moved to util in astroid 1.5.0. + * Reduce file system access in ast_from_file(). + * nodes.FunctionDef no longer inherits from nodes.Lambda. + * infer_call_result now shares the same interface across all implementations. + * Remove unused and / or deprecated constants. + * The future argument to each method is deprecated and will be removed in astroid 4.0. + * So many more changes, see https://github.com/pylint-dev/astroid/blob/main/ChangeLog + for a complete list. + ------------------------------------------------------------------- Sun Jul 16 11:40:36 UTC 2023 - Dirk Müller diff --git a/python-astroid.spec b/python-astroid.spec index 869760c..03a328d 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -18,38 +18,25 @@ %{?sle15_python_module_pythons} Name: python-astroid -Version: 2.15.6 +Version: 3.0.1 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 base >= 3.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module typed-ast >= 1.4 if %python-base < 3.8} # 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 BuildArch: noarch -%if 0%{?python_version_nodots} < 38 -Requires: python-typed-ast >= 1.4 -%endif %if 0%{?python_version_nodots} < 311 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 %description