diff --git a/no-python2.patch b/no-python2.patch new file mode 100644 index 0000000..8bca4aa --- /dev/null +++ b/no-python2.patch @@ -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) diff --git a/python-plumbum.changes b/python-plumbum.changes index 126147a..a61cb1c 100644 --- a/python-plumbum.changes +++ b/python-plumbum.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon Apr 27 07:26:40 UTC 2020 - Tomáš Chvátal + +- 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 diff --git a/python-plumbum.spec b/python-plumbum.spec index 787b806..9ad0222 100644 --- a/python-plumbum.spec +++ b/python-plumbum.spec @@ -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 diff --git a/v1.6.8.tar.gz b/v1.6.8.tar.gz deleted file mode 100644 index 5cf9c16..0000000 --- a/v1.6.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9976a789d8eec3c34cc9dc10b2a65a0a89052273e4c3777eeae67e32335fc180 -size 309449 diff --git a/v1.6.9.tar.gz b/v1.6.9.tar.gz new file mode 100644 index 0000000..e651247 --- /dev/null +++ b/v1.6.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f3b5db1ab309d5cff5ba04a2335d522c6e5eb019b910938685b08800af006c9 +size 311240