1
0

Accepting request 965084 from devel:languages:python

- 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/request/show/965084
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lazy-object-proxy?expand=0&rev=12
This commit is contained in:
2022-03-29 16:13:55 +00:00
committed by Git OBS Bridge
4 changed files with 20 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:489000d368377571c6f982fba6497f2aa13c6d1facc40660963da62f5c379726
size 44494

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d609c75b986def706743cdebe5e47553f4a5a1da9c5ff66d76013ef396b5a8a4
size 41995

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Sat Mar 26 20:03:03 UTC 2022 - Dirk Müller <dmueller@suse.com>
- 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 <code@bnavigator.de>

View File

@@ -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