Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-PyChromecast for
openSUSE:Factory checked in at 2021-01-27 18:58:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PyChromecast (Old)
and /work/SRC/openSUSE:Factory/.python-PyChromecast.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PyChromecast"
Wed Jan 27 18:58:07 2021 rev:17 rq:867026 version:7.7.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PyChromecast/python-PyChromecast.changes
2021-01-04 19:08:17.335323458 +0100
+++
/work/SRC/openSUSE:Factory/.python-PyChromecast.new.28504/python-PyChromecast.changes
2021-01-27 18:58:54.340495665 +0100
@@ -1,0 +2,8 @@
+Wed Jan 27 03:47:43 UTC 2021 - Steve Kowalik <[email protected]>
+
+- Update to 7.7.2:
+ * Use urllib.request instead of requests.
+- Drop python-requests from Requires.
+- Correct egg-info filename to build in the multi-python new world order.
+
+-------------------------------------------------------------------
Old:
----
PyChromecast-7.7.1.tar.gz
New:
----
PyChromecast-7.7.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-PyChromecast.spec ++++++
--- /var/tmp/diff_new_pack.AHHbeB/_old 2021-01-27 18:58:54.952496612 +0100
+++ /var/tmp/diff_new_pack.AHHbeB/_new 2021-01-27 18:58:54.956496618 +0100
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-PyChromecast
-Version: 7.7.1
+Version: 7.7.2
Release: 0
Summary: Python module to talk to Google Chromecast
License: MIT
@@ -30,7 +30,6 @@
BuildRequires: python-rpm-macros
Requires: python-casttube >= 0.2.0
Requires: python-protobuf >= 3.0.0
-Requires: python-requests >= 2.0
Requires: python-zeroconf >= 0.25.1
BuildArch: noarch
%python_subpackages
@@ -60,6 +59,6 @@
%license LICENSE
%doc README.rst
%{python_sitelib}/pychromecast
-%{python_sitelib}/PyChromecast-%{version}-py%{py3_ver}.egg-info
+%{python_sitelib}/PyChromecast-%{version}-*.egg-info
%changelog
++++++ PyChromecast-7.7.1.tar.gz -> PyChromecast-7.7.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyChromecast-7.7.1/PKG-INFO
new/PyChromecast-7.7.2/PKG-INFO
--- old/PyChromecast-7.7.1/PKG-INFO 2020-12-23 15:59:09.845953000 +0100
+++ new/PyChromecast-7.7.2/PKG-INFO 2021-01-05 15:46:19.074118900 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: PyChromecast
-Version: 7.7.1
+Version: 7.7.2
Summary: Python module to talk to Google Chromecast.
Home-page: https://github.com/balloob/pychromecast
Author: Paulus Schoutsen
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyChromecast-7.7.1/PyChromecast.egg-info/PKG-INFO
new/PyChromecast-7.7.2/PyChromecast.egg-info/PKG-INFO
--- old/PyChromecast-7.7.1/PyChromecast.egg-info/PKG-INFO 2020-12-23
15:59:09.000000000 +0100
+++ new/PyChromecast-7.7.2/PyChromecast.egg-info/PKG-INFO 2021-01-05
15:46:18.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: PyChromecast
-Version: 7.7.1
+Version: 7.7.2
Summary: Python module to talk to Google Chromecast.
Home-page: https://github.com/balloob/pychromecast
Author: Paulus Schoutsen
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/PyChromecast-7.7.1/PyChromecast.egg-info/requires.txt
new/PyChromecast-7.7.2/PyChromecast.egg-info/requires.txt
--- old/PyChromecast-7.7.1/PyChromecast.egg-info/requires.txt 2020-12-23
15:59:09.000000000 +0100
+++ new/PyChromecast-7.7.2/PyChromecast.egg-info/requires.txt 2021-01-05
15:46:18.000000000 +0100
@@ -1,4 +1,3 @@
-requests>=2.0
protobuf>=3.0.0
zeroconf>=0.25.1
casttube>=0.2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyChromecast-7.7.1/pychromecast/controllers/plex.py
new/PyChromecast-7.7.2/pychromecast/controllers/plex.py
--- old/PyChromecast-7.7.1/pychromecast/controllers/plex.py 2020-12-23
15:58:57.000000000 +0100
+++ new/PyChromecast-7.7.2/pychromecast/controllers/plex.py 2021-01-05
15:46:07.000000000 +0100
@@ -59,7 +59,7 @@
**kwargs
): # noqa: 501 pylint: disable=invalid-name, too-many-arguments,
too-many-locals, protected-access, redefined-builtin
"""Create the message that chromecast requires. Use pass of plexapi media
object or
- set all the neeeded kwargs manually. See the code for what to set.
+ set all the needed kwargs manually. See the code for what to set.
Args:
media (None, optional): a :class:`~plexapi.base.Playable
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyChromecast-7.7.1/pychromecast/dial.py
new/PyChromecast-7.7.2/pychromecast/dial.py
--- old/PyChromecast-7.7.1/pychromecast/dial.py 2020-12-23 15:58:57.000000000
+0100
+++ new/PyChromecast-7.7.2/pychromecast/dial.py 2021-01-05 15:46:07.000000000
+0100
@@ -2,12 +2,11 @@
Implements the DIAL-protocol to communicate with the Chromecast
"""
from collections import namedtuple
-from uuid import UUID
-
+import json
import logging
-import requests
-import urllib3
-from urllib3.exceptions import InsecureRequestWarning
+import ssl
+import urllib.request
+from uuid import UUID
from .const import CAST_TYPE_CHROMECAST, CAST_TYPES
from .discovery import get_info_from_service, get_host_from_service_info
@@ -38,25 +37,18 @@
headers = {"content-type": "application/json"}
+ context = None
if secure:
url = FORMAT_BASE_URL_HTTPS.format(host) + path
+ context = ssl.SSLContext()
+ context.verify_mode = ssl.CERT_NONE
else:
url = FORMAT_BASE_URL_HTTP.format(host) + path
- urllib3.disable_warnings(category=InsecureRequestWarning)
- req = requests.get(url, headers=headers, timeout=10, verify=False)
-
- req.raise_for_status()
-
- # The Requests library will fall back to guessing the encoding in case
- # no encoding is specified in the response headers - which is the case
- # for the Chromecast.
- # The standard mandates utf-8 encoding, let's fall back to that instead
- # if no encoding is provided, since the autodetection does not always
- # provide correct results.
- if req.encoding is None:
- req.encoding = "utf-8"
- return req.json()
+ req = urllib.request.Request(url, headers=headers)
+ with urllib.request.urlopen(req, timeout=10, context=context) as response:
+ data = response.read()
+ return json.loads(data.decode("utf-8"))
def get_device_status(host, services=None, zconf=None):
@@ -89,7 +81,7 @@
return DeviceStatus(friendly_name, model_name, manufacturer, uuid,
cast_type)
- except (requests.exceptions.RequestException, OSError, ValueError):
+ except (urllib.error.HTTPError, urllib.error.URLError, OSError,
ValueError):
return None
@@ -128,7 +120,7 @@
return MultizoneStatus(dynamic_groups, groups)
- except (requests.exceptions.RequestException, OSError, ValueError):
+ except (urllib.error.HTTPError, urllib.error.URLError, OSError,
ValueError):
return None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyChromecast-7.7.1/requirements.txt
new/PyChromecast-7.7.2/requirements.txt
--- old/PyChromecast-7.7.1/requirements.txt 2020-12-23 15:58:57.000000000
+0100
+++ new/PyChromecast-7.7.2/requirements.txt 2021-01-05 15:46:07.000000000
+0100
@@ -1,4 +1,3 @@
-requests>=2.0
protobuf>=3.0.0
zeroconf>=0.25.1
casttube>=0.2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyChromecast-7.7.1/setup.py
new/PyChromecast-7.7.2/setup.py
--- old/PyChromecast-7.7.1/setup.py 2020-12-23 15:58:57.000000000 +0100
+++ new/PyChromecast-7.7.2/setup.py 2021-01-05 15:46:07.000000000 +0100
@@ -5,7 +5,7 @@
setup(
name="PyChromecast",
- version="7.7.1",
+ version="7.7.2",
license="MIT",
url="https://github.com/balloob/pychromecast",
author="Paulus Schoutsen",