Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 629991a

Browse filesBrowse files
authored
bump ua-parser to 0.9.0 (selwin#97)
* bump ua-parser to 0.9.0 * fix unit test * fix unit test * fix travis * add support for py34
1 parent a4c59e1 commit 629991a
Copy full SHA for 629991a

File tree

Expand file treeCollapse file tree

4 files changed

+8
-5
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+8
-5
lines changed

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ python:
1010
install:
1111
- "python setup.py install"
1212
- "pip install -U pip"
13-
- "pip install pyyaml ua-parser"
13+
- "pip install -r requirements.txt"
1414
script:
1515
- python -m unittest discover

‎requirements.txt

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ua-parser==0.9.0
2+
PyYAML==5.3; python_version != '3.4'
3+
PyYAML==5.2; python_version == '3.4' # the last version support py34

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
zip_safe=False,
1515
include_package_data=True,
1616
package_data={'': ['README.rst']},
17-
install_requires=['ua-parser>=0.8.0'],
17+
install_requires=['ua-parser>=0.9.0'],
1818
classifiers=[
1919
'Development Status :: 5 - Production/Stable',
2020
'Environment :: Web Environment',

‎user_agents/devices.json

Copy file name to clipboardExpand all lines: user_agents/devices.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
"is_mobile": true,
274274
"is_pc": false,
275275
"is_tablet": false,
276-
"is_touch_capable": false,
276+
"is_touch_capable": true,
277277
"ua_string": "Mozilla/5.0 (iPhone; U; CPU iPhone OS) (compatible; Googlebot-Mobile/2.1; http://www.google.com/bot.html)",
278278
"str": "Spider / Other / Mobile Safari"
279279
},
@@ -297,10 +297,10 @@
297297
},
298298
"windows_ce": {
299299
"is_bot": false,
300-
"is_mobile": true,
300+
"is_mobile": false,
301301
"is_pc": false,
302302
"is_tablet": false,
303-
"is_touch_capable": true,
303+
"is_touch_capable": false,
304304
"ua_string": "SAMSUNG-SGH-I617/UCHJ1 Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11)",
305305
"str": "Samsung SGH-I617 / Windows CE / IE Mobile 7.11"
306306
},

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.