15
0
forked from pool/python-bindep

Accepting request 1240533 from home:glaubitz:branches:devel:languages:python

- Update to 2.12.0
  * Basic support for PopOS is now included.
  * Python 2.7 and 3.5 are no longer supported.
  * Bindep now depends on the distro python library to determine
    details about the current platform. This library looks at both
    /etc/os-release and lsb_release to find platform info. The
    os-release file data is preferred and at times has slightly
    different data than lsb_release. Every effort has been made
    to make this transition backward compatible but some things
    may have been missed. The motivation for this change is that
    not all distros have lsb_release available and we can let the
    distro library sort that out for us.
- Drop remove-mock.patch, merged upstream

OBS-URL: https://build.opensuse.org/request/show/1240533
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bindep?expand=0&rev=14
This commit is contained in:
2025-01-28 01:52:50 +00:00
committed by Git OBS Bridge
parent f40b8695f1
commit 50345535e1
5 changed files with 22 additions and 38 deletions

View File

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

3
bindep-2.12.0.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Mon Jan 27 12:52:44 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.12.0
* Basic support for PopOS is now included.
* Python 2.7 and 3.5 are no longer supported.
* Bindep now depends on the distro python library to determine
details about the current platform. This library looks at both
/etc/os-release and lsb_release to find platform info. The
os-release file data is preferred and at times has slightly
different data than lsb_release. Every effort has been made
to make this transition backward compatible but some things
may have been missed. The motivation for this change is that
not all distros have lsb_release available and we can let the
distro library sort that out for us.
- Drop remove-mock.patch, merged upstream
-------------------------------------------------------------------
Fri May 5 11:04:40 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-bindep
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,12 @@
%{?sle15_python_module_pythons}
Name: python-bindep
Version: 2.11.0
Version: 2.12.0
Release: 0
Summary: Binary dependency utility
License: Apache-2.0
URL: https://docs.opendev.org/opendev/bindep
Source: https://files.pythonhosted.org/packages/source/b/bindep/bindep-%{version}.tar.gz
Patch0: remove-mock.patch
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros

View File

@@ -1,32 +0,0 @@
Index: bindep-2.11.0/bindep/tests/test_main.py
===================================================================
--- bindep-2.11.0.orig/bindep/tests/test_main.py
+++ bindep-2.11.0/bindep/tests/test_main.py
@@ -24,7 +24,10 @@ from fixtures import FakeLogger
from fixtures import Fixture
from fixtures import MonkeyPatch
from fixtures import TempDir
-import mock
+try:
+ from unittest import mock
+except ImportError:
+ import mock
from testtools import TestCase
from bindep.__main__ import main
Index: bindep-2.11.0/bindep/tests/test_depends.py
===================================================================
--- bindep-2.11.0.orig/bindep/tests/test_depends.py
+++ bindep-2.11.0/bindep/tests/test_depends.py
@@ -23,7 +23,10 @@ from textwrap import dedent
import distro
import fixtures
-import mock
+try:
+ from unittest import mock
+except ImportError:
+ import mock
import ometa.runtime
from testtools import ExpectedException
from testtools.matchers import Contains