15
0
Files
python-invocations/invocations-no-bundled.patch

33 lines
1.1 KiB
Diff
Raw Permalink Normal View History

Index: invocations-3.3.0/tests/packaging/release.py
===================================================================
--- invocations-3.3.0.orig/tests/packaging/release.py
+++ invocations-3.3.0/tests/packaging/release.py
@@ -3,7 +3,10 @@ from os import path
import re
import sys
-from invoke.vendor.lexicon import Lexicon
+try:
+ from invoke.vendor.lexicon import Lexicon
+except ImportError:
+ from lexicon import Lexicon
Accepting request 940361 from home:bnavigator:python-rpm-macros - Update to 2.3.0 * [Bug]: The packaging.release.upload task wasn’t properly exposed externally, even though another task’s docstring referenced it. Fixed. * [Bug]: Ensure that the venv used for packaging.release.test_install has its pip upgraded to match the invoking interpreter’s version of same; this avoids common pitfalls where the “inner” pip is a bundled-with-venv, much-older version incapable of modern package installations. * [Support]: Overhaul testing and release procedures to use CircleCI & modern Invocations. * 2.2.0 2021-09-03 * [Feature]: Added the invocations.environment module with top-level functions such as in_ci. * [Feature]: packaging.release.push, in dry-run mode, now dry-runs its git push subcommand – meaning the subcommand itself is what is “dry-ran”, instead of truly executing git push --dry-run – when a CI environment is detected. * This prevents spurious errors when the git remote (eg Github) bails out on read-only authentication credentials, which is common within CI systems. * It’s also just not very useful to dry-run a real git push within CI, since almost certainly the commands to generate git objects to get pushed will themselves not have truly run! * [Bug]: packaging.release.status (and its use elsewhere, eg prepare) didn’t adequately reload the local project’s version module during its second/final recheck; this causes that check to fail when said version was edited as part of a prepare run. It now force-reloads said version module. - Release 2.1.0 OBS-URL: https://build.opensuse.org/request/show/940361 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-invocations?expand=0&rev=20
2021-12-14 18:28:48 +00:00
from invoke import MockContext, Result, Config, Exit
from docutils.utils import Reporter
from unittest.mock import Mock, patch, call
Index: invocations-3.3.0/invocations/packaging/release.py
===================================================================
--- invocations-3.3.0.orig/invocations/packaging/release.py
+++ invocations-3.3.0/invocations/packaging/release.py
@@ -21,7 +21,10 @@ from io import StringIO
from pathlib import Path
from shutil import rmtree
-from invoke.vendor.lexicon import Lexicon
+try:
+ from invoke.vendor.lexicon import Lexicon
+except ImportError:
+ from lexicon import Lexicon
from blessings import Terminal
from docutils.utils import Reporter