- Update to 1.10.0:
* Add Python 3.14, drop Python 3.8
* CLI: Fix flag invoke behavior to respect False values
* CLI: Allow subapplication registration under multiple subcommand names
* CLI: Better support for future annotations on 3.9
* CLI: Termsize determination fixed on Linux Python 3.14, broken due to
wrong struct size
* Drop some unused variables
* Simpler urljoin
* Use SPDX license identifier
* Drop Python <3.8
* Add 3.13 testing and classifiers
* setuptools-less installs couldn't translate, add test
* Use importlib resources
* Replaced NotImplementedError by NotImplemented
* Fix StdinDataRedirection's formulate() method
* Missing non-zero return code from TEE'd pipe
* Fix stalling in Pipeline command
* Use high-speed method for C locale too
* Update index.rst - fix broken link for sh project
- Add patch use-python3-not-python.patch:
* Use the correct interpreter under test when running two scripts.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-plumbum?expand=0&rev=16
This commit is contained in:
30
use-python3-not-python.patch
Normal file
30
use-python3-not-python.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
Index: plumbum-1.10.0/tests/test_pipelines.py
|
||||
===================================================================
|
||||
--- plumbum-1.10.0.orig/tests/test_pipelines.py
|
||||
+++ plumbum-1.10.0/tests/test_pipelines.py
|
||||
@@ -1,5 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
+import sys
|
||||
+
|
||||
import pytest
|
||||
|
||||
import plumbum
|
||||
@@ -57,7 +59,7 @@ for i in range(5000):
|
||||
print(i)
|
||||
"""
|
||||
)
|
||||
- return plumbum.local["python"][generate]
|
||||
+ return plumbum.local[f"python3.{sys.version_info.minor}"][generate]
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@@ -72,7 +74,7 @@ for line in sys.stdin:
|
||||
print(i)
|
||||
"""
|
||||
)
|
||||
- return plumbum.local["python"][process]
|
||||
+ return plumbum.local[f"python3.{sys.version_info.minor}"][process]
|
||||
|
||||
|
||||
def get_output_with_iter_lines(cmd: BaseCommand) -> tuple[list[str], list[str]]:
|
||||
Reference in New Issue
Block a user