Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-fake-useragent for
openSUSE:Factory checked in at 2022-11-04 17:38:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-fake-useragent (Old)
and /work/SRC/openSUSE:Factory/.python-fake-useragent.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fake-useragent"
Fri Nov 4 17:38:13 2022 rev:3 rq:1033547 version:0.1.13
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-fake-useragent/python-fake-useragent.changes
2021-09-15 22:51:49.418938307 +0200
+++
/work/SRC/openSUSE:Factory/.python-fake-useragent.new.2275/python-fake-useragent.changes
2022-11-04 17:42:04.083036835 +0100
@@ -1,0 +2,16 @@
+Thu Nov 3 23:14:45 UTC 2022 - John Vandenberg <[email protected]>
+
+- Re-activate test suite
+- Update to v0.1.13
+ * Implement browsers argument, allowing you to override the browser
+ names you want to use
+ * Fix browser listing of Internet Explorer and Edge
+ * Don't depend on w3schools.com anymore
+ * Clean-up data (temp) file format
+ * Update fallback cache server URL / use JSON Lines as file format
+ * Move to GitHub Actions instead of Travis
+ * Using black Python formatter in favour of Flake
+- from v0.1.12
+ * Project moved to https://github.com/fake-useragent/fake-useragent
+
+-------------------------------------------------------------------
@@ -9 +25 @@
-- Initial version
+- Initial version for v0.1.11
Old:
----
fake-useragent-0.1.11.tar.gz
New:
----
fake-useragent-0.1.13.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-fake-useragent.spec ++++++
--- /var/tmp/diff_new_pack.oL0zF2/_old 2022-11-04 17:42:04.559039322 +0100
+++ /var/tmp/diff_new_pack.oL0zF2/_new 2022-11-04 17:42:04.567039364 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-fake-useragent
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,20 +17,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
Name: python-fake-useragent
-Version: 0.1.11
+Version: 0.1.13
Release: 0
License: Apache-2.0
Summary: Useragent faker package for Python
-URL: https://github.com/hellysmile/fake-useragent
+URL: https://github.com/fake-useragent/fake-useragent
Group: Development/Languages/Python
-Source:
https://github.com/hellysmile/fake-useragent/archive/%{version}.tar.gz#/fake-useragent-%{version}.tar.gz
+Source:
https://files.pythonhosted.org/packages/source/f/fake-useragent/fake-useragent-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
-BuildRequires: %{python_module pytest-cov}
# /SECTION
BuildArch: noarch
@@ -41,6 +41,8 @@
%prep
%setup -q -n fake-useragent-%{version}
+# https://github.com/fake-useragent/fake-useragent/issues/140
+sed -i 's/import mock/import unittest.mock as mock/' tests/*.py
%build
%python_build
@@ -50,12 +52,13 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-# online tests
-#%%pytest
+# Many tests depend on network
+# https://github.com/fake-useragent/fake-useragent/issues/139
+%pytest -k 'not (test_fake_user_agent or update or cache_server or
test_utils_get or test_utils_load or test_fake_default_path or
test_fake_safe_attrs)'
%files %{python_files}
%license LICENSE
-%doc AUTHORS README.rst
-%{python_sitelib}/*
+%doc README.md
+%{python_sitelib}/fake[-_]useragent*/
%changelog
++++++ fake-useragent-0.1.11.tar.gz -> fake-useragent-0.1.13.tar.gz ++++++
++++ 2988 lines of diff (skipped)