15
0

Accepting request 1036859 from home:jayvdb:branches:devel:languages:python

- Update to v1.0.1

OBS-URL: https://build.opensuse.org/request/show/1036859
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fake-useragent?expand=0&rev=6
This commit is contained in:
2022-11-20 18:42:14 +00:00
committed by Git OBS Bridge
parent 527d1b3b59
commit f41bbd4a7f
4 changed files with 37 additions and 12 deletions

View File

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

View File

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

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Fri Nov 18 23:13:12 UTC 2022 - John Vandenberg <jayvdb@gmail.com>
- Update to v1.0.1
* Add importlib-metadata & importlib-resources as dependencies
* Check on specific Python version regarding the importlib resources
(python v3.10 or higher) in order to have files() working
* importlib_metadata should now also work on Python version before 3.8
* Remove obsolete MANIFEST.in file
- from v1.0.0
* Make the JSON Lines data file part of the Python package,
data is retrieved locally
* Extend the myproject.toml file with package-data support
* Remove centralized caching server implementation
* Make real unit-tests which should run reliable, fast, independent
and without Internet connection
- from v0.1.14
* Improve code quality standards using modern Python >=3.7 syntax
* Migrated to pyproject.toml build system format + syntax check
* Add additional classifiers to the toml file
* Improved tox.ini file
* Improved GitHub Actions job using pip cache
* And various small fixes
-------------------------------------------------------------------
Thu Nov 3 23:14:45 UTC 2022 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -19,19 +19,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-fake-useragent
Version: 0.1.13
Version: 1.0.1
Release: 0
License: Apache-2.0
Summary: Useragent faker package for Python
URL: https://github.com/fake-useragent/fake-useragent
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/f/fake-useragent/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 pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module importlib-resources}
BuildRequires: %{python_module pytest}
# /SECTION
Requires: python-importlib-resources
BuildArch: noarch
%python_subpackages
@@ -41,20 +45,17 @@ 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
rm pytest.ini
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# 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)'
%pytest
%files %{python_files}
%license LICENSE