forked from pool/python-plumbum
- Add patch fixing build with no python2 available:
* no-python2.patch - Update to 1.6.9: * Last version to support Python 2.6; added python_requires (#507) * Paths: Fix bug with subscription operations (#498), (#506) * Paths: Fix resolve (#492) * Commands: Fix resolve (#491) * Commands: Add context manager on popen (#495) * Several smaller fixes (#500), (#505) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-plumbum?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
961fcd6e83
commit
f3b3630dd9
13
no-python2.patch
Normal file
13
no-python2.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: plumbum-1.6.9/tests/test_local.py
|
||||
===================================================================
|
||||
--- plumbum-1.6.9.orig/tests/test_local.py
|
||||
+++ plumbum-1.6.9/tests/test_local.py
|
||||
@@ -966,7 +966,7 @@ class TestLocalEncoding:
|
||||
|
||||
name = self.richstr + six.str("_program")
|
||||
with open(name, 'w') as f:
|
||||
- f.write("#!/usr/bin/env python\nprint('yes')")
|
||||
+ f.write("#!{}\nprint('yes')".format(sys.executable))
|
||||
|
||||
st = os.stat(name)
|
||||
os.chmod(name, st.st_mode | stat.S_IEXEC)
|
||||
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 27 07:26:40 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Add patch fixing build with no python2 available:
|
||||
* no-python2.patch
|
||||
- Update to 1.6.9:
|
||||
* Last version to support Python 2.6; added python_requires (#507)
|
||||
* Paths: Fix bug with subscription operations (#498), (#506)
|
||||
* Paths: Fix resolve (#492)
|
||||
* Commands: Fix resolve (#491)
|
||||
* Commands: Add context manager on popen (#495)
|
||||
* Several smaller fixes (#500), (#505)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 18 07:29:06 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-plumbum
|
||||
Version: 1.6.8
|
||||
Version: 1.6.9
|
||||
Release: 0
|
||||
Summary: Shell combinators library
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/tomerfiliba/plumbum
|
||||
Source: https://github.com/tomerfiliba/plumbum/archive/v%{version}.tar.gz
|
||||
Patch0: no-python2.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -51,6 +51,7 @@ application toolkit.
|
||||
|
||||
%prep
|
||||
%setup -q -n plumbum-%{version}
|
||||
%patch0 -p1
|
||||
# remote tests won't work in OBS
|
||||
rm tests/test_remote.py
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9976a789d8eec3c34cc9dc10b2a65a0a89052273e4c3777eeae67e32335fc180
|
||||
size 309449
|
||||
3
v1.6.9.tar.gz
Normal file
3
v1.6.9.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0f3b5db1ab309d5cff5ba04a2335d522c6e5eb019b910938685b08800af006c9
|
||||
size 311240
|
||||
Reference in New Issue
Block a user