Hello community,
here is the log from the commit of package python-libarchive for
openSUSE:Factory checked in at 2020-08-13 10:16:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libarchive (Old)
and /work/SRC/openSUSE:Factory/.python-libarchive.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-libarchive"
Thu Aug 13 10:16:20 2020 rev:6 rq:826001 version:0.4.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-libarchive/python-libarchive.changes
2020-03-04 09:44:37.838079733 +0100
+++
/work/SRC/openSUSE:Factory/.python-libarchive.new.3399/python-libarchive.changes
2020-08-13 10:18:20.790761691 +0200
@@ -1,0 +2,12 @@
+Wed Aug 12 09:31:58 UTC 2020 - [email protected]
+
+- run test_read_symlinks but make README.rst to be a symlink to
+ libarchive/resources/README.rst
+
+-------------------------------------------------------------------
+Thu Jul 30 15:43:52 UTC 2020 - Matej Cepl <[email protected]>
+
+- Add denose_tests.patch removing the need for nose
+ (gh#dsoprea/PyEasyArchive#44).
+
+-------------------------------------------------------------------
New:
----
denose_tests.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-libarchive.spec ++++++
--- /var/tmp/diff_new_pack.2TQ0uB/_old 2020-08-13 10:18:21.538761998 +0200
+++ /var/tmp/diff_new_pack.2TQ0uB/_new 2020-08-13 10:18:21.542761999 +0200
@@ -25,6 +25,9 @@
License: GPL-2.0-only
URL: https://github.com/dsoprea/PyEasyArchive
Source:
https://files.pythonhosted.org/packages/source/l/libarchive/libarchive-%{version}.tar.gz
+# PATCH-FEATURE-UPSTREAM denose_tests.patch gh#dsoprea/PyEasyArchive#44
[email protected]
+# Removes the need for nose test requirement
+Patch0: denose_tests.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: libarchive-devel
@@ -33,7 +36,7 @@
Conflicts: python-libarchive-c
BuildArch: noarch
# SECTION test requirements
-BuildRequires: %{python_module nose}
+BuildRequires: %{python_module pytest}
# /SECTION
%ifpython2
Conflicts: %{oldpython}-libarchive-c
@@ -46,14 +49,16 @@
%prep
%setup -q -n libarchive-%{version}
+%autopatch -p1
%build
%python_build
%check
-# https://github.com/dsoprea/PyEasyArchive/issues/33
export LANG=en_US.UTF8
-%python_expand nosetests-%{$python_bin_suffix} -v -e test_read_symlinks
+# test_read_symlinks expects README.rst to be symlink
+ln -sf libarchive/resources/README.rst README.rst
+%pytest
%install
%python_install
++++++ denose_tests.patch ++++++
--- /dev/null
+++ b/tests/__init__.py
@@ -0,0 +1 @@
+# This file intentionally left blank.
--- a/tests/adapters/test_archive_read.py
+++ b/tests/adapters/test_archive_read.py
@@ -86,4 +86,4 @@ class TestArchiveRead(unittest.TestCase)
u'README.rst': u'libarchive/resources/README.rst',
}
- self.assertEquals(index, expected)
+ self.assertEqual(index, expected)
--- a/tests/adapters/test_archive_write.py
+++ b/tests/adapters/test_archive_write.py
@@ -51,7 +51,7 @@ class TestArchiveWrite(unittest.TestCase
'libarchive/resources/requirements.txt',
]
- self.assertEquals(actual, expected)
+ self.assertEqual(actual, expected)
def test_create_file__unicode(self):
with libarchive.test_support.chdir(_APP_PATH):
@@ -101,4 +101,4 @@ class TestArchiveWrite(unittest.TestCase
unicode_test_filepath.lstrip(os.sep),
]
- self.assertEquals(actual, expected)
+ self.assertEqual(actual, expected)
--- a/tests/types/test_archive_entry.py
+++ b/tests/types/test_archive_entry.py
@@ -29,7 +29,7 @@ class TestArchiveEntry(unittest.TestCase
libarchive.constants.archive_entry.AE_IFBLK | \
libarchive.constants.archive_entry.AE_IFMT
- self.assertEquals(n, expected_n)
+ self.assertEqual(n, expected_n)
recovered = libarchive.types.archive_entry.int_to_ef(n)
@@ -43,4 +43,4 @@ class TestArchiveEntry(unittest.TestCase
IFDIR=True,
IFIFO=True)
- self.assertEquals(recovered, expected_ef)
+ self.assertEqual(recovered, expected_ef)