From e1cb8a6542f6f3da37b8274c615d74e167aeeda24ad7b0d893d1cc87150067f2 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 13 Jul 2023 05:55:00 +0000 Subject: [PATCH] - Update to 2.2.0: * ua-parser >= 0.10.0 is required. * Added get_device(), get_os() and get_browser() instance methods to UserAgent. - Stop using greedy globs in %files. - Switch to pyproject and more recent testing macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-user-agents?expand=0&rev=12 --- python-user-agents.changes | 10 ++++++++++ python-user-agents.spec | 24 ++++++++++++------------ v2.1.0.tar.gz | 3 --- v2.2.0.tar.gz | 3 +++ 4 files changed, 25 insertions(+), 15 deletions(-) delete mode 100644 v2.1.0.tar.gz create mode 100644 v2.2.0.tar.gz diff --git a/python-user-agents.changes b/python-user-agents.changes index 4dc4332..097fe8d 100644 --- a/python-user-agents.changes +++ b/python-user-agents.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Jul 13 05:53:34 UTC 2023 - Steve Kowalik + +- Update to 2.2.0: + * ua-parser >= 0.10.0 is required. + * Added get_device(), get_os() and get_browser() instance methods + to UserAgent. +- Stop using greedy globs in %files. +- Switch to pyproject and more recent testing macros. + ------------------------------------------------------------------- Tue Mar 10 12:29:47 UTC 2020 - pgajdos@suse.com diff --git a/python-user-agents.spec b/python-user-agents.spec index c297bda..11f01a8 100644 --- a/python-user-agents.spec +++ b/python-user-agents.spec @@ -1,7 +1,7 @@ # # spec file for package python-user-agents # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,21 +16,20 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-user-agents -Version: 2.1.0 +Version: 2.2.0 Release: 0 Summary: A library to identify device capabilities (phones, tablets) License: MIT URL: https://github.com/selwin/python-user-agents Source: https://github.com/selwin/python-user-agents/archive/v%{version}.tar.gz -BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module ua-parser >= 0.8.0} +BuildRequires: %{python_module ua-parser >= 0.10.0} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-PyYAML -Requires: python-ua-parser >= 0.8.0 +Requires: python-ua-parser >= 0.10.0 BuildArch: noarch %python_subpackages @@ -43,18 +42,19 @@ strings. %setup -q %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}/%{$python_sitelib} %check -%python_expand $python -m unittest discover +%pyunittest %files %{python_files} %license LICENSE.txt -%doc README.rst -%{python_sitelib}/* +%doc README.md +%{python_sitelib}/user_agents +%{python_sitelib}/user_agents-%{version}.dist-info %changelog diff --git a/v2.1.0.tar.gz b/v2.1.0.tar.gz deleted file mode 100644 index b43493f..0000000 --- a/v2.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4af5baf1205ea80604171c1aa66ada90d21ba20005b685ab388967c1a9bfb2a3 -size 10365 diff --git a/v2.2.0.tar.gz b/v2.2.0.tar.gz new file mode 100644 index 0000000..5b5c55b --- /dev/null +++ b/v2.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25ad850fe9cfc8e0e2a8e6b054943006b33317e34a36c6c9996a2f489acff879 +size 10427