diff --git a/fake-useragent-0.1.11.tar.gz b/fake-useragent-0.1.11.tar.gz deleted file mode 100644 index c7d5c35..0000000 --- a/fake-useragent-0.1.11.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:da6fa7db08296c101c077d02248cbea964eff3be74463a4e4ec1061a29e0bf58 -size 20989 diff --git a/fake-useragent-0.1.13.tar.gz b/fake-useragent-0.1.13.tar.gz new file mode 100644 index 0000000..2a88296 --- /dev/null +++ b/fake-useragent-0.1.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1205ec0f65bcadbba64c8ace4fd9cb4ef3ac8ee922015e979a955c7bb88b7d72 +size 18584 diff --git a/python-fake-useragent.changes b/python-fake-useragent.changes index e12e59b..3b5b77c 100644 --- a/python-fake-useragent.changes +++ b/python-fake-useragent.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Thu Nov 3 23:14:45 UTC 2022 - John Vandenberg + +- 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 + ------------------------------------------------------------------- Wed Sep 15 10:31:22 UTC 2021 - pgajdos@suse.com @@ -6,4 +22,4 @@ Wed Sep 15 10:31:22 UTC 2021 - pgajdos@suse.com ------------------------------------------------------------------- Thu Apr 4 00:40:32 UTC 2019 - Todd R -- Initial version +- Initial version for v0.1.11 diff --git a/python-fake-useragent.spec b/python-fake-useragent.spec index 113b9e7..4d2b077 100644 --- a/python-fake-useragent.spec +++ b/python-fake-useragent.spec @@ -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 @@ Useragent faker with real world database. %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 @@ Useragent faker with real world database. %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