17
0
Files
python-invocations/invocations-no-bundled.patch
Daniel Garcia 0a13c14138 - Add drop-icecream-dep.patch
- Update to 3.3.0:
   * Add mypy type-checking variant of the recently added import test,
     in packaging.release.test_install. This helps prove packages
     exposing py.typed in their source tree are including it in their
     distributions correctly.
- 3.2.0:
   * Minor enhancements to the checks module:
     - blacken now has a format alias (and will likely reverse the
       real name and the alias in 4.0)
     - Added lint task which currently just runs flake8, will likely
       learn how to be configurable later.
     - Added all_ default task for the collection, which runs both
       blacken (in regular, not diff-only mode - idea is to be useful
       for devs, not CI, which already does both independently) and
       lint in series.
- 3.1.0:
    * Updated packaging.release.test_install to attempt imports of
      freshly test-installed packages, to catch import-time errors on
      top of install-time ones. This can be opted out of by giving the
      skip_import kwarg (aka the --skip-import flag on the CLI).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-invocations?expand=0&rev=36
2024-11-06 10:28:36 +00:00

33 lines
1.1 KiB
Diff

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