Hello community,
here is the log from the commit of package python-invocations for
openSUSE:Factory checked in at 2018-08-24 17:03:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-invocations (Old)
and /work/SRC/openSUSE:Factory/.python-invocations.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-invocations"
Fri Aug 24 17:03:28 2018 rev:2 rq:628767 version:1.4.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-invocations/python-invocations.changes
2018-05-29 16:48:14.476723661 +0200
+++
/work/SRC/openSUSE:Factory/.python-invocations.new/python-invocations.changes
2018-08-24 17:03:45.314046560 +0200
@@ -1,0 +2,18 @@
+Sat Aug 11 12:01:52 UTC 2018 - [email protected]
+
+- Drop the multibuild as the cycle is gone
+- Add patch to not rely on bundled stuff:
+ * invocations-no-bundled.patch
+- Add patch to fix tests on python3:
+ * invocations-py3.patch
+
+-------------------------------------------------------------------
+Sat Aug 11 10:01:08 UTC 2018 - [email protected]
+
+- Version update to 1.4:
+ * Various py3 fixes
+ * pytest for testing
+- Use multibuild to run tests
+- Use github tag to get the tarball with tests
+
+-------------------------------------------------------------------
Old:
----
invocations-0.20.0.tar.gz
New:
----
1.4.0.tar.gz
invocations-no-bundled.patch
invocations-py3.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-invocations.spec ++++++
--- /var/tmp/diff_new_pack.1hQ3wG/_old 2018-08-24 17:03:45.754047082 +0200
+++ /var/tmp/diff_new_pack.1hQ3wG/_new 2018-08-24 17:03:45.754047082 +0200
@@ -13,38 +13,47 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_with test
Name: python-invocations
-Version: 0.20.0
+Version: 1.4.0
Release: 0
-License: BSD-2-Clause
Summary: Reusable Invoke tasks
-Url: http://pyinvoke.org
+License: BSD-2-Clause
Group: Development/Languages/Python
-Source:
https://files.pythonhosted.org/packages/source/i/invocations/invocations-%{version}.tar.gz
-BuildRequires: python-rpm-macros
-BuildRequires: %{python_module devel}
-BuildRequires: %{python_module setuptools}
-%if %{with test}
+URL: http://pyinvoke.org
+Source:
https://github.com/pyinvoke/invocations/archive/%{version}.tar.gz
+Patch0: invocations-no-bundled.patch
+Patch1: invocations-py3.patch
BuildRequires: %{python_module blessings >= 1.6}
-BuildRequires: %{python_module invoke >= 0.13}
+BuildRequires: %{python_module invoke >= 1.0}
+BuildRequires: %{python_module mock}
+BuildRequires: %{python_module pytest-relaxed}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module releases >= 1.2}
BuildRequires: %{python_module semantic_version >= 2.4}
+BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tabulate >= 0.7.5}
BuildRequires: %{python_module tqdm >= 4.8.1}
-%endif
BuildRequires: fdupes
+BuildRequires: python-rpm-macros
+BuildRequires: python2-enum34
Requires: python-blessings >= 1.6
-Requires: python-invoke >= 0.13
+Requires: python-invoke >= 1.0
Requires: python-releases >= 1.2
Requires: python-semantic_version >= 2.4
Requires: python-tabulate >= 0.7.5
Requires: python-tqdm >= 4.8.1
+BuildRequires: %{python_module six}
+Requires: python-six
+BuildRequires: %{python_module lexicon}
+Requires: python-lexicon
BuildArch: noarch
-
+%ifpython2
+Requires: python-enum34
+%endif
%python_subpackages
%description
@@ -60,6 +69,8 @@
%prep
%setup -q -n invocations-%{version}
+%patch0 -p1
+%patch1 -p1
%build
%python_build
@@ -68,13 +79,13 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%if %{with test}
%check
-%python_exec setup.py test
-%endif
+export PYTHONDONTWRITEBYTECODE=1
+%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
+py.test-%{$python_bin_suffix}
+}
%files %{python_files}
-%defattr(-,root,root,-)
%doc README.rst
%license LICENSE
%{python_sitelib}/*
++++++ invocations-0.20.0.tar.gz -> 1.4.0.tar.gz ++++++
++++ 3247 lines of diff (skipped)
++++++ invocations-no-bundled.patch ++++++
Index: invocations-1.4.0/tests/packaging/release.py
===================================================================
--- invocations-1.4.0.orig/tests/packaging/release.py
+++ invocations-1.4.0/tests/packaging/release.py
@@ -5,8 +5,12 @@ from os import path
import re
import sys
-from invoke.vendor.six import PY2
-from invoke.vendor.lexicon import Lexicon
+try:
+ from invoke.vendor.six import PY2
+ from invoke.vendor.lexicon import Lexicon
+except ImportError:
+ from six import PY2
+ from lexicon import Lexicon
from invoke import MockContext, Result, Config
from mock import Mock, patch
from pytest import skip
Index: invocations-1.4.0/invocations/console.py
===================================================================
--- invocations-1.4.0.orig/invocations/console.py
+++ invocations-1.4.0/invocations/console.py
@@ -6,7 +6,10 @@ from __future__ import unicode_literals,
import sys
-from invoke.vendor.six.moves import input
+try:
+ from invoke.vendor.six.moves import input
+except ImportError:
+ from six.moves import input
# NOTE: originally cribbed from fab 1's contrib.console.confirm
Index: invocations-1.4.0/invocations/packaging/release.py
===================================================================
--- invocations-1.4.0.orig/invocations/packaging/release.py
+++ invocations-1.4.0/invocations/packaging/release.py
@@ -19,10 +19,14 @@ import sys
from glob import glob
from shutil import rmtree
-from invoke.vendor.six import StringIO
-
-from invoke.vendor.six import text_type, binary_type, PY2
-from invoke.vendor.lexicon import Lexicon
+try:
+ from invoke.vendor.six import StringIO
+ from invoke.vendor.six import text_type, binary_type, PY2
+ from invoke.vendor.lexicon import Lexicon
+except ImportError:
+ from six import StringIO
+ from six import text_type, binary_type, PY2
+ from lexicon import Lexicon
from blessings import Terminal
from enum import Enum
Index: invocations-1.4.0/invocations/packaging/semantic_version_monkey.py
===================================================================
--- invocations-1.4.0.orig/invocations/packaging/semantic_version_monkey.py
+++ invocations-1.4.0/invocations/packaging/semantic_version_monkey.py
@@ -5,7 +5,10 @@ We never like monkey-patching, but for n
or distributing our own fork.
"""
-from invoke.vendor.six import text_type
+try:
+ from invoke.vendor.six import text_type
+except ImportError:
+ from six import text_type
from semantic_version import Version
Index: invocations-1.4.0/invocations/testing.py
===================================================================
--- invocations-1.4.0.orig/invocations/testing.py
+++ invocations-1.4.0/invocations/testing.py
@@ -1,8 +1,12 @@
import sys
import time
from collections import defaultdict
-from invoke.vendor.six import iteritems
-from invoke.vendor.six.moves import range
+try:
+ from invoke.vendor.six import iteritems
+ from invoke.vendor.six.moves import range
+except ImportError:
+ from six import iteritems
+ from six.moves import range
from invoke import task
from tqdm import tqdm
++++++ invocations-py3.patch ++++++
Index: invocations-1.4.0/tests/autodoc/base.py
===================================================================
--- invocations-1.4.0.orig/tests/autodoc/base.py
+++ invocations-1.4.0/tests/autodoc/base.py
@@ -1,4 +1,5 @@
from os.path import join, dirname
+import codecs
import re
import shutil
@@ -28,7 +29,7 @@ class autodoc_:
def setup_class(self):
# Build once, introspect many...for now
self.build_dir = _build()
- with open(join(self.build_dir, "api.html")) as fd:
+ with codecs.open(join(self.build_dir, "api.html"), 'r',
encoding='utf-8') as fd:
self.api_docs = fd.read()
@classmethod