forked from pool/python-invocations
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 1f0519b858 | |||
| a8cb22107b | |||
| 7d026725f6 | |||
| 0a13c14138 |
19
drop-icecream-dep.patch
Normal file
19
drop-icecream-dep.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
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
LFS
BIN
invocations-3.0.2.tar.gz
LFS
Binary file not shown.
BIN
invocations-3.3.0.tar.gz
LFS
Normal file
BIN
invocations-3.3.0.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
Index: invocations-3.0.2/tests/packaging/release.py
|
||||
Index: 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
|
||||
--- 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
|
||||
@@ -14,12 +14,12 @@ Index: invocations-3.0.2/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.0.2/invocations/packaging/release.py
|
||||
Index: invocations-3.3.0/invocations/packaging/release.py
|
||||
===================================================================
|
||||
--- 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
|
||||
--- 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
|
||||
|
||||
@@ -1,3 +1,34 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 30 05:51:22 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
- Drop unneeded {Build,}Requires on python-lexicon.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-invocations
|
||||
#
|
||||
# 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,16 +18,18 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-invocations
|
||||
Version: 3.0.2
|
||||
Version: 3.3.0
|
||||
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}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest-relaxed}
|
||||
BuildRequires: %{python_module releases >= 1.6}
|
||||
BuildRequires: %{python_module semantic_version >= 2.4}
|
||||
@@ -40,7 +42,6 @@ BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-blessings >= 1.6
|
||||
Requires: python-invoke >= 1.7.2
|
||||
Requires: python-lexicon
|
||||
Requires: python-releases >= 1.6
|
||||
Requires: python-semantic_version >= 2.4
|
||||
Requires: python-tabulate >= 0.7.5
|
||||
@@ -65,10 +66,10 @@ the Invoke project's communication channels for updates. Thanks!
|
||||
%autosetup -p1 -n invocations-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -82,6 +83,6 @@ rm -r tests/autodoc/ tests/packaging/
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/invocations
|
||||
%{python_sitelib}/invocations-%{version}*info
|
||||
%{python_sitelib}/invocations-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user