Accepting request 1085963 from devel:languages:python

- update to 3.0.2:
  * backported` Unpin ``tabulate`` in our install
    requirements, it's had many more releases since we instituted
    a defensive pin vs some bugs in its later 0.7 line!
  * We neglected to remove references to ``six`` in a
    few spots including some that utilized Invoke's old vendor of same;
    this causes issues when trying to use development and
    upcoming versions of Invoke. Six is now truly gone!

OBS-URL: https://build.opensuse.org/request/show/1085963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-invocations?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2023-05-11 10:31:27 +00:00 committed by Git OBS Bridge
commit 18cb08c932
5 changed files with 22 additions and 61 deletions

View File

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

BIN
invocations-3.0.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,7 +1,7 @@
Index: invocations-3.0.0/tests/packaging/release.py Index: invocations-3.0.2/tests/packaging/release.py
=================================================================== ===================================================================
--- invocations-3.0.0.orig/tests/packaging/release.py --- invocations-3.0.2.orig/tests/packaging/release.py
+++ invocations-3.0.0/tests/packaging/release.py +++ invocations-3.0.2/tests/packaging/release.py
@@ -3,7 +3,10 @@ from os import path @@ -3,7 +3,10 @@ from os import path
import re import re
import sys import sys
@ -14,61 +14,10 @@ Index: invocations-3.0.0/tests/packaging/release.py
from invoke import MockContext, Result, Config, Exit from invoke import MockContext, Result, Config, Exit
from docutils.utils import Reporter from docutils.utils import Reporter
from unittest.mock import Mock, patch, call from unittest.mock import Mock, patch, call
Index: invocations-3.0.0/invocations/console.py Index: invocations-3.0.2/invocations/packaging/release.py
=================================================================== ===================================================================
--- invocations-3.0.0.orig/invocations/console.py --- invocations-3.0.2.orig/invocations/packaging/release.py
+++ invocations-3.0.0/invocations/console.py +++ invocations-3.0.2/invocations/packaging/release.py
@@ -4,7 +4,10 @@ Text console UI helpers and patterns, e.
import sys
-from invoke.vendor.six.moves import input
+try:
+ from invoke.vendor.six.moves import input
+except ImportError:
+ from six.moves import input
# NOTE: originally cribbed from fab 1's contrib.console.confirm
Index: invocations-3.0.0/invocations/packaging/semantic_version_monkey.py
===================================================================
--- invocations-3.0.0.orig/invocations/packaging/semantic_version_monkey.py
+++ invocations-3.0.0/invocations/packaging/semantic_version_monkey.py
@@ -5,7 +5,10 @@ We never like monkey-patching, but for n
or distributing our own fork.
"""
-from invoke.vendor.six import text_type
+try:
+ from invoke.vendor.six import text_type
+except ImportError:
+ from six import text_type
from semantic_version import Version
Index: invocations-3.0.0/invocations/testing.py
===================================================================
--- invocations-3.0.0.orig/invocations/testing.py
+++ invocations-3.0.0/invocations/testing.py
@@ -1,8 +1,12 @@
import sys
import time
from collections import defaultdict
-from invoke.vendor.six import iteritems
-from invoke.vendor.six.moves import range
+try:
+ from invoke.vendor.six import iteritems
+ from invoke.vendor.six.moves import range
+except ImportError:
+ from six import iteritems
+ from six.moves import range
from invoke import task
from tqdm import tqdm
Index: invocations-3.0.0/invocations/packaging/release.py
===================================================================
--- invocations-3.0.0.orig/invocations/packaging/release.py
+++ invocations-3.0.0/invocations/packaging/release.py
@@ -20,7 +20,10 @@ from glob import glob @@ -20,7 +20,10 @@ from glob import glob
from io import StringIO from io import StringIO
from shutil import rmtree from shutil import rmtree

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu May 4 19:15:25 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 3.0.2:
* backported` Unpin ``tabulate`` in our install
requirements, it's had many more releases since we instituted
a defensive pin vs some bugs in its later 0.7 line!
* We neglected to remove references to ``six`` in a
few spots including some that utilized Invoke's old vendor of same;
this causes issues when trying to use development and
upcoming versions of Invoke. Six is now truly gone!
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 21 12:27:01 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Apr 21 12:27:01 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -18,7 +18,7 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-invocations Name: python-invocations
Version: 3.0.0 Version: 3.0.2
Release: 0 Release: 0
Summary: Reusable Invoke tasks Summary: Reusable Invoke tasks
License: BSD-2-Clause License: BSD-2-Clause