15
0

Accepting request 1033547 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1033547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fake-useragent?expand=0&rev=3
This commit is contained in:
2022-11-04 16:38:13 +00:00
committed by Git OBS Bridge
4 changed files with 32 additions and 13 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:da6fa7db08296c101c077d02248cbea964eff3be74463a4e4ec1061a29e0bf58
size 20989

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1205ec0f65bcadbba64c8ace4fd9cb4ef3ac8ee922015e979a955c7bb88b7d72
size 18584

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Thu Nov 3 23:14:45 UTC 2022 - John Vandenberg <jayvdb@gmail.com>
- 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 <toddrme2178@gmail.com>
- Initial version
- Initial version for v0.1.11

View File

@@ -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