Hello community, here is the log from the commit of package python-user-agents for openSUSE:Factory checked in at 2020-03-10 15:03:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-user-agents (Old) and /work/SRC/openSUSE:Factory/.python-user-agents.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-user-agents" Tue Mar 10 15:03:18 2020 rev:5 rq:783387 version:2.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-user-agents/python-user-agents.changes 2019-10-16 09:16:57.519208811 +0200 +++ /work/SRC/openSUSE:Factory/.python-user-agents.new.26092/python-user-agents.changes 2020-03-10 15:03:21.257115634 +0100 @@ -1,0 +2,6 @@ +Tue Mar 10 12:29:47 UTC 2020 - [email protected] + +- version update to 2.1.0 + * no upstream changelog found + +------------------------------------------------------------------- Old: ---- v2.0.tar.gz New: ---- v2.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-user-agents.spec ++++++ --- /var/tmp/diff_new_pack.Yr7XVp/_old 2020-03-10 15:03:23.245116636 +0100 +++ /var/tmp/diff_new_pack.Yr7XVp/_new 2020-03-10 15:03:23.249116638 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-user-agents # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-user-agents -Version: 2.0 +Version: 2.1.0 Release: 0 Summary: A library to identify device capabilities (phones, tablets) License: MIT @@ -50,7 +50,7 @@ %python_expand %fdupes %{buildroot}/%{$python_sitelib} %check -%python_expand $python -m unittest discover ||: +%python_expand $python -m unittest discover %files %{python_files} %license LICENSE.txt ++++++ v2.0.tar.gz -> v2.1.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-user-agents-2.0/.travis.yml new/python-user-agents-2.1.0/.travis.yml --- old/python-user-agents-2.0/.travis.yml 2019-04-07 12:47:25.000000000 +0200 +++ new/python-user-agents-2.1.0/.travis.yml 2020-02-08 02:53:42.000000000 +0100 @@ -7,9 +7,10 @@ - "3.5" - "3.6" - "3.7" + - "3.8" install: - "python setup.py install" - "pip install -U pip" - - "pip install pyyaml ua-parser" + - "pip install -r requirements.txt" script: - python -m unittest discover diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-user-agents-2.0/README.rst new/python-user-agents-2.1.0/README.rst --- old/python-user-agents-2.0/README.rst 2019-04-07 12:47:25.000000000 +0200 +++ new/python-user-agents-2.1.0/README.rst 2020-02-08 02:53:42.000000000 +0100 @@ -10,7 +10,7 @@ - User agent has touch capabilities (has touch screen) ``user_agents`` relies on the excellent -`ua-parser <https://github.com/tobie/ua-parser>`_ to do the actual +`ua-parser <https://github.com/ua-parser/uap-python>`_ to do the actual parsing of the raw user agent string. Installation @@ -154,6 +154,13 @@ Changelog --------- +Version 2.1 (2020-02-08) +~~~~~~~~~~~~~~~~~~~~~~~~ + +- ``python-user-agents`` now require ``ua-parser>=0.9.0``. Thanks @jnozsc! +- Properly detect Chrome Mobile browser families. Thanks @jnozsc! + + Version 2.0 (2019-04-07) ~~~~~~~~~~~~~~~~~~~~~~~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-user-agents-2.0/requirements.txt new/python-user-agents-2.1.0/requirements.txt --- old/python-user-agents-2.0/requirements.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/python-user-agents-2.1.0/requirements.txt 2020-02-08 02:53:42.000000000 +0100 @@ -0,0 +1,3 @@ +ua-parser==0.9.0 +PyYAML==5.3; python_version != '3.4' +PyYAML==5.2; python_version == '3.4' # the last version support py34 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-user-agents-2.0/setup.py new/python-user-agents-2.1.0/setup.py --- old/python-user-agents-2.0/setup.py 2019-04-07 12:47:25.000000000 +0200 +++ new/python-user-agents-2.1.0/setup.py 2020-02-08 02:53:42.000000000 +0100 @@ -3,7 +3,7 @@ setup( name='user-agents', - version='2.0', + version='2.1', author='Selwin Ong', author_email='[email protected]', packages=['user_agents'], @@ -14,7 +14,7 @@ zip_safe=False, include_package_data=True, package_data={'': ['README.rst']}, - install_requires=['ua-parser>=0.8.0'], + install_requires=['ua-parser>=0.9.0'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', @@ -25,8 +25,11 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Software Development :: Libraries :: Python Modules', ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-user-agents-2.0/user_agents/__init__.py new/python-user-agents-2.1.0/user_agents/__init__.py --- old/python-user-agents-2.0/user_agents/__init__.py 2019-04-07 12:47:25.000000000 +0200 +++ new/python-user-agents-2.1.0/user_agents/__init__.py 2020-02-08 02:53:42.000000000 +0100 @@ -1,3 +1,3 @@ -VERSION = (2, 0, 0) +VERSION = (2, 1, 0) from .parsers import parse diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-user-agents-2.0/user_agents/devices.json new/python-user-agents-2.1.0/user_agents/devices.json --- old/python-user-agents-2.0/user_agents/devices.json 2019-04-07 12:47:25.000000000 +0200 +++ new/python-user-agents-2.1.0/user_agents/devices.json 2020-02-08 02:53:42.000000000 +0100 @@ -273,7 +273,7 @@ "is_mobile": true, "is_pc": false, "is_tablet": false, - "is_touch_capable": false, + "is_touch_capable": true, "ua_string": "Mozilla/5.0 (iPhone; U; CPU iPhone OS) (compatible; Googlebot-Mobile/2.1; http://www.google.com/bot.html)", "str": "Spider / Other / Mobile Safari" }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-user-agents-2.0/user_agents/parsers.py new/python-user-agents-2.1.0/user_agents/parsers.py --- old/python-user-agents-2.0/user_agents/parsers.py 2019-04-07 12:47:25.000000000 +0200 +++ new/python-user-agents-2.1.0/user_agents/parsers.py 2020-02-08 02:53:42.000000000 +0100 @@ -30,8 +30,12 @@ ) MOBILE_BROWSER_FAMILIES = ( + 'IE Mobile', 'Opera Mobile', 'Opera Mini', + 'Chrome Mobile', + 'Chrome Mobile WebView', + 'Chrome Mobile iOS', ) TABLET_DEVICE_FAMILIES = ( @@ -215,7 +219,7 @@ if self.device.family in TOUCH_CAPABLE_DEVICE_FAMILIES: return True if self.os.family == 'Windows': - if self.os.version_string.startswith('RT'): + if self.os.version_string.startswith(('RT', 'CE')): return True if self.os.version_string.startswith('8') and 'Touch' in self.ua_string: return True
