From f41bbd4a7f794a49b532458d091abb38db69bef99574e8f8bf2d51982d38b232 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 20 Nov 2022 18:42:14 +0000 Subject: [PATCH] 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 --- fake-useragent-0.1.13.tar.gz | 3 --- fake-useragent-1.0.1.tar.gz | 3 +++ python-fake-useragent.changes | 24 ++++++++++++++++++++++++ python-fake-useragent.spec | 19 ++++++++++--------- 4 files changed, 37 insertions(+), 12 deletions(-) delete mode 100644 fake-useragent-0.1.13.tar.gz create mode 100644 fake-useragent-1.0.1.tar.gz diff --git a/fake-useragent-0.1.13.tar.gz b/fake-useragent-0.1.13.tar.gz deleted file mode 100644 index 2a88296..0000000 --- a/fake-useragent-0.1.13.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1205ec0f65bcadbba64c8ace4fd9cb4ef3ac8ee922015e979a955c7bb88b7d72 -size 18584 diff --git a/fake-useragent-1.0.1.tar.gz b/fake-useragent-1.0.1.tar.gz new file mode 100644 index 0000000..9da1f51 --- /dev/null +++ b/fake-useragent-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec3189d46ccf72882d4cd9cd196e52378779f95e6f4db68ccfe18445c8e809ff +size 79318 diff --git a/python-fake-useragent.changes b/python-fake-useragent.changes index 3b5b77c..70731e7 100644 --- a/python-fake-useragent.changes +++ b/python-fake-useragent.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Fri Nov 18 23:13:12 UTC 2022 - John Vandenberg + +- 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 diff --git a/python-fake-useragent.spec b/python-fake-useragent.spec index 4d2b077..56c0c8b 100644 --- a/python-fake-useragent.spec +++ b/python-fake-useragent.spec @@ -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