From 0c3730f226adc73125a29a74bd4a9749f1327fed363f095dcc28c9e2659fd307 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 26 Mar 2022 20:04:23 +0000 Subject: [PATCH] - update to 1.7.1: * Removed most of the Python 2 support code and fixed ``python_requires`` to require at least Python 3.6. * Note that 1.7.0 has been yanked because it could not install on Python 2.7. * Switched CI to GitHub Actions, this has a couple consequences: * Fixed ``__index__`` to fallback to ``int`` if the wrapped object doesn't have an ``__index__`` method. This prevents situations where code using a proxy would otherwise likely just call ``int`` had the object not have an ``__index__`` method. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lazy-object-proxy?expand=0&rev=21 --- lazy-object-proxy-1.6.0.tar.gz | 3 --- lazy-object-proxy-1.7.1.tar.gz | 3 +++ python-lazy-object-proxy.changes | 13 +++++++++++++ python-lazy-object-proxy.spec | 12 ++++-------- 4 files changed, 20 insertions(+), 11 deletions(-) delete mode 100644 lazy-object-proxy-1.6.0.tar.gz create mode 100644 lazy-object-proxy-1.7.1.tar.gz diff --git a/lazy-object-proxy-1.6.0.tar.gz b/lazy-object-proxy-1.6.0.tar.gz deleted file mode 100644 index a2aa94f..0000000 --- a/lazy-object-proxy-1.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:489000d368377571c6f982fba6497f2aa13c6d1facc40660963da62f5c379726 -size 44494 diff --git a/lazy-object-proxy-1.7.1.tar.gz b/lazy-object-proxy-1.7.1.tar.gz new file mode 100644 index 0000000..7f2b8e6 --- /dev/null +++ b/lazy-object-proxy-1.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d609c75b986def706743cdebe5e47553f4a5a1da9c5ff66d76013ef396b5a8a4 +size 41995 diff --git a/python-lazy-object-proxy.changes b/python-lazy-object-proxy.changes index 911ea21..2292a8d 100644 --- a/python-lazy-object-proxy.changes +++ b/python-lazy-object-proxy.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sat Mar 26 20:03:03 UTC 2022 - Dirk Müller + +- update to 1.7.1: + * Removed most of the Python 2 support code and fixed ``python_requires`` to + require at least Python 3.6. + * Note that 1.7.0 has been yanked because it could not install on Python 2.7. + * Switched CI to GitHub Actions, this has a couple consequences: + * Fixed ``__index__`` to fallback to ``int`` if the wrapped object doesn't + have an ``__index__`` method. This prevents situations where code using a + proxy would otherwise likely just call ``int`` had the object not have an + ``__index__`` method. + ------------------------------------------------------------------- Wed Oct 13 09:02:38 UTC 2021 - Ben Greiner diff --git a/python-lazy-object-proxy.spec b/python-lazy-object-proxy.spec index f8bd314..6b210a6 100644 --- a/python-lazy-object-proxy.spec +++ b/python-lazy-object-proxy.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python +%{?!python_module:%define python_module() python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -26,8 +25,9 @@ %define psuffix %{nil} %bcond_with test %endif +%global skip_python2 1 Name: python-lazy-object-proxy%{psuffix} -Version: 1.6.0 +Version: 1.7.1 Release: 0 Summary: Rebuild a new abstract syntax tree from Python's ast License: BSD-2-Clause @@ -47,10 +47,6 @@ BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest-travis-fold} BuildRequires: %{python_module pytest} %endif -%ifpython2 -Obsoletes: %{oldpython}-lazy_object_proxy < %{version} -Provides: %{oldpython}-lazy_object_proxy = %{version} -%endif %python_subpackages %description