Compare commits

1 Commits
main ... 1.1

6 changed files with 15 additions and 64 deletions

View File

@@ -1,19 +0,0 @@
Index: invocations-3.3.0/tests/conftest.py
===================================================================
--- invocations-3.3.0.orig/tests/conftest.py
+++ invocations-3.3.0/tests/conftest.py
@@ -5,9 +5,11 @@ from pytest import fixture
from invoke import MockContext
# Set up icecream globally for convenience.
-from icecream import install
-
-install()
+try:
+ from icecream import install
+ install()
+except ModuleNotFoundError:
+ pass
@fixture

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

Binary file not shown.

BIN
invocations-3.3.0.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,7 +1,7 @@
Index: invocations-3.3.0/tests/packaging/release.py
Index: invocations-3.0.2/tests/packaging/release.py
===================================================================
--- invocations-3.3.0.orig/tests/packaging/release.py
+++ invocations-3.3.0/tests/packaging/release.py
--- invocations-3.0.2.orig/tests/packaging/release.py
+++ invocations-3.0.2/tests/packaging/release.py
@@ -3,7 +3,10 @@ from os import path
import re
import sys
@@ -14,12 +14,12 @@ Index: invocations-3.3.0/tests/packaging/release.py
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
Index: invocations-3.0.2/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
--- invocations-3.0.2.orig/invocations/packaging/release.py
+++ invocations-3.0.2/invocations/packaging/release.py
@@ -20,7 +20,10 @@ from glob import glob
from io import StringIO
from shutil import rmtree
-from invoke.vendor.lexicon import Lexicon

View File

@@ -1,33 +1,3 @@
-------------------------------------------------------------------
Wed Nov 6 10:23:52 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- 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).
-------------------------------------------------------------------
Thu Jun 1 13:06:53 UTC 2023 - pgajdos@suse.com
- python-six is not required
-------------------------------------------------------------------
Thu May 4 19:15:25 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-invocations
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,15 +18,13 @@
%{?sle15_python_module_pythons}
Name: python-invocations
Version: 3.3.0
Version: 3.0.2
Release: 0
Summary: Reusable Invoke tasks
License: BSD-2-Clause
URL: https://github.com/pyinvoke/invocations
Source: https://github.com/pyinvoke/invocations/archive/%{version}.tar.gz#/invocations-%{version}.tar.gz
Patch0: invocations-no-bundled.patch
# PATCH-FIX-OPENSUSE drop-icecream-dep.patch -- daniel.garcia@suse.com
Patch1: drop-icecream-dep.patch
BuildRequires: %{python_module blessings >= 1.6}
BuildRequires: %{python_module invoke >= 1.7.2}
BuildRequires: %{python_module lexicon}
@@ -34,6 +32,7 @@ BuildRequires: %{python_module pytest-relaxed}
BuildRequires: %{python_module releases >= 1.6}
BuildRequires: %{python_module semantic_version >= 2.4}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module tabulate >= 0.7.5}
BuildRequires: %{python_module tqdm >= 4.8.1}
BuildRequires: %{python_module twine >= 1.15}
@@ -45,6 +44,7 @@ Requires: python-invoke >= 1.7.2
Requires: python-lexicon
Requires: python-releases >= 1.6
Requires: python-semantic_version >= 2.4
Requires: python-six
Requires: python-tabulate >= 0.7.5
Requires: python-tqdm >= 4.8.1
Requires: python-twine >= 1.15