From b78372fb16a24196ae5fc3c7dbcbe5aa0dc81c9ea2f563dd4e6394518191edf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 8 Apr 2025 15:07:55 +0000 Subject: [PATCH] Accepting request 1267874 from home:bnavigator:branches:openSUSE:Factory:Staging:adi:5 - Update to 2.1.0 * Speedup ua_convert parser by @sebastian-correa in #424 * Check for dunder attributes in FakeUserAgent.getattr() and make safe_attrs = ['shape'] by default by @rjys365 in #454 - Release 2.0.0 * Finally, we successfully switched (again) to a new data source from Intoli, which allows us to have much more user-agent strings again. Thank you all for your support! * Important: Keep in mind that v2.0.0 does have some breaking changes like platform type "pc" value is now changed to "desktop" (in case you were using this). See below for all breaking changes! ## Breaking changes * OS and browser options are now case sensitive!! * Possible browser options are: ["Google", "Chrome", "Firefox", "Edge", "Opera"," Safari", "Android", "Yandex Browser", "Samsung Internet", "Opera Mobile", "Mobile Safari", "Firefox Mobile", "Firefox iOS", "Chrome Mobile", "Chrome Mobile iOS", "Mobile Safari UI/WKWebView", "Edge Mobile", "DuckDuckGo Mobile", "MiuiBrowser", "Whale", "Twitter", "Facebook", "Amazon Silk"] * Most browser strings are case-sensitive, except for some common browsers like firefox, edge, chrome, opera, safari. In these cases you will receive both mobile and non-mobile user-agent strings by default. * Platforms types (if specified) allowed options are: ["desktop", "mobile", "tablet"] (no pc anymore) * Possible OS options are now increased to the following list: ["Windows", "Linux", "Ubuntu", "Chrome OS", "Mac OS X", "Android", "iOS"]. And again case sensitive. OBS-URL: https://build.opensuse.org/request/show/1267874 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fake-useragent?expand=0&rev=25 --- fake-useragent-1.5.1.tar.gz | 3 --- fake-useragent-2.1.0.tar.gz | 3 +++ python-fake-useragent.changes | 38 +++++++++++++++++++++++++++++++++++ python-fake-useragent.spec | 12 ++++++----- 4 files changed, 48 insertions(+), 8 deletions(-) delete mode 100644 fake-useragent-1.5.1.tar.gz create mode 100644 fake-useragent-2.1.0.tar.gz diff --git a/fake-useragent-1.5.1.tar.gz b/fake-useragent-1.5.1.tar.gz deleted file mode 100644 index 3638c3d..0000000 --- a/fake-useragent-1.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:90de6bdb79ba4b0f97f9aa59c8f8bcbad8bd55e6347893c34c91b160ef829efd -size 30188 diff --git a/fake-useragent-2.1.0.tar.gz b/fake-useragent-2.1.0.tar.gz new file mode 100644 index 0000000..185f87d --- /dev/null +++ b/fake-useragent-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:086abb019202f2502f4cf58ecaa4d9b4029832a62aea0f2df5cab71a4d7849bc +size 135506 diff --git a/python-fake-useragent.changes b/python-fake-useragent.changes index cbddee6..f1a36a0 100644 --- a/python-fake-useragent.changes +++ b/python-fake-useragent.changes @@ -1,3 +1,41 @@ +------------------------------------------------------------------- +Tue Apr 8 10:31:46 UTC 2025 - Ben Greiner + +- Update to 2.1.0 + * Speedup ua_convert parser by @sebastian-correa in #424 + * Check for dunder attributes in FakeUserAgent.getattr() and + make safe_attrs = ['shape'] by default by @rjys365 in #454 +- Release 2.0.0 + * Finally, we successfully switched (again) to a new data source + from Intoli, which allows us to have much more user-agent + strings again. Thank you all for your support! + * Important: Keep in mind that v2.0.0 does have some breaking + changes like platform type "pc" value is now changed to + "desktop" (in case you were using this). See below for all + breaking changes! + ## Breaking changes + * OS and browser options are now case sensitive!! + * Possible browser options are: ["Google", "Chrome", "Firefox", + "Edge", "Opera"," Safari", "Android", "Yandex Browser", + "Samsung Internet", "Opera Mobile", "Mobile Safari", "Firefox + Mobile", "Firefox iOS", "Chrome Mobile", "Chrome Mobile iOS", + "Mobile Safari UI/WKWebView", "Edge Mobile", "DuckDuckGo + Mobile", "MiuiBrowser", "Whale", "Twitter", "Facebook", "Amazon + Silk"] + * Most browser strings are case-sensitive, except for some common + browsers like firefox, edge, chrome, opera, safari. In these + cases you will receive both mobile and non-mobile user-agent + strings by default. + * Platforms types (if specified) allowed options are: ["desktop", + "mobile", "tablet"] (no pc anymore) + * Possible OS options are now increased to the following list: + ["Windows", "Linux", "Ubuntu", "Chrome OS", "Mac OS X", + "Android", "iOS"]. And again case sensitive. + ## Improved + * min_percentage option works again! And uses the percent field + of the user-agent data + * Please read the README for more examples and options. + ------------------------------------------------------------------- Thu Sep 26 18:44:11 UTC 2024 - Guang Yee diff --git a/python-fake-useragent.spec b/python-fake-useragent.spec index 6c1a811..d3e9791 100644 --- a/python-fake-useragent.spec +++ b/python-fake-useragent.spec @@ -1,7 +1,7 @@ # # spec file for package python-fake-useragent # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,22 +18,25 @@ %{?sle15_python_module_pythons} Name: python-fake-useragent -Version: 1.5.1 +Version: 2.1.0 Release: 0 Summary: Useragent faker package for Python License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/fake-useragent/fake-useragent Source: https://github.com/fake-useragent/fake-useragent/archive/refs/tags/%{version}.tar.gz#/fake-useragent-%{version}.tar.gz +BuildRequires: %{python_module base > 3.9} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-importlib-resources +%if %{python_version_nodots} < 310 +Requires: python-importlib-resources > 6.0.0 +%endif BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module importlib-resources >= 6.0.0} +BuildRequires: %{python_module importlib-resources >= 6.0.0 if %python-base < 3.10} BuildRequires: %{python_module pytest >= 7.4.0} # /SECTION %python_subpackages @@ -61,7 +64,6 @@ rm pytest.ini %files %{python_files} %license LICENSE %doc README.md -#{python_sitelib}/fake[-_]useragent*/ %{python_sitelib}/fake_useragent %{python_sitelib}/fake_useragent-%{version}.dist-info