Hello community,
here is the log from the commit of package python3-python-mimeparse for
openSUSE:Factory checked in at 2016-05-25 21:27:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-python-mimeparse (Old)
and /work/SRC/openSUSE:Factory/.python3-python-mimeparse.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-python-mimeparse"
Changes:
--------
---
/work/SRC/openSUSE:Factory/python3-python-mimeparse/python3-python-mimeparse.changes
2016-02-08 09:47:30.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python3-python-mimeparse.new/python3-python-mimeparse.changes
2016-05-25 21:27:02.000000000 +0200
@@ -1,0 +2,14 @@
+Mon May 16 15:41:01 UTC 2016 - [email protected]
+
+- update to version 1.5.2:
+ * make sure mimeparse gracefully handles an invalid mime type of the
+ form "text/extra/part"
+ * Spelling fix (#15)
+
+-------------------------------------------------------------------
+Sun May 8 07:05:27 UTC 2016 - [email protected]
+
+- specfile:
+ * updated source url to files.pythonhosted.org
+
+-------------------------------------------------------------------
Old:
----
python-mimeparse-1.5.1.tar.gz
New:
----
python-mimeparse-1.5.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-python-mimeparse.spec ++++++
--- /var/tmp/diff_new_pack.AtEBjg/_old 2016-05-25 21:27:04.000000000 +0200
+++ /var/tmp/diff_new_pack.AtEBjg/_new 2016-05-25 21:27:04.000000000 +0200
@@ -17,13 +17,13 @@
Name: python3-python-mimeparse
-Version: 1.5.1
+Version: 1.5.2
Release: 0
Url: https://github.com/dbtsai/python-mimeparse
Summary: Basic functions for parsing and matching mime-type names
License: MIT
Group: Development/Languages/Python
-Source:
https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-%{version}.tar.gz
+Source:
https://files.pythonhosted.org/packages/source/p/python-mimeparse/python-mimeparse-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3-devel
BuildRequires: python3-setuptools
++++++ python-mimeparse-1.5.1.tar.gz -> python-mimeparse-1.5.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-mimeparse-1.5.1/PKG-INFO
new/python-mimeparse-1.5.2/PKG-INFO
--- old/python-mimeparse-1.5.1/PKG-INFO 2016-02-02 08:59:20.000000000 +0100
+++ new/python-mimeparse-1.5.2/PKG-INFO 2016-04-26 19:55:46.000000000 +0200
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: python-mimeparse
-Version: 1.5.1
+Version: 1.5.2
Summary: A module provides basic functions for parsing mime-type names and
matching them against a list of media-ranges.
Home-page: https://github.com/dbtsai/python-mimeparse
Author: DB Tsai
Author-email: [email protected]
License: UNKNOWN
-Download-URL:
http://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-1.5.1.tar.gz
+Download-URL:
http://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-1.5.2.tar.gz
Description: # Travis CI Build Status [](https://travis-ci.org/dbtsai/python-mimeparse)
This module provides basic functions for handling mime-types. It can
handle
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-mimeparse-1.5.1/mimeparse.py
new/python-mimeparse-1.5.2/mimeparse.py
--- old/python-mimeparse-1.5.1/mimeparse.py 2016-02-02 08:58:56.000000000
+0100
+++ new/python-mimeparse-1.5.2/mimeparse.py 2016-04-26 18:55:28.000000000
+0200
@@ -19,7 +19,7 @@
"""
from functools import reduce
-__version__ = '1.5.1'
+__version__ = '1.5.2'
__author__ = 'Joe Gregorio'
__email__ = '[email protected]'
__license__ = 'MIT License'
@@ -50,10 +50,11 @@
if full_type == '*':
full_type = '*/*'
- if '/' not in full_type:
+ type_parts = full_type.split('/') if '/' in full_type else None
+ if not type_parts or len(type_parts) > 2:
raise MimeTypeParseException("Can't parse type
\"{}\"".format(full_type))
- (type, subtype) = full_type.split('/')
+ (type, subtype) = type_parts
return (type.strip(), subtype.strip(), params)
@@ -120,7 +121,7 @@
Find the best match for a given mime-type against a list of media_ranges
that have already been parsed by parse_media_range(). Returns the 'q'
quality parameter of the best match, 0 if no match was found. This function
- bahaves the same as quality() except that 'parsed_ranges' must be a list of
+ behaves the same as quality() except that 'parsed_ranges' must be a list of
parsed media ranges. """
return quality_and_fitness_parsed(mime_type, parsed_ranges)[0]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-mimeparse-1.5.1/python_mimeparse.egg-info/PKG-INFO
new/python-mimeparse-1.5.2/python_mimeparse.egg-info/PKG-INFO
--- old/python-mimeparse-1.5.1/python_mimeparse.egg-info/PKG-INFO
2016-02-02 08:59:20.000000000 +0100
+++ new/python-mimeparse-1.5.2/python_mimeparse.egg-info/PKG-INFO
2016-04-26 19:55:46.000000000 +0200
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: python-mimeparse
-Version: 1.5.1
+Version: 1.5.2
Summary: A module provides basic functions for parsing mime-type names and
matching them against a list of media-ranges.
Home-page: https://github.com/dbtsai/python-mimeparse
Author: DB Tsai
Author-email: [email protected]
License: UNKNOWN
-Download-URL:
http://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-1.5.1.tar.gz
+Download-URL:
http://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-1.5.2.tar.gz
Description: # Travis CI Build Status [](https://travis-ci.org/dbtsai/python-mimeparse)
This module provides basic functions for handling mime-types. It can
handle
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-mimeparse-1.5.1/testdata.json
new/python-mimeparse-1.5.2/testdata.json
--- old/python-mimeparse-1.5.1/testdata.json 2016-02-02 08:58:34.000000000
+0100
+++ new/python-mimeparse-1.5.2/testdata.json 2016-04-26 18:54:58.000000000
+0200
@@ -41,6 +41,7 @@
"parse_mime_type": [
["application/xhtml;q=0.5", ["application", "xhtml", {"q": "0.5"}]],
["application/xhtml;q=0.5;ver=1.2", ["application", "xhtml", {"q": "0.5",
"ver": "1.2"}]],
- ["text", null]
+ ["text", null],
+ ["text/something/invalid", null]
]
}