14
0

- 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
This commit is contained in:
2023-07-13 05:55:00 +00:00
committed by Git OBS Bridge
parent 9e30f705e1
commit e1cb8a6542
4 changed files with 25 additions and 15 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Jul 13 05:53:34 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- 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

View File

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

View File

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

3
v2.2.0.tar.gz Normal file
View File

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