2019-05-20 15:17:46 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-fake-useragent
|
|
|
|
|
#
|
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
2025-04-08 15:07:55 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-05-20 15:17:46 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2021-09-15 12:09:27 +00:00
|
|
|
#
|
2019-05-20 15:17:46 +00:00
|
|
|
|
|
|
|
|
|
2024-10-28 10:16:44 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-05-20 15:17:46 +00:00
|
|
|
Name: python-fake-useragent
|
2025-07-13 12:18:56 +00:00
|
|
|
Version: 2.2.0
|
2019-05-20 15:17:46 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Useragent faker package for Python
|
2023-01-02 16:02:14 +00:00
|
|
|
License: Apache-2.0
|
2019-05-20 15:17:46 +00:00
|
|
|
Group: Development/Languages/Python
|
2023-01-02 16:02:14 +00:00
|
|
|
URL: https://github.com/fake-useragent/fake-useragent
|
2022-11-20 18:42:14 +00:00
|
|
|
Source: https://github.com/fake-useragent/fake-useragent/archive/refs/tags/%{version}.tar.gz#/fake-useragent-%{version}.tar.gz
|
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
2025-04-08 15:07:55 +00:00
|
|
|
BuildRequires: %{python_module base > 3.9}
|
2022-11-20 18:42:14 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-05-20 15:17:46 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-11-20 18:42:14 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-05-20 15:17:46 +00:00
|
|
|
BuildRequires: fdupes
|
2021-09-15 12:09:27 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
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
2025-04-08 15:07:55 +00:00
|
|
|
%if %{python_version_nodots} < 310
|
|
|
|
|
Requires: python-importlib-resources > 6.0.0
|
|
|
|
|
%endif
|
2023-01-02 16:02:14 +00:00
|
|
|
BuildArch: noarch
|
2019-05-20 15:17:46 +00:00
|
|
|
# SECTION test requirements
|
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
2025-04-08 15:07:55 +00:00
|
|
|
BuildRequires: %{python_module importlib-resources >= 6.0.0 if %python-base < 3.10}
|
2023-08-08 11:06:28 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 7.4.0}
|
2019-05-20 15:17:46 +00:00
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Useragent faker with real world database.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n fake-useragent-%{version}
|
2022-11-20 18:42:14 +00:00
|
|
|
rm pytest.ini
|
2019-05-20 15:17:46 +00:00
|
|
|
|
|
|
|
|
%build
|
2022-11-20 18:42:14 +00:00
|
|
|
%pyproject_wheel
|
2019-05-20 15:17:46 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-11-20 18:42:14 +00:00
|
|
|
%pyproject_install
|
2019-05-20 15:17:46 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2024-10-28 10:16:44 +00:00
|
|
|
# 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)"
|
2019-05-20 15:17:46 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
2022-11-04 14:49:05 +00:00
|
|
|
%doc README.md
|
2024-10-28 10:18:58 +00:00
|
|
|
%{python_sitelib}/fake_useragent
|
|
|
|
|
%{python_sitelib}/fake_useragent-%{version}.dist-info
|
2019-05-20 15:17:46 +00:00
|
|
|
|
|
|
|
|
%changelog
|