1
0

Compare commits

6 Commits

Author SHA256 Message Date
6368b65077 Accepting request 1330654 from devel:languages:python
- Grab the source tarball for uap-core, so we can build and install
  ua-parser-builtins.
- Run the testsuite.

OBS-URL: https://build.opensuse.org/request/show/1330654
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ua-parser?expand=0&rev=8
2026-02-03 20:33:23 +00:00
073f6fcd31 - Grab the source tarball for uap-core, so we can build and install
ua-parser-builtins.
- Run the testsuite.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ua-parser?expand=0&rev=19
2026-02-03 01:25:55 +00:00
c8627a4593 Accepting request 1330011 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1330011
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ua-parser?expand=0&rev=7
2026-01-30 17:28:59 +00:00
a494f68d14 Update to version 1.0.1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ua-parser?expand=0&rev=17
2026-01-30 11:48:37 +00:00
f3ccc14349 Accepting request 1284976 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1284976
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ua-parser?expand=0&rev=6
2025-06-12 13:53:29 +00:00
0406d29fdc - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ua-parser?expand=0&rev=15
2025-06-12 05:09:28 +00:00
5 changed files with 54 additions and 12 deletions

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Tue Feb 3 01:25:21 UTC 2026 - Steve Kowalik <steven.kowalik@suse.com>
- Grab the source tarball for uap-core, so we can build and install
ua-parser-builtins.
- Run the testsuite.
-------------------------------------------------------------------
Thu Jan 29 19:33:40 UTC 2026 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
- Update to version 1.0.1:
* Fix memoisation of lazy parser
-------------------------------------------------------------------
Thu Jun 12 05:01:34 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Fri Dec 8 12:28:05 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-ua-parser
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +18,21 @@
%{?sle15_python_module_pythons}
Name: python-ua-parser
Version: 0.18.0
Version: 1.0.1
Release: 0
Summary: Python Implementation of UA Parser
License: Apache-2.0
URL: https://github.com/ua-parser/uap-python
Source: https://files.pythonhosted.org/packages/source/u/ua-parser/ua-parser-%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/source/u/ua-parser/ua_parser-%{version}.tar.gz
# Current submodule commit for uap-core, required to build ua-parser-builtins
Source1: https://github.com/ua-parser/uap-core/archive/d668d6c6157db7737edfc0280adc6610c1b88029.tar.gz#/uap-core.tar.gz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module versioningit}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -36,21 +43,35 @@ A python implementation of the UA Parser (https://github.com/ua-parser, formerly
https://github.com/tobie/ua-parser)
%prep
%setup -q -n ua-parser-%{version}
%autosetup -n ua_parser-%{version}
mkdir uap-core
tar zx --strip-components=1 -C uap-core -f %{SOURCE1}
echo "Version: %{version}" > uap-core/PKG-INFO
pushd ua-parser-builtins
ln -s ../uap-core .
popd
%build
%python_build
%pyproject_wheel
# Also build the builtins
pushd ua-parser-builtins
%pyproject_wheel
popd
%install
%python_install
%pyproject_install
pushd ua-parser-builtins
%pyproject_install
popd
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
%check
# Tests lack fixtures in the released tarball
#%%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" $python ua_parser/user_agent_parser_test.py
%pytest
%files %{python_files}
%{python_sitelib}/ua_parser
%{python_sitelib}/ua_parser-%{version}*-info
%{python_sitelib}/ua_parser_builtins
%{python_sitelib}/ua_parser-%{version}.dist-info
%{python_sitelib}/ua_parser_builtins-%{version}.dist-info
%changelog

View File

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

3
ua_parser-1.0.1.tar.gz Normal file
View File

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

3
uap-core.tar.gz Normal file
View File

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