forked from pool/python-fake-useragent
Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| af1661c473 | |||
| f048e2f5e2 | |||
| ccfa559760 | |||
| 90c27132d4 | |||
| 07f8c612f6 | |||
| 2388705411 | |||
| 6792972898 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:90de6bdb79ba4b0f97f9aa59c8f8bcbad8bd55e6347893c34c91b160ef829efd
|
|
||||||
size 30188
|
|
||||||
3
fake-useragent-2.2.0.tar.gz
Normal file
3
fake-useragent-2.2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c6a0cba8c43e5f55029433535253be2655f7746085a2f2a232e2fe657a95bd11
|
||||||
|
size 171393
|
||||||
@@ -1,3 +1,57 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 13 12:18:35 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2.2.0:
|
||||||
|
* Running pyproject-fmt
|
||||||
|
* Update bundled user agents file
|
||||||
|
* Add SPDX license identifier
|
||||||
|
* Add Python 3.13 to test matrix
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 8 10:31:46 UTC 2025 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- 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 <gyee@suse.com>
|
||||||
|
|
||||||
|
- Enable sle15_python_module_pythons.
|
||||||
|
- Disable test_utils_load_pkg_resource_fallback test case because
|
||||||
|
of pkg_resource and setuptools incompatibility.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 18 10:39:45 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Mon Mar 18 10:39:45 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-fake-useragent
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,25 +16,27 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?sle15_python_module_pythons}
|
||||||
%define skip_python2 1
|
|
||||||
Name: python-fake-useragent
|
Name: python-fake-useragent
|
||||||
Version: 1.5.1
|
Version: 2.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Useragent faker package for Python
|
Summary: Useragent faker package for Python
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/fake-useragent/fake-useragent
|
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
|
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 pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-importlib-resources
|
%if %{python_version_nodots} < 310
|
||||||
|
Requires: python-importlib-resources > 6.0.0
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# 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}
|
BuildRequires: %{python_module pytest >= 7.4.0}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -54,11 +56,15 @@ rm pytest.ini
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
# NOTE: disable "test_utils_load_pkg_resource_fallback" test case as it is
|
||||||
|
# testing using pkg_resource, which conflicts with setuptools.
|
||||||
|
# See https://github.com/pypa/setuptools/issues/4487
|
||||||
|
%pytest -k "(not test_utils_load_pkg_resource_fallback)"
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitelib}/fake[-_]useragent*/
|
%{python_sitelib}/fake_useragent
|
||||||
|
%{python_sitelib}/fake_useragent-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user