openSUSE Commits
Threads by month
- ----- 2025 -----
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
October 2022
- 1 participants
- 2855 discussions
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-python-socketio for openSUSE:Factory checked in at 2022-10-31 13:04:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-socketio (Old)
and /work/SRC/openSUSE:Factory/.python-python-socketio.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-socketio"
Mon Oct 31 13:04:30 2022 rev:7 rq:1032441 version:5.7.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-socketio/python-python-socketio.changes 2022-10-08 01:25:43.966299531 +0200
+++ /work/SRC/openSUSE:Factory/.python-python-socketio.new.2275/python-python-socketio.changes 2022-10-31 13:04:32.589758515 +0100
@@ -1,0 +2,9 @@
+Fri Oct 28 20:49:21 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam(a)suse.com>
+
+- Update to 5.7.2
+ * Fixed disconnect implementation when using a message queue #1002 (commit)
+ * Fixed remote async disconnects via message queue #1003 (commit)
+ * Support optional payloads in msgpack implementation #981 (commit) (thanks Cromfel!)
+ * Recommend ASGI integration for Sanic in Documentation (commit)
+
+-------------------------------------------------------------------
Old:
----
python-socketio-5.7.1.tar.gz
New:
----
python-socketio-5.7.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-socketio.spec ++++++
--- /var/tmp/diff_new_pack.zlWGGv/_old 2022-10-31 13:04:33.113761185 +0100
+++ /var/tmp/diff_new_pack.zlWGGv/_new 2022-10-31 13:04:33.117761205 +0100
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-python-socketio
-Version: 5.7.1
+Version: 5.7.2
Release: 0
Summary: SocketIO server
License: MIT
++++++ python-socketio-5.7.1.tar.gz -> python-socketio-5.7.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/CHANGES.md new/python-socketio-5.7.2/CHANGES.md
--- old/python-socketio-5.7.1/CHANGES.md 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/CHANGES.md 2022-10-17 11:12:27.000000000 +0200
@@ -1,5 +1,12 @@
# python-socketio change log
+**Release 5.7.2** - 2022-10-17
+
+- Fixed disconnect implementation when using a message queue [#1002](https://github.com/miguelgrinberg/python-socketio/issues/1002) ([commit](https://github.com/miguelgrinberg/python-socketio/commit/f56ef6f040…)
+- Fixed remote async disconnects via message queue [#1003](https://github.com/miguelgrinberg/python-socketio/issues/1003) ([commit](https://github.com/miguelgrinberg/python-socketio/commit/104d6569a0…)
+- Support optional payloads in msgpack implementation [#981](https://github.com/miguelgrinberg/python-socketio/issues/981) ([commit](https://github.com/miguelgrinberg/python-socketio/commit/ce1afd79e6…) (thanks **Cromfel**!)
+- Recommend ASGI integration for Sanic in Documentation ([commit](https://github.com/miguelgrinberg/python-socketio/commit/2c3e360ae8…)
+
**Release 5.7.1** - 2022-07-15
- Add `namespaces` argument to `Server` and `AsyncServer` [#822](https://github.com/miguelgrinberg/python-socketio/issues/822) ([commit](https://github.com/miguelgrinberg/python-socketio/commit/efe87d867a…)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/docs/server.rst new/python-socketio-5.7.2/docs/server.rst
--- old/python-socketio-5.7.1/docs/server.rst 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/docs/server.rst 2022-10-17 11:12:27.000000000 +0200
@@ -628,6 +628,25 @@
The following sections describe a variety of deployment strategies for
Socket.IO servers.
+Uvicorn, Daphne, and other ASGI servers
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+The ``socketio.ASGIApp`` class is an ASGI compatible application that can
+forward Socket.IO traffic to an ``socketio.AsyncServer`` instance::
+
+ sio = socketio.AsyncServer(async_mode='asgi')
+ app = socketio.ASGIApp(sio)
+
+If desired, the ``socketio.ASGIApp`` class can forward any traffic that is not
+Socket.IO to another ASGI application, making it possible to deploy a standard
+ASGI web application and the Socket.IO server as a bundle::
+
+ sio = socketio.AsyncServer(async_mode='asgi')
+ app = socketio.ASGIApp(sio, other_app)
+
+The ``ASGIApp`` instance is a fully complaint ASGI instance that can be
+deployed with an ASGI compatible web server.
+
Aiohttp
~~~~~~~
@@ -691,6 +710,10 @@
Sanic
~~~~~
+Note: Due to some backward incompatible changes introduced in recent versions
+of Sanic, it is currently recommended that a Sanic application is deployed with
+the ASGI integration instead.
+
`Sanic <http://sanic.readthedocs.io/>`_ is a very efficient asynchronous web
server for Python 3.5 and newer.
@@ -726,17 +749,6 @@
app.config['CORS_SUPPORTS_CREDENTIALS'] = True
-Uvicorn, Daphne, and other ASGI servers
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-The ``socketio.ASGIApp`` class is an ASGI compatible application that can
-forward Socket.IO traffic to an ``socketio.AsyncServer`` instance::
-
- sio = socketio.AsyncServer(async_mode='asgi')
- app = socketio.ASGIApp(sio)
-
-The application can then be deployed with any ASGI compatible web server.
-
Eventlet
~~~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/setup.cfg new/python-socketio-5.7.2/setup.cfg
--- old/python-socketio-5.7.1/setup.cfg 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/setup.cfg 2022-10-17 11:12:27.000000000 +0200
@@ -1,6 +1,6 @@
[metadata]
name = python-socketio
-version = 5.7.1
+version = 5.7.2
author = Miguel Grinberg
author_email = miguel.grinberg(a)gmail.com
description = Socket.IO server and client for Python
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/src/socketio/asyncio_manager.py new/python-socketio-5.7.2/src/socketio/asyncio_manager.py
--- old/python-socketio-5.7.1/src/socketio/asyncio_manager.py 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/src/socketio/asyncio_manager.py 2022-10-17 11:12:27.000000000 +0200
@@ -33,6 +33,13 @@
return
await asyncio.wait(tasks)
+ async def disconnect(self, sid, namespace, **kwargs):
+ """Disconnect a client.
+
+ Note: this method is a coroutine.
+ """
+ return super().disconnect(sid, namespace, **kwargs)
+
async def close_room(self, room, namespace):
"""Remove all participants from a room.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/src/socketio/asyncio_pubsub_manager.py new/python-socketio-5.7.2/src/socketio/asyncio_pubsub_manager.py
--- old/python-socketio-5.7.1/src/socketio/asyncio_pubsub_manager.py 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/src/socketio/asyncio_pubsub_manager.py 2022-10-17 11:12:27.000000000 +0200
@@ -76,7 +76,14 @@
else:
# client is in another server, so we post request to the queue
await self._publish({'method': 'disconnect', 'sid': sid,
- 'namespace': namespace or '/'})
+ 'namespace': namespace or '/'})
+
+ async def disconnect(self, sid, namespace, **kwargs):
+ if kwargs.get('ignore_queue'):
+ return await super(AsyncPubSubManager, self).disconnect(
+ sid, namespace=namespace)
+ await self._publish({'method': 'disconnect', 'sid': sid,
+ 'namespace': namespace or '/'})
async def close_room(self, room, namespace=None):
await self._publish({'method': 'close_room', 'room': room,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/src/socketio/asyncio_server.py new/python-socketio-5.7.2/src/socketio/asyncio_server.py
--- old/python-socketio-5.7.1/src/socketio/asyncio_server.py 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/src/socketio/asyncio_server.py 2022-10-17 11:12:27.000000000 +0200
@@ -384,7 +384,8 @@
await self._send_packet(eio_sid, self.packet_class(
packet.DISCONNECT, namespace=namespace))
await self._trigger_event('disconnect', namespace, sid)
- self.manager.disconnect(sid, namespace=namespace)
+ await self.manager.disconnect(sid, namespace=namespace,
+ ignore_queue=True)
async def handle_request(self, *args, **kwargs):
"""Handle an HTTP request from the client.
@@ -486,7 +487,7 @@
await self._send_packet(eio_sid, self.packet_class(
packet.CONNECT_ERROR, data=fail_reason,
namespace=namespace))
- self.manager.disconnect(sid, namespace)
+ await self.manager.disconnect(sid, namespace, ignore_queue=True)
elif not self.always_connect:
await self._send_packet(eio_sid, self.packet_class(
packet.CONNECT, {'sid': sid}, namespace=namespace))
@@ -499,7 +500,7 @@
return
self.manager.pre_disconnect(sid, namespace=namespace)
await self._trigger_event('disconnect', namespace, sid)
- self.manager.disconnect(sid, namespace)
+ await self.manager.disconnect(sid, namespace, ignore_queue=True)
async def _handle_event(self, eio_sid, namespace, id, data):
"""Handle an incoming client event."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/src/socketio/base_manager.py new/python-socketio-5.7.2/src/socketio/base_manager.py
--- old/python-socketio-5.7.1/src/socketio/base_manager.py 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/src/socketio/base_manager.py 2022-10-17 11:12:27.000000000 +0200
@@ -68,6 +68,7 @@
return self.rooms[namespace][None][sid] is not None
except KeyError:
pass
+ return False
def sid_from_eio_sid(self, eio_sid, namespace):
try:
@@ -94,7 +95,7 @@
self.pending_disconnect[namespace].append(sid)
return self.rooms[namespace][None].get(sid)
- def disconnect(self, sid, namespace):
+ def disconnect(self, sid, namespace, **kwargs):
"""Register a client disconnect from a namespace."""
if namespace not in self.rooms:
return
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/src/socketio/msgpack_packet.py new/python-socketio-5.7.2/src/socketio/msgpack_packet.py
--- old/python-socketio-5.7.1/src/socketio/msgpack_packet.py 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/src/socketio/msgpack_packet.py 2022-10-17 11:12:27.000000000 +0200
@@ -13,6 +13,6 @@
"""Decode a transmitted package."""
decoded = msgpack.loads(encoded_packet)
self.packet_type = decoded['type']
- self.data = decoded['data']
+ self.data = decoded.get('data')
self.id = decoded.get('id')
self.namespace = decoded['nsp']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/src/socketio/pubsub_manager.py new/python-socketio-5.7.2/src/socketio/pubsub_manager.py
--- old/python-socketio-5.7.1/src/socketio/pubsub_manager.py 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/src/socketio/pubsub_manager.py 2022-10-17 11:12:27.000000000 +0200
@@ -75,7 +75,10 @@
self._publish({'method': 'disconnect', 'sid': sid,
'namespace': namespace or '/'})
- def disconnect(self, sid, namespace=None):
+ def disconnect(self, sid, namespace=None, **kwargs):
+ if kwargs.get('ignore_queue'):
+ return super(PubSubManager, self).disconnect(
+ sid, namespace=namespace)
self._publish({'method': 'disconnect', 'sid': sid,
'namespace': namespace or '/'})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/src/socketio/server.py new/python-socketio-5.7.2/src/socketio/server.py
--- old/python-socketio-5.7.1/src/socketio/server.py 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/src/socketio/server.py 2022-10-17 11:12:27.000000000 +0200
@@ -565,7 +565,8 @@
self._send_packet(eio_sid, self.packet_class(
packet.DISCONNECT, namespace=namespace))
self._trigger_event('disconnect', namespace, sid)
- self.manager.disconnect(sid, namespace=namespace)
+ self.manager.disconnect(sid, namespace=namespace,
+ ignore_queue=True)
def transport(self, sid):
"""Return the name of the transport used by the client.
@@ -693,7 +694,7 @@
self._send_packet(eio_sid, self.packet_class(
packet.CONNECT_ERROR, data=fail_reason,
namespace=namespace))
- self.manager.disconnect(sid, namespace)
+ self.manager.disconnect(sid, namespace, ignore_queue=True)
elif not self.always_connect:
self._send_packet(eio_sid, self.packet_class(
packet.CONNECT, {'sid': sid}, namespace=namespace))
@@ -706,7 +707,7 @@
return
self.manager.pre_disconnect(sid, namespace=namespace)
self._trigger_event('disconnect', namespace, sid)
- self.manager.disconnect(sid, namespace)
+ self.manager.disconnect(sid, namespace, ignore_queue=True)
def _handle_event(self, eio_sid, namespace, id, data):
"""Handle an incoming client event."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/tests/asyncio/test_asyncio_manager.py new/python-socketio-5.7.2/tests/asyncio/test_asyncio_manager.py
--- old/python-socketio-5.7.1/tests/asyncio/test_asyncio_manager.py 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/tests/asyncio/test_asyncio_manager.py 2022-10-17 11:12:27.000000000 +0200
@@ -59,9 +59,9 @@
assert self.bm.pre_disconnect(sid2, '/foo') == '456'
assert self.bm.pending_disconnect == {'/foo': [sid1, sid2]}
assert not self.bm.is_connected(sid2, '/foo')
- self.bm.disconnect(sid1, '/foo')
+ _run(self.bm.disconnect(sid1, '/foo'))
assert self.bm.pending_disconnect == {'/foo': [sid2]}
- self.bm.disconnect(sid2, '/foo')
+ _run(self.bm.disconnect(sid2, '/foo'))
assert self.bm.pending_disconnect == {}
def test_disconnect(self):
@@ -69,7 +69,7 @@
sid2 = self.bm.connect('456', '/foo')
self.bm.enter_room(sid1, '/foo', 'bar')
self.bm.enter_room(sid2, '/foo', 'baz')
- self.bm.disconnect(sid1, '/foo')
+ _run(self.bm.disconnect(sid1, '/foo'))
assert dict(self.bm.rooms['/foo'][None]) == {sid2: '456'}
assert dict(self.bm.rooms['/foo'][sid2]) == {sid2: '456'}
assert dict(self.bm.rooms['/foo']['baz']) == {sid2: '456'}
@@ -83,10 +83,10 @@
assert self.bm.is_connected(sid2, '/foo')
assert not self.bm.is_connected(sid2, '/')
assert not self.bm.is_connected(sid1, '/foo')
- self.bm.disconnect(sid1, '/')
+ _run(self.bm.disconnect(sid1, '/'))
assert not self.bm.is_connected(sid1, '/')
assert self.bm.is_connected(sid2, '/foo')
- self.bm.disconnect(sid2, '/foo')
+ _run(self.bm.disconnect(sid2, '/foo'))
assert not self.bm.is_connected(sid2, '/foo')
assert dict(self.bm.rooms['/'][None]) == {sid3: '456'}
assert dict(self.bm.rooms['/'][sid3]) == {sid3: '456'}
@@ -98,10 +98,10 @@
sid2 = self.bm.connect('123', '/foo')
sid3 = self.bm.connect('456', '/')
sid4 = self.bm.connect('456', '/foo')
- self.bm.disconnect(sid1, '/')
- self.bm.disconnect(sid2, '/foo')
- self.bm.disconnect(sid1, '/')
- self.bm.disconnect(sid2, '/foo')
+ _run(self.bm.disconnect(sid1, '/'))
+ _run(self.bm.disconnect(sid2, '/foo'))
+ _run(self.bm.disconnect(sid1, '/'))
+ _run(self.bm.disconnect(sid2, '/foo'))
assert dict(self.bm.rooms['/'][None]) == {sid3: '456'}
assert dict(self.bm.rooms['/'][sid3]) == {sid3: '456'}
assert dict(self.bm.rooms['/foo'][None]) == {sid4: '456'}
@@ -112,8 +112,8 @@
sid2 = self.bm.connect('456', '/foo')
self.bm.enter_room(sid1, '/foo', 'bar')
self.bm.enter_room(sid2, '/foo', 'baz')
- self.bm.disconnect(sid1, '/foo')
- self.bm.disconnect(sid2, '/foo')
+ _run(self.bm.disconnect(sid1, '/foo'))
+ _run(self.bm.disconnect(sid2, '/foo'))
assert self.bm.rooms == {}
def test_disconnect_with_callbacks(self):
@@ -123,9 +123,9 @@
self.bm._generate_ack_id(sid1, 'f')
self.bm._generate_ack_id(sid2, 'g')
self.bm._generate_ack_id(sid3, 'h')
- self.bm.disconnect(sid2, '/foo')
+ _run(self.bm.disconnect(sid2, '/foo'))
assert sid2 not in self.bm.callbacks
- self.bm.disconnect(sid1, '/')
+ _run(self.bm.disconnect(sid1, '/'))
assert sid1 not in self.bm.callbacks
assert sid3 in self.bm.callbacks
@@ -176,7 +176,7 @@
sid1 = self.bm.connect('123', '/')
sid2 = self.bm.connect('456', '/')
sid3 = self.bm.connect('789', '/')
- self.bm.disconnect(sid3, '/')
+ _run(self.bm.disconnect(sid3, '/'))
assert sid3 not in self.bm.rooms['/'][None]
participants = list(self.bm.get_participants('/', None))
assert len(participants) == 2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/tests/asyncio/test_asyncio_pubsub_manager.py new/python-socketio-5.7.2/tests/asyncio/test_asyncio_pubsub_manager.py
--- old/python-socketio-5.7.1/tests/asyncio/test_asyncio_pubsub_manager.py 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/tests/asyncio/test_asyncio_pubsub_manager.py 2022-10-17 11:12:27.000000000 +0200
@@ -176,6 +176,19 @@
{'method': 'disconnect', 'sid': sid, 'namespace': '/foo'}
)
+ def test_disconnect(self):
+ _run(self.pm.disconnect('foo', '/'))
+ self.pm._publish.mock.assert_called_once_with(
+ {'method': 'disconnect', 'sid': 'foo', 'namespace': '/'}
+ )
+
+ def test_disconnect_ignore_queue(self):
+ sid = self.pm.connect('123', '/')
+ self.pm.pre_disconnect(sid, '/')
+ _run(self.pm.disconnect(sid, '/', ignore_queue=True))
+ self.pm._publish.mock.assert_not_called()
+ assert self.pm.is_connected(sid, '/') is False
+
def test_close_room(self):
_run(self.pm.close_room('foo'))
self.pm._publish.mock.assert_called_once_with(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/tests/asyncio/test_asyncio_server.py new/python-socketio-5.7.2/tests/asyncio/test_asyncio_server.py
--- old/python-socketio-5.7.1/tests/asyncio/test_asyncio_server.py 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/tests/asyncio/test_asyncio_server.py 2022-10-17 11:12:27.000000000 +0200
@@ -597,14 +597,15 @@
def test_handle_disconnect(self, eio):
eio.return_value.send = AsyncMock()
s = asyncio_server.AsyncServer()
- s.manager.disconnect = mock.MagicMock()
+ s.manager.disconnect = AsyncMock()
handler = mock.MagicMock()
s.on('disconnect', handler)
_run(s._handle_eio_connect('123', 'environ'))
_run(s._handle_eio_message('123', '0'))
_run(s._handle_eio_disconnect('123'))
handler.assert_called_once_with('1')
- s.manager.disconnect.assert_called_once_with('1', '/')
+ s.manager.disconnect.mock.assert_called_once_with(
+ '1', '/', ignore_queue=True)
assert s.environ == {}
def test_handle_disconnect_namespace(self, eio):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/tests/common/test_pubsub_manager.py new/python-socketio-5.7.2/tests/common/test_pubsub_manager.py
--- old/python-socketio-5.7.1/tests/common/test_pubsub_manager.py 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/tests/common/test_pubsub_manager.py 2022-10-17 11:12:27.000000000 +0200
@@ -175,6 +175,13 @@
{'method': 'disconnect', 'sid': 'foo', 'namespace': '/'}
)
+ def test_disconnect_ignore_queue(self):
+ sid = self.pm.connect('123', '/')
+ self.pm.pre_disconnect(sid, '/')
+ self.pm.disconnect(sid, ignore_queue=True)
+ self.pm._publish.assert_not_called()
+ assert not self.pm.is_connected(sid, '/')
+
def test_close_room(self):
self.pm.close_room('foo')
self.pm._publish.assert_called_once_with(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-socketio-5.7.1/tests/common/test_server.py new/python-socketio-5.7.2/tests/common/test_server.py
--- old/python-socketio-5.7.1/tests/common/test_server.py 2022-07-15 21:05:00.000000000 +0200
+++ new/python-socketio-5.7.2/tests/common/test_server.py 2022-10-17 11:12:27.000000000 +0200
@@ -532,7 +532,8 @@
s._handle_eio_message('123', '0')
s._handle_eio_disconnect('123')
handler.assert_called_once_with('1')
- s.manager.disconnect.assert_called_once_with('1', '/')
+ s.manager.disconnect.assert_called_once_with('1', '/',
+ ignore_queue=True)
assert s.environ == {}
def test_handle_disconnect_namespace(self, eio):
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-robotframework for openSUSE:Factory checked in at 2022-10-31 13:04:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-robotframework (Old)
and /work/SRC/openSUSE:Factory/.python-robotframework.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-robotframework"
Mon Oct 31 13:04:29 2022 rev:3 rq:1032438 version:6.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-robotframework/python-robotframework.changes 2022-10-11 18:05:39.234094903 +0200
+++ /work/SRC/openSUSE:Factory/.python-robotframework.new.2275/python-robotframework.changes 2022-10-31 13:04:31.685753907 +0100
@@ -1,0 +2,25 @@
+Sat Oct 29 00:32:45 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam(a)suse.com>
+
+- Update to 6.0.0
+ Most important enhancements
+ * Localization
+ * Enhancements to using keywords with embedded arguments
+ * Enhancements to keyword namespaces
+ * Enhancements to automatic argument conversion
+ * Enhancements for setting keyword and test tags
+ * Possibility to disable continue-on-failure mode
+ * start/end_keyword listener methods get more information about control structures
+ * Libdoc enhancements
+ * Performance enhancements for executing user keywords
+ * Python 3.11 support
+ Backwards incompatible changes
+ Deprecated features
+ * Force Tags and Default Tags settings
+ * Keywords in test case files having precedence over local keywords in resource files
+ * WITH NAME in favor of AS when giving alias to imported library
+ * Singular section headers like Test Case
+ * Using variables with embedded arguments so that value does not match custom pattern
+ * robot.utils.TRUE_STRINGS and robot.utils.FALSE_STRINGS
+ * Python 3.6 support
+
+-------------------------------------------------------------------
Old:
----
robotframework-5.0.1.zip
New:
----
robotframework-6.0.zip
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-robotframework.spec ++++++
--- /var/tmp/diff_new_pack.TIfuhB/_old 2022-10-31 13:04:32.345757270 +0100
+++ /var/tmp/diff_new_pack.TIfuhB/_new 2022-10-31 13:04:32.349757291 +0100
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-robotframework
-Version: 5.0.1
+Version: 6.0
Release: 0
Summary: Generic test automation framework for acceptance testing and ATDD
License: Apache-2.0
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-scitokens for openSUSE:Factory checked in at 2022-10-31 13:04:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-scitokens (Old)
and /work/SRC/openSUSE:Factory/.python-scitokens.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-scitokens"
Mon Oct 31 13:04:27 2022 rev:4 rq:1032432 version:1.7.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-scitokens/python-scitokens.changes 2022-09-01 22:12:11.908412730 +0200
+++ /work/SRC/openSUSE:Factory/.python-scitokens.new.2275/python-scitokens.changes 2022-10-31 13:04:29.885744732 +0100
@@ -1,0 +2,19 @@
+Sat Oct 29 00:55:58 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam(a)suse.com>
+
+- Update to version 1.7.2
+ * Documentation changes release.
+
+-------------------------------------------------------------------
+Sat Oct 29 00:53:02 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam(a)suse.com>
+
+- Update to version 1.7.1
+ * Add license to metadata by @duncanmmacleod in #150
+ * Update badges in README by @duncanmmacleod in #152
+ * Miscellaneous documentation fixes by @duncanmmacleod in #155
+ * Update setup.py by @duncanmmacleod in #156
+ * Adding codacy github action by @djw8605 in #158
+ * Attempt to fix codacy in github actions by @djw8605 in #159
+ * Add pyproject.toml file for PEP 517 builds by @lpsinger in #162
+ * Install requires setuptools by @lpsinger in #163
+
+-------------------------------------------------------------------
Old:
----
scitokens-1.7.0.tar.gz
New:
----
scitokens-1.7.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-scitokens.spec ++++++
--- /var/tmp/diff_new_pack.nfl7KX/_old 2022-10-31 13:04:30.381747260 +0100
+++ /var/tmp/diff_new_pack.nfl7KX/_new 2022-10-31 13:04:30.389747301 +0100
@@ -21,7 +21,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-scitokens
-Version: 1.7.0
+Version: 1.7.2
Release: 0
Summary: SciToken reference implementation library
License: Apache-2.0
++++++ scitokens-1.7.0.tar.gz -> scitokens-1.7.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scitokens-1.7.0/.github/workflows/python-coverage.yml new/scitokens-1.7.2/.github/workflows/python-coverage.yml
--- old/scitokens-1.7.0/.github/workflows/python-coverage.yml 1970-01-01 01:00:00.000000000 +0100
+++ new/scitokens-1.7.2/.github/workflows/python-coverage.yml 2022-10-04 16:22:40.000000000 +0200
@@ -0,0 +1,33 @@
+name: codacy-coverage-reporter
+
+on: ["push"]
+
+jobs:
+ codacy-coverage-reporter:
+ runs-on: ubuntu-latest
+ name: codacy-coverage-reporter
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python 3.9
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.9
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ python -m pip install pytest coverage
+ if [ -f requirements.txt ]; then
+ sed -i 's/>=/==/g' requirements.txt
+ pip install -r requirements.txt
+ fi
+ - name: Test with pytest
+ run: |
+ coverage run -m pytest
+ coverage xml
+ - name: Run codacy-coverage-reporter
+ uses: codacy/codacy-coverage-reporter-action@v1
+ with:
+ project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
+ # or
+ # api-token: ${{ secrets.CODACY_API_TOKEN }}
+ coverage-reports: coverage.xml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scitokens-1.7.0/.github/workflows/python-package.yml new/scitokens-1.7.2/.github/workflows/python-package.yml
--- old/scitokens-1.7.0/.github/workflows/python-package.yml 2022-02-18 19:56:16.000000000 +0100
+++ new/scitokens-1.7.2/.github/workflows/python-package.yml 2022-10-04 16:22:40.000000000 +0200
@@ -40,6 +40,7 @@
run: |
pytest
+
minimum-build:
runs-on: ubuntu-latest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scitokens-1.7.0/README.rst new/scitokens-1.7.2/README.rst
--- old/scitokens-1.7.0/README.rst 2022-02-18 19:56:16.000000000 +0100
+++ new/scitokens-1.7.2/README.rst 2022-10-04 16:22:40.000000000 +0200
@@ -1,6 +1,8 @@
SciTokens Library
=================
+|pypi| |downloads| |license|
+
This library aims to be a reference implementation of the SciTokens'
JSON Web Token (JWT) token format.
@@ -227,21 +229,33 @@
>> import scitokens
>> scitokens.set_config("/etc/scitokens/scitokens.ini")
-See :py:func:`~scitokens.utils.config.set_config`
Project Status
==============
-.. image:: https://travis-ci.org/scitokens/scitokens.svg?branch=master
- :target: https://travis-ci.org/scitokens/scitokens
- :alt: Travis-CI Build Status
-
-.. image:: https://api.codacy.com/project/badge/Coverage/ad1f7b31145f4b9a96d58ec736d6f…
- :target: https://www.codacy.com/app/scitokens/scitokens?utm_source=github.com&utm_me…
- :alt: Code Test Coverage
-
-.. image:: https://api.codacy.com/project/badge/Grade/ad1f7b31145f4b9a96d58ec736d6f00c
- :target: https://www.codacy.com/app/scitokens/scitokens?utm_source=github.com&ut…
- :alt: Codacy Grade
+|pypi| |build| |coverage| |quality|
+
+.. |pypi| image:: https://badge.fury.io/py/scitokens.svg
+ :target: https://pypi.org/project/scitokens/
+
+.. |downloads| image:: https://img.shields.io/pypi/dd/scitokens
+ :target: https://pypi.org/project/scitokens
+ :alt: Downloads per month
+
+.. |license| image:: https://img.shields.io/github/license/scitokens/scitokens
+ :target: https://choosealicense.com/licenses/apache-2.0/
+ :alt: License information
+
+.. |build| image:: https://img.shields.io/github/workflow/status/scitokens/scitokens/Python%20…
+ :target: https://github.com/scitokens/scitokens/actions/workflows/python-package.yml
+ :alt: Build pipeline status
+
+.. |coverage| image:: https://app.codacy.com/project/badge/Coverage/753108a9f8ab450d8f5598e1b639e…
+ :target: https://www.codacy.com/gh/scitokens/scitokens/dashboard?utm_source=github.c…
+ :alt: Code coverage
+
+.. |quality| image:: https://app.codacy.com/project/badge/Grade/753108a9f8ab450d8f5598e1b639ecfd
+ :target: https://www.codacy.com/gh/scitokens/scitokens/dashboard?utm_source=github.c…
+ :alt: Code Quality
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scitokens-1.7.0/configs/python-scitokens.spec new/scitokens-1.7.2/configs/python-scitokens.spec
--- old/scitokens-1.7.0/configs/python-scitokens.spec 2022-02-18 19:56:16.000000000 +0100
+++ new/scitokens-1.7.2/configs/python-scitokens.spec 2022-10-04 16:22:40.000000000 +0200
@@ -2,7 +2,7 @@
%global pypi_name scitokens
Name: python-%{pypi_name}
-Version: 1.6.2
+Version: 1.7.2
Release: 1%{?dist}
Summary: SciToken reference implementation library
@@ -60,6 +60,20 @@
%changelog
+* Tue Oct 04 2022 Derek Weitzel <dweitzel(a)unl.edu> - 1.7.2-1
+- Documentation updates
+
+* Wed Sep 28 2022 Derek Weitzel <dweitzel(a)unl.edu> - 1.7.1-1
+- Documentation updates
+- Fix setup tools and add pyproject.toml
+
+* Fri Feb 18 2022 Derek Weitzel <dweitzel(a)unl.edu> - 1.7.0-1
+- Fix serialize mismatch between Python 3 and Python 2
+- Fix bug decoding a token with no audience
+- Update algorithm used to test UnsupportedKeyException
+- Update pyjwt version in requirements.txt
+- Default cached public keys set to 4 days
+
* Wed Nov 3 2021 Brian Lin <blin(a)cs.wisc.edu> - 1.6.2-1
- Fix Python library version (SOFTWARE-4879)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scitokens-1.7.0/docs/source/conf.py new/scitokens-1.7.2/docs/source/conf.py
--- old/scitokens-1.7.0/docs/source/conf.py 2022-02-18 19:56:16.000000000 +0100
+++ new/scitokens-1.7.2/docs/source/conf.py 2022-10-04 16:22:40.000000000 +0200
@@ -18,6 +18,8 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('../../src'))
+import scitokens
+
# -- General configuration -----------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
@@ -48,9 +50,9 @@
# built documents.
#
# The short X.Y version.
-version = '0.1'
+version = scitokens.__version__
# The full version, including alpha/beta/rc tags.
-release = '0.1'
+release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@@ -120,7 +122,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['_static']
+#html_static_path = ['_static']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scitokens-1.7.0/pyproject.toml new/scitokens-1.7.2/pyproject.toml
--- old/scitokens-1.7.0/pyproject.toml 1970-01-01 01:00:00.000000000 +0100
+++ new/scitokens-1.7.2/pyproject.toml 2022-10-04 16:22:40.000000000 +0200
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["setuptools"]
+build-backend = "setuptools.build_meta"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scitokens-1.7.0/setup.py new/scitokens-1.7.2/setup.py
--- old/scitokens-1.7.0/setup.py 2022-02-18 19:56:16.000000000 +0100
+++ new/scitokens-1.7.2/setup.py 2022-10-04 16:22:40.000000000 +0200
@@ -8,6 +8,11 @@
import setuptools
+# read the contents of your README file
+from pathlib import Path
+this_directory = Path(__file__).parent
+long_description = (this_directory / "README.rst").read_text()
+
def find_version(path, varname="__version__"):
"""Parse the version metadata variable in the given file.
@@ -24,19 +29,57 @@
raise RuntimeError("Unable to find version string.")
-setuptools.setup(name="scitokens",
- version=find_version(os.path.join("src", "scitokens", "__init__.py")),
- description="SciToken reference implementation library",
- author_email="team(a)scitokens.org",
- author="Brian Bockelman",
- url="https://scitokens.org",
- package_dir={"": "src"},
- packages=["scitokens", "scitokens.tools", "scitokens.utils"],
- entry_points={"console_scripts": [
- "scitokens-admin-create-key=scitokens.tools.admin_create_key:main",
- "scitokens-admin-create-token=scitokens.tools.admin_create_token:main",
- ]},
- install_requires=['cryptography',
- 'PyJWT>=1.6.1',
- 'six'],
- )
+setuptools.setup(
+ # metadata
+ name="scitokens",
+ version=find_version(os.path.join("src", "scitokens", "__init__.py")),
+ description="SciToken reference implementation library",
+ long_description=long_description,
+ long_description_content_type="text/x-rst",
+ author_email="team(a)scitokens.org",
+ author="Brian Bockelman",
+ license="Apache-2.0",
+ url="https://scitokens.org",
+ project_urls={
+ "Issue Tracker": "https://github.com/scitokens/scitokens/issues",
+ "Source Code": "https://github.com/scitokens/scitokens",
+ },
+ # contents
+ package_dir={
+ "": "src",
+ },
+ packages=[
+ "scitokens",
+ "scitokens.tools",
+ "scitokens.utils",
+ ],
+ entry_points={
+ "console_scripts": [
+ "scitokens-admin-create-key=scitokens.tools.admin_create_key:main",
+ "scitokens-admin-create-token=scitokens.tools.admin_create_token:main",
+ ],
+ },
+ # requirements
+ python_requires=">=3.5",
+ install_requires=[
+ 'cryptography',
+ 'PyJWT>=1.6.1',
+ 'six',
+ 'setuptools'
+ ],
+ # classifiers
+ classifiers=[
+ "Development Status :: 5 - Production/Stable",
+ "License :: OSI Approved :: Apache Software License",
+ "Natural Language :: English",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 3.5",
+ "Programming Language :: Python :: 3.6",
+ "Programming Language :: Python :: 3.7",
+ "Programming Language :: Python :: 3.8",
+ "Programming Language :: Python :: 3.9",
+ "Programming Language :: Python :: 3.10",
+ "Topic :: Scientific/Engineering",
+ ],
+)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scitokens-1.7.0/src/scitokens/__init__.py new/scitokens-1.7.2/src/scitokens/__init__.py
--- old/scitokens-1.7.0/src/scitokens/__init__.py 2022-02-18 19:56:16.000000000 +0100
+++ new/scitokens-1.7.2/src/scitokens/__init__.py 2022-10-04 16:22:40.000000000 +0200
@@ -6,4 +6,4 @@
from .scitokens import SciToken, Validator, Enforcer, MissingClaims
from .utils.config import set_config
-__version__ = "1.7.0"
+__version__ = "1.7.2"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scitokens-1.7.0/src/scitokens/utils/config.py new/scitokens-1.7.2/src/scitokens/utils/config.py
--- old/scitokens-1.7.0/src/scitokens/utils/config.py 2022-02-18 19:56:16.000000000 +0100
+++ new/scitokens-1.7.2/src/scitokens/utils/config.py 2022-10-04 16:22:40.000000000 +0200
@@ -24,8 +24,9 @@
def set_config(config = None):
"""
Set the configuration of SciTokens library
+
:param config: config may be: A full path to a ini configuration file,
- A ConfigParser instance, or None, which will use all defaults.
+ a ConfigParser instance, or None, which will use all defaults.
"""
global configuration # pylint: disable=C0103
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-slack-sdk for openSUSE:Factory checked in at 2022-10-31 13:04:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-slack-sdk (Old)
and /work/SRC/openSUSE:Factory/.python-slack-sdk.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-slack-sdk"
Mon Oct 31 13:04:26 2022 rev:3 rq:1032431 version:3.19.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-slack-sdk/python-slack-sdk.changes 2022-10-08 01:26:40.958430246 +0200
+++ /work/SRC/openSUSE:Factory/.python-slack-sdk.new.2275/python-slack-sdk.changes 2022-10-31 13:04:28.049735374 +0100
@@ -1,0 +2,18 @@
+Sat Oct 29 00:57:35 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam(a)suse.com>
+
+- Update to 3.19.1
+ Improve WebClient#files_upload_v2() to use given filename as the default title value - Thanks @seratch @mattpr
+
+- Update to 3.19.0
+ #1272 Add files.upload v2 support, which resolves #1191 #1165 - Thanks @seratch
+
+- Update to 3.18.5
+ #1271 Add more revert to #1269 - Thanks @seratch @yardensachs
+
+- Update to 3.18.4
+ #1264 Fix retry_handlers type hint in AsyncBaseClient - Thanks @ronyb29
+ #1265 #1266 Add selected_time (timepicker) to ViewStateValue class - Thanks @rei-0
+ #1270 Add include_all_metadata to conversations.replies API arguments - Thanks @seratch
+ #1269 Adjust the logic added by #1246 - Thanks @seratch @eddyg
+
+-------------------------------------------------------------------
Old:
----
slack-sdk-3.18.3.tar.gz
New:
----
slack-sdk-3.19.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-slack-sdk.spec ++++++
--- /var/tmp/diff_new_pack.BO0nja/_old 2022-10-31 13:04:29.145740960 +0100
+++ /var/tmp/diff_new_pack.BO0nja/_new 2022-10-31 13:04:29.157741022 +0100
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python3-%{**}}
Name: python-slack-sdk
-Version: 3.18.3
+Version: 3.19.1
Release: 0
Summary: Python SDKs for the Slack API
License: MIT
++++++ slack-sdk-3.18.3.tar.gz -> slack-sdk-3.19.1.tar.gz ++++++
++++ 5290 lines of diff (skipped)
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-fastparquet for openSUSE:Factory checked in at 2022-10-31 13:04:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-fastparquet (Old)
and /work/SRC/openSUSE:Factory/.python-fastparquet.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fastparquet"
Mon Oct 31 13:04:24 2022 rev:23 rq:1032429 version:0.8.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-fastparquet/python-fastparquet.changes 2022-04-26 20:18:00.760778409 +0200
+++ /work/SRC/openSUSE:Factory/.python-fastparquet.new.2275/python-fastparquet.changes 2022-10-31 13:04:26.325726587 +0100
@@ -1,0 +2,16 @@
+Fri Oct 28 15:47:41 UTC 2022 - Ben Greiner <code(a)bnavigator.de>
+
+- Update to 0.8.3
+ * improved key/value handling and rejection of bad types
+ * fix regression in consolidate_cats (caught in dask tests)
+- Release 0.8.2
+ * datetime indexes initialised to 0 to prevent overflow from
+ randommemory
+ * case from csv_to_parquet where stats exists but has not nulls
+ entry
+ * define len and bool for ParquetFile
+ * maintain int types of optional data tha came from pandas
+ * fix for delta encoding
+- Add fastparquet-pr813-updatefixes.patch gh#dask/fastparquet#813
+
+-------------------------------------------------------------------
Old:
----
fastparquet-0.8.1.tar.gz
New:
----
fastparquet-0.8.3.tar.gz
fastparquet-pr813-updatefixes.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-fastparquet.spec ++++++
--- /var/tmp/diff_new_pack.dae0rO/_old 2022-10-31 13:04:27.441732275 +0100
+++ /var/tmp/diff_new_pack.dae0rO/_new 2022-10-31 13:04:27.445732296 +0100
@@ -16,22 +16,23 @@
#
-%{?!python_module:%define python_module() python3-%{**}}
-%define skip_python2 1
Name: python-fastparquet
-Version: 0.8.1
+Version: 0.8.3
Release: 0
Summary: Python support for Parquet file format
License: Apache-2.0
URL: https://github.com/dask/fastparquet/
Source: https://github.com/dask/fastparquet/archive/%{version}.tar.gz#/fastparquet-…
+# PATCH-FIX-UPSTREAM fastparquet-pr813-updatefixes.patch gh#dask/fastparquet#813
+Patch1: fastparquet-pr813-updatefixes.patch
BuildRequires: %{python_module Cython}
-BuildRequires: %{python_module base >= 3.7}
+BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module cramjam >= 2.3.0}
# version requirement not declared for runtime, but necessary for tests.
BuildRequires: %{python_module fsspec >= 2021.6.0}
-BuildRequires: %{python_module numpy-devel >= 1.18}
-BuildRequires: %{python_module pandas >= 1.1.0}
+BuildRequires: %{python_module numpy-devel >= 1.20.3}
+BuildRequires: %{python_module packaging}
+BuildRequires: %{python_module pandas >= 1.5.0}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
@@ -41,8 +42,9 @@
BuildRequires: python-rpm-macros
Requires: python-cramjam >= 2.3.0
Requires: python-fsspec
-Requires: python-numpy >= 1.18
-Requires: python-pandas >= 1.1.0
+Requires: python-numpy >= 1.20.3
+Requires: python-packaging
+Requires: python-pandas >= 1.5.0
Recommends: python-python-lzo
%python_subpackages
@@ -51,7 +53,7 @@
for integrating it into python-based Big Data workflows.
%prep
-%setup -q -n fastparquet-%{version}
+%autosetup -p1 -n fastparquet-%{version}
# remove pytest-runner from setup_requires
sed -i "s/'pytest-runner',//" setup.py
# this is not meant for setup.py
++++++ fastparquet-0.8.1.tar.gz -> fastparquet-0.8.3.tar.gz ++++++
/work/SRC/openSUSE:Factory/python-fastparquet/fastparquet-0.8.1.tar.gz /work/SRC/openSUSE:Factory/.python-fastparquet.new.2275/fastparquet-0.8.3.tar.gz differ: char 12, line 1
++++++ fastparquet-pr813-updatefixes.patch ++++++
++++ 36551 lines (skipped)
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-fastapi for openSUSE:Factory checked in at 2022-10-31 13:04:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-fastapi (Old)
and /work/SRC/openSUSE:Factory/.python-fastapi.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fastapi"
Mon Oct 31 13:04:22 2022 rev:6 rq:1032415 version:0.85.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-fastapi/python-fastapi.changes 2022-09-22 14:49:47.922417008 +0200
+++ /work/SRC/openSUSE:Factory/.python-fastapi.new.2275/python-fastapi.changes 2022-10-31 13:04:24.109715292 +0100
@@ -1,0 +2,11 @@
+Mon Oct 31 08:45:35 UTC 2022 - David Anes <david.anes(a)suse.com>
+
+- Update to 0.85.1
+ * Fix support for strings in OpenAPI status codes: default, 1XX,
+ 2XX, 3XX, 4XX, 5XX.
+ * Docs: Add WayScript x FastAPI Tutorial to External Links section
+
+- Add support for Starlette 0.21.0:
+ * Add patch fastapi-support-startlette-0.21.0.patch
+
+-------------------------------------------------------------------
Old:
----
fastapi-0.85.0.tar.gz
New:
----
fastapi-0.85.1.tar.gz
fastapi-support-startlette-0.21.0.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-fastapi.spec ++++++
--- /var/tmp/diff_new_pack.6qicm8/_old 2022-10-31 13:04:24.949719574 +0100
+++ /var/tmp/diff_new_pack.6qicm8/_new 2022-10-31 13:04:24.953719594 +0100
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-fastapi
-Version: 0.85.0
+Version: 0.85.1
Release: 0
Summary: FastAPI framework
License: MIT
@@ -31,6 +31,9 @@
BuildRequires: python-rpm-macros
Requires: python-pydantic >= 1.0.0
Requires: python-starlette >= 0.13.6
+# PATCH-FIX-UPSTREAM Update starlette to 0.21.0
+# https://github.com/tiangolo/fastapi/pull/5471
+Patch0: fastapi-support-startlette-0.21.0.patch
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Flask >= 1.1.2}
@@ -50,7 +53,7 @@
BuildRequires: %{python_module python-jose}
BuildRequires: %{python_module python-multipart >= 0.0.5}
BuildRequires: %{python_module requests >= 2.24.0}
-BuildRequires: %{python_module starlette >= 0.20.4}
+BuildRequires: %{python_module starlette >= 0.21.0}
BuildRequires: %{python_module trio}
# /SECTION
%python_subpackages
@@ -60,6 +63,7 @@
%prep
%setup -q -n fastapi-%{version}
+%autopatch -p1
# Requires orjson
rm tests/test_default_response_class.py
++++++ fastapi-0.85.0.tar.gz -> fastapi-0.85.1.tar.gz ++++++
/work/SRC/openSUSE:Factory/python-fastapi/fastapi-0.85.0.tar.gz /work/SRC/openSUSE:Factory/.python-fastapi.new.2275/fastapi-0.85.1.tar.gz differ: char 32, line 1
++++++ fastapi-support-startlette-0.21.0.patch ++++++
++++ 775 lines (skipped)
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-folium for openSUSE:Factory checked in at 2022-10-31 12:39:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-folium (Old)
and /work/SRC/openSUSE:Factory/.python-folium.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-folium"
Mon Oct 31 12:39:17 2022 rev:6 rq:1032413 version:0.13.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-folium/python-folium.changes 2022-02-15 23:57:48.880301051 +0100
+++ /work/SRC/openSUSE:Factory/.python-folium.new.2275/python-folium.changes 2022-10-31 12:39:18.981792594 +0100
@@ -1,0 +2,24 @@
+Mon Oct 31 09:28:03 UTC 2022 - Atri Bhattacharya <badshah400(a)gmail.com>
+
+- Update to version 0.13.0:
+ * Lazy popup: only load content on click
+ (gh#python-visualization/folium#1511).
+ * Add Leaflet.VectorGrid plugin: VectorGridProtobuf
+ (gh#python-visualization/folium#1576).
+ * Add blur parameter to HeatMapWithTime plugin
+ (gh#python-visualization/folium#1529).
+ * New ClickForLatLng class: click to save lat/lon to clipboard
+ (gh#python-visualization/folium#1530).
+ * Add width parameter to css for FloatImage
+ (gh#python-visualization/folium#1570).
+ * Add support for tooltips in TimestampedGeoJson objects
+ (gh#python-visualization/folium#1472).
+ * Expose GeoJson's web retrieval to its own function
+ (gh#python-visualization/folium#1458).
+ * Restore allowing simple Popup in GeoJson
+ (gh#python-visualization/folium#1528).
+ * Fix test failure with recent branca change on map ids
+ (gh#python-visualization/folium#1556).
+ * Documentation updates.
+
+-------------------------------------------------------------------
Old:
----
folium-0.12.1.post1-gh.tar.gz
New:
----
folium-0.13.0-gh.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-folium.spec ++++++
--- /var/tmp/diff_new_pack.kqHhoL/_old 2022-10-31 12:39:20.137798846 +0100
+++ /var/tmp/diff_new_pack.kqHhoL/_new 2022-10-31 12:39:20.141798867 +0100
@@ -20,7 +20,7 @@
%define skip_python36 1
%define modname folium
Name: python-folium
-Version: 0.12.1.post1
+Version: 0.13.0
Release: 0
Summary: Make beautiful maps with Leafletjs and Python
License: MIT
++++++ folium-0.12.1.post1-gh.tar.gz -> folium-0.13.0-gh.tar.gz ++++++
/work/SRC/openSUSE:Factory/python-folium/folium-0.12.1.post1-gh.tar.gz /work/SRC/openSUSE:Factory/.python-folium.new.2275/folium-0.13.0-gh.tar.gz differ: char 16, line 1
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-python-debian for openSUSE:Factory checked in at 2022-10-31 12:15:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-debian (Old)
and /work/SRC/openSUSE:Factory/.python-python-debian.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-debian"
Mon Oct 31 12:15:18 2022 rev:3 rq:1032448 version:0.1.48
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-debian/python-python-debian.changes 2022-10-08 01:25:55.118325109 +0200
+++ /work/SRC/openSUSE:Factory/.python-python-debian.new.2275/python-python-debian.changes 2022-10-31 12:15:20.238395221 +0100
@@ -1,0 +2,7 @@
+Fri Oct 28 20:31:05 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam(a)suse.com>
+
+- Update to 0.1.48
+ * Fix version bound for subscripting abc.Iterator, abc.MutableMapping
+ * Don't raise AmbiguousDeb822FieldKeyError in __contains__.
+
+-------------------------------------------------------------------
Old:
----
python-debian-0.1.47.tar.gz
New:
----
python-debian-0.1.48.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-debian.spec ++++++
--- /var/tmp/diff_new_pack.FEWhDD/_old 2022-10-31 12:15:20.794397830 +0100
+++ /var/tmp/diff_new_pack.FEWhDD/_new 2022-10-31 12:15:20.802397868 +0100
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-python-debian
-Version: 0.1.47
+Version: 0.1.48
Release: 0
Summary: Debian package related modules
License: GPL-3.0-or-later
++++++ python-debian-0.1.47.tar.gz -> python-debian-0.1.48.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-debian-0.1.47/PKG-INFO new/python-debian-0.1.48/PKG-INFO
--- old/python-debian-0.1.47/PKG-INFO 2022-08-28 10:29:25.833675000 +0200
+++ new/python-debian-0.1.48/PKG-INFO 2022-10-15 07:04:02.387403700 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: python-debian
-Version: 0.1.47
+Version: 0.1.48
Summary: Debian package related modules
Home-page: https://salsa.debian.org/python-debian-team/python-debian
Maintainer: Debian python-debian Maintainers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-debian-0.1.47/lib/debian/_deb822_repro/_util.py new/python-debian-0.1.48/lib/debian/_deb822_repro/_util.py
--- old/python-debian-0.1.47/lib/debian/_deb822_repro/_util.py 2022-08-28 10:20:30.000000000 +0200
+++ new/python-debian-0.1.48/lib/debian/_deb822_repro/_util.py 2022-09-11 03:35:03.000000000 +0200
@@ -116,10 +116,10 @@
return _impl
-if sys.version_info >= (3, 8) or TYPE_CHECKING:
+if sys.version_info >= (3, 9) or TYPE_CHECKING:
_bufferingIterator_Base = collections.abc.Iterator[T]
else:
- # Python 3.5 - 3.7 compat - we are not allowed to subscript the abc.Iterator
+ # Python 3.5 - 3.8 compat - we are not allowed to subscript the abc.Iterator
# - use this little hack to work around it
class _bufferingIterator_Base(collections.abc.Iterator, Generic[T], ABC):
pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-debian-0.1.47/lib/debian/_deb822_repro/parsing.py new/python-debian-0.1.48/lib/debian/_deb822_repro/parsing.py
--- old/python-debian-0.1.47/lib/debian/_deb822_repro/parsing.py 2022-08-28 10:20:36.000000000 +0200
+++ new/python-debian-0.1.48/lib/debian/_deb822_repro/parsing.py 2022-10-15 07:03:08.000000000 +0200
@@ -133,10 +133,10 @@
self._node = None
-if sys.version_info >= (3, 8) or TYPE_CHECKING:
+if sys.version_info >= (3, 9) or TYPE_CHECKING:
_Deb822ParsedTokenList_ContextManager = contextlib.AbstractContextManager[T]
else:
- # Python 3.5 - 3.7 compat - we are not allowed to subscript the abc.Iterator
+ # Python 3.5 - 3.8 compat - we are not allowed to subscript the abc.Iterator
# - use this little hack to work around it
# Note that Python 3.5 is so old that it does not have AbstractContextManager,
# so we re-implement it here.
@@ -1305,10 +1305,10 @@
if not x.is_comment)
-if sys.version_info >= (3, 8) or TYPE_CHECKING:
+if sys.version_info >= (3, 9) or TYPE_CHECKING:
_ParagraphMapping_Base = collections.abc.Mapping[ParagraphKey, T]
else:
- # Python 3.5 - 3.7 compat - we are not allowed to subscript the abc.Iterator
+ # Python 3.5 - 3.8 compat - we are not allowed to subscript the abc.Iterator
# - use this little hack to work around it
class _ParagraphMapping_Base(collections.abc.Mapping, Generic[T], ABC):
pass
@@ -2480,7 +2480,10 @@
if not isinstance(item, (str, tuple, Deb822FieldNameToken)):
return False
item = cast('ParagraphKey', item)
- return self.get_kvpair_element(item, use_get=True) is not None
+ try:
+ return self.get_kvpair_element(item, use_get=True) is not None
+ except AmbiguousDeb822FieldKeyError:
+ return True
def set_kvpair_element(self, key, value):
# type: (ParagraphKey, Deb822KeyValuePairElement) -> None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-debian-0.1.47/lib/debian/_version.py new/python-debian-0.1.48/lib/debian/_version.py
--- old/python-debian-0.1.47/lib/debian/_version.py 2022-08-28 10:29:23.000000000 +0200
+++ new/python-debian-0.1.48/lib/debian/_version.py 2022-10-15 07:04:00.000000000 +0200
@@ -1,3 +1,3 @@
""" Version of the package """
-__version__ = '0.1.47'
+__version__ = '0.1.48'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-debian-0.1.47/lib/debian/substvars.py new/python-debian-0.1.48/lib/debian/substvars.py
--- old/python-debian-0.1.47/lib/debian/substvars.py 2022-07-07 02:41:07.000000000 +0200
+++ new/python-debian-0.1.48/lib/debian/substvars.py 2022-09-11 03:35:03.000000000 +0200
@@ -116,11 +116,11 @@
return self.resolve() == other.resolve()
-if sys.version_info >= (3, 8) or TYPE_CHECKING:
+if sys.version_info >= (3, 9) or TYPE_CHECKING:
class _Substvars_Base(contextlib.AbstractContextManager[T], MutableMapping[str, str], ABC):
pass
else:
- # Python 3.5 - 3.7 compat - we are not allowed to subscript the abc.MutableMapping
+ # Python 3.5 - 3.8 compat - we are not allowed to subscript the abc.MutableMapping
# - use this little hack to work around it
# Note that Python 3.5 is so old that it does not have AbstractContextManager,
# so we re-implement it here as well.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-debian-0.1.47/lib/python_debian.egg-info/PKG-INFO new/python-debian-0.1.48/lib/python_debian.egg-info/PKG-INFO
--- old/python-debian-0.1.47/lib/python_debian.egg-info/PKG-INFO 2022-08-28 10:29:25.000000000 +0200
+++ new/python-debian-0.1.48/lib/python_debian.egg-info/PKG-INFO 2022-10-15 07:04:01.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: python-debian
-Version: 0.1.47
+Version: 0.1.48
Summary: Debian package related modules
Home-page: https://salsa.debian.org/python-debian-team/python-debian
Maintainer: Debian python-debian Maintainers
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-python-gitlab for openSUSE:Factory checked in at 2022-10-31 12:15:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-gitlab (Old)
and /work/SRC/openSUSE:Factory/.python-python-gitlab.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-gitlab"
Mon Oct 31 12:15:17 2022 rev:13 rq:1032447 version:3.10.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-gitlab/python-python-gitlab.changes 2022-10-08 01:25:50.522314568 +0200
+++ /work/SRC/openSUSE:Factory/.python-python-gitlab.new.2275/python-python-gitlab.changes 2022-10-31 12:15:19.074389756 +0100
@@ -2 +2 @@
-Thu Oct 6 22:29:41 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam(a)suse.com>
+Fri Oct 28 20:36:42 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam(a)suse.com>
@@ -10,0 +11,3 @@
+
+-------------------------------------------------------------------
+Thu Oct 6 22:29:41 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam(a)suse.com>
Old:
----
python-gitlab-3.9.0.tar.gz
New:
----
python-gitlab-3.10.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-gitlab.spec ++++++
--- /var/tmp/diff_new_pack.2NqM6L/_old 2022-10-31 12:15:19.790393117 +0100
+++ /var/tmp/diff_new_pack.2NqM6L/_new 2022-10-31 12:15:19.794393136 +0100
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-python-gitlab
-Version: 3.9.0
+Version: 3.10.0
Release: 0
Summary: Python module for interacting with the GitLab API
License: LGPL-3.0-only
++++++ python-gitlab-3.9.0.tar.gz -> python-gitlab-3.10.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/CHANGELOG.md new/python-gitlab-3.10.0/CHANGELOG.md
--- old/python-gitlab-3.9.0/CHANGELOG.md 2022-08-28 02:41:49.000000000 +0200
+++ new/python-gitlab-3.10.0/CHANGELOG.md 2022-09-28 02:51:49.000000000 +0200
@@ -2,6 +2,15 @@
<!--next-version-placeholder-->
+## v3.10.0 (2022-09-28)
+### Feature
+* Add reset_approvals api ([`88693ff`](https://github.com/python-gitlab/python-gitlab/commit/88693ff2d6f4eecf3c79d017df52738886e2d636))
+* Add support for deployment approval endpoint ([`9c9eeb9`](https://github.com/python-gitlab/python-gitlab/commit/9c9eeb901b1f3acd3fb0c4f24014ae2ed7c975ec))
+
+### Fix
+* **cli:** Add missing attributes for creating MRs ([`1714d0a`](https://github.com/python-gitlab/python-gitlab/commit/1714d0a980afdb648d203751dedf95ee95ac326e))
+* **cli:** Add missing attribute for MR changes ([`20c46a0`](https://github.com/python-gitlab/python-gitlab/commit/20c46a0572d962f405041983e38274aeb79a12e4))
+
## v3.9.0 (2022-08-28)
### Feature
* Add support for merge_base API ([`dd4fbd5`](https://github.com/python-gitlab/python-gitlab/commit/dd4fbd5e43adbbc502624a8de0d30925d798dec0))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/PKG-INFO new/python-gitlab-3.10.0/PKG-INFO
--- old/python-gitlab-3.9.0/PKG-INFO 2022-08-28 02:41:51.505055000 +0200
+++ new/python-gitlab-3.10.0/PKG-INFO 2022-09-28 02:51:52.170605000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: python-gitlab
-Version: 3.9.0
+Version: 3.10.0
Summary: Interact with GitLab API
Home-page: https://github.com/python-gitlab/python-gitlab
Author: Gauvain Pocentek
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/docs/gl_objects/deployments.rst new/python-gitlab-3.10.0/docs/gl_objects/deployments.rst
--- old/python-gitlab-3.9.0/docs/gl_objects/deployments.rst 2022-08-28 02:41:48.000000000 +0200
+++ new/python-gitlab-3.10.0/docs/gl_objects/deployments.rst 2022-09-28 02:51:48.000000000 +0200
@@ -40,6 +40,18 @@
deployment.status = "failed"
deployment.save()
+Approve a deployment::
+
+ deployment = project.deployments.get(42)
+ # `status` must be either "approved" or "rejected".
+ deployment.approval(status="approved")
+
+Reject a deployment::
+
+ deployment = project.deployments.get(42)
+ # Using the optional `comment` and `represented_as` arguments
+ deployment.approval(status="rejected", comment="Fails CI", represented_as="security")
+
Merge requests associated with a deployment
===========================================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/docs/gl_objects/merge_requests.rst new/python-gitlab-3.10.0/docs/gl_objects/merge_requests.rst
--- old/python-gitlab-3.9.0/docs/gl_objects/merge_requests.rst 2022-08-28 02:41:48.000000000 +0200
+++ new/python-gitlab-3.10.0/docs/gl_objects/merge_requests.rst 2022-09-28 02:51:48.000000000 +0200
@@ -189,6 +189,10 @@
mr.rebase()
+Clear all approvals of a merge request (possible with project or group access tokens only)::
+
+ mr.reset_approvals()
+
Get status of a rebase for an MR::
mr = project.mergerequests.get(mr_id, include_rebase_in_progress=True)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/gitlab/_version.py new/python-gitlab-3.10.0/gitlab/_version.py
--- old/python-gitlab-3.9.0/gitlab/_version.py 2022-08-28 02:41:49.000000000 +0200
+++ new/python-gitlab-3.10.0/gitlab/_version.py 2022-09-28 02:51:49.000000000 +0200
@@ -3,4 +3,4 @@
__email__ = "gauvainpocentek(a)gmail.com"
__license__ = "LGPL3"
__title__ = "python-gitlab"
-__version__ = "3.9.0"
+__version__ = "3.10.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/gitlab/exceptions.py new/python-gitlab-3.10.0/gitlab/exceptions.py
--- old/python-gitlab-3.9.0/gitlab/exceptions.py 2022-08-28 02:41:48.000000000 +0200
+++ new/python-gitlab-3.10.0/gitlab/exceptions.py 2022-09-28 02:51:48.000000000 +0200
@@ -205,6 +205,10 @@
pass
+class GitlabMRResetApprovalError(GitlabOperationError):
+ pass
+
+
class GitlabMRClosedError(GitlabOperationError):
pass
@@ -301,6 +305,10 @@
pass
+class GitlabDeploymentApprovalError(GitlabOperationError):
+ pass
+
+
# For an explanation of how these type-hints work see:
# https://mypy.readthedocs.io/en/stable/generics.html#declaring-decorators
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/gitlab/v4/objects/deployments.py new/python-gitlab-3.10.0/gitlab/v4/objects/deployments.py
--- old/python-gitlab-3.9.0/gitlab/v4/objects/deployments.py 2022-08-28 02:41:48.000000000 +0200
+++ new/python-gitlab-3.10.0/gitlab/v4/objects/deployments.py 2022-09-28 02:51:48.000000000 +0200
@@ -1,5 +1,11 @@
-from typing import Any, cast, Union
+"""
+GitLab API:
+https://docs.gitlab.com/ee/api/deployments.html
+"""
+from typing import Any, cast, Dict, Optional, TYPE_CHECKING, Union
+from gitlab import cli
+from gitlab import exceptions as exc
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import CreateMixin, RetrieveMixin, SaveMixin, UpdateMixin
from gitlab.types import RequiredOptional
@@ -15,6 +21,50 @@
class ProjectDeployment(SaveMixin, RESTObject):
mergerequests: ProjectDeploymentMergeRequestManager
+ @cli.register_custom_action(
+ "ProjectDeployment",
+ mandatory=("status",),
+ optional=("comment", "represented_as"),
+ )
+ @exc.on_http_error(exc.GitlabDeploymentApprovalError)
+ def approval(
+ self,
+ status: str,
+ comment: Optional[str] = None,
+ represented_as: Optional[str] = None,
+ **kwargs: Any,
+ ) -> Dict[str, Any]:
+ """Approve or reject a blocked deployment.
+
+ Args:
+ status: Either "approved" or "rejected"
+ comment: A comment to go with the approval
+ represented_as: The name of the User/Group/Role to use for the
+ approval, when the user belongs to multiple
+ approval rules.
+ **kwargs: Extra options to send to the server (e.g. sudo)
+
+ Raises:
+ GitlabAuthenticationError: If authentication is not correct
+ GitlabMRApprovalError: If the approval failed
+
+ Returns:
+ A dict containing the result.
+
+ https://docs.gitlab.com/ee/api/deployments.html#approve-or-reject-a-blocked…
+ """
+ path = f"{self.manager.path}/{self.encoded_id}/approval"
+ data = {"status": status}
+ if comment is not None:
+ data["comment"] = comment
+ if represented_as is not None:
+ data["represented_as"] = represented_as
+
+ server_data = self.manager.gitlab.http_post(path, post_data=data, **kwargs)
+ if TYPE_CHECKING:
+ assert isinstance(server_data, dict)
+ return server_data
+
class ProjectDeploymentManager(RetrieveMixin, CreateMixin, UpdateMixin, RESTManager):
_path = "/projects/{project_id}/deployments"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/gitlab/v4/objects/merge_requests.py new/python-gitlab-3.10.0/gitlab/v4/objects/merge_requests.py
--- old/python-gitlab-3.9.0/gitlab/v4/objects/merge_requests.py 2022-08-28 02:41:48.000000000 +0200
+++ new/python-gitlab-3.10.0/gitlab/v4/objects/merge_requests.py 2022-09-28 02:51:48.000000000 +0200
@@ -242,7 +242,7 @@
manager = ProjectCommitManager(self.manager.gitlab, parent=self.manager._parent)
return RESTObjectList(manager, ProjectCommit, data_list)
- @cli.register_custom_action("ProjectMergeRequest")
+ @cli.register_custom_action("ProjectMergeRequest", optional=("access_raw_diffs",))
@exc.on_http_error(exc.GitlabListError)
def changes(self, **kwargs: Any) -> Union[Dict[str, Any], requests.Response]:
"""List the merge request changes.
@@ -328,6 +328,24 @@
return self.manager.gitlab.http_put(path, post_data=data, **kwargs)
@cli.register_custom_action("ProjectMergeRequest")
+ @exc.on_http_error(exc.GitlabMRResetApprovalError)
+ def reset_approvals(
+ self, **kwargs: Any
+ ) -> Union[Dict[str, Any], requests.Response]:
+ """Clear all approvals of the merge request.
+
+ Args:
+ **kwargs: Extra options to send to the server (e.g. sudo)
+
+ Raises:
+ GitlabAuthenticationError: If authentication is not correct
+ GitlabMRResetApprovalError: If reset approval failed
+ """
+ path = f"{self.manager.path}/{self.encoded_id}/reset_approvals"
+ data: Dict[str, Any] = {}
+ return self.manager.gitlab.http_put(path, post_data=data, **kwargs)
+
+ @cli.register_custom_action("ProjectMergeRequest")
@exc.on_http_error(exc.GitlabGetError)
def merge_ref(self, **kwargs: Any) -> Union[Dict[str, Any], requests.Response]:
"""Attempt to merge changes between source and target branches into
@@ -401,15 +419,18 @@
_create_attrs = RequiredOptional(
required=("source_branch", "target_branch", "title"),
optional=(
+ "allow_collaboration",
+ "allow_maintainer_to_push",
+ "approvals_before_merge",
"assignee_id",
+ "assignee_ids",
"description",
- "target_project_id",
"labels",
"milestone_id",
"remove_source_branch",
- "allow_maintainer_to_push",
- "squash",
"reviewer_ids",
+ "squash",
+ "target_project_id",
),
)
_update_attrs = RequiredOptional(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/python_gitlab.egg-info/PKG-INFO new/python-gitlab-3.10.0/python_gitlab.egg-info/PKG-INFO
--- old/python-gitlab-3.9.0/python_gitlab.egg-info/PKG-INFO 2022-08-28 02:41:51.000000000 +0200
+++ new/python-gitlab-3.10.0/python_gitlab.egg-info/PKG-INFO 2022-09-28 02:51:52.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: python-gitlab
-Version: 3.9.0
+Version: 3.10.0
Summary: Interact with GitLab API
Home-page: https://github.com/python-gitlab/python-gitlab
Author: Gauvain Pocentek
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/requirements-lint.txt new/python-gitlab-3.10.0/requirements-lint.txt
--- old/python-gitlab-3.9.0/requirements-lint.txt 2022-08-28 02:41:48.000000000 +0200
+++ new/python-gitlab-3.10.0/requirements-lint.txt 2022-09-28 02:51:48.000000000 +0200
@@ -1,11 +1,11 @@
argcomplete<=2.0.0
-black==22.6.0
-commitizen==2.32.1
+black==22.8.0
+commitizen==2.32.5
flake8==5.0.4
isort==5.10.1
mypy==0.971
pylint==2.14.5
-pytest==7.1.2
+pytest==7.1.3
types-PyYAML==6.0.11
-types-requests==2.28.9
+types-requests==2.28.10
types-setuptools==64.0.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/requirements-test.txt new/python-gitlab-3.10.0/requirements-test.txt
--- old/python-gitlab-3.9.0/requirements-test.txt 2022-08-28 02:41:48.000000000 +0200
+++ new/python-gitlab-3.10.0/requirements-test.txt 2022-09-28 02:51:48.000000000 +0200
@@ -1,5 +1,5 @@
coverage
-pytest==7.1.2
+pytest==7.1.3
pytest-console-scripts==1.3.1
pytest-cov
pytest-github-actions-annotate-failures==0.1.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/tests/functional/api/test_gitlab.py new/python-gitlab-3.10.0/tests/functional/api/test_gitlab.py
--- old/python-gitlab-3.9.0/tests/functional/api/test_gitlab.py 2022-08-28 02:41:48.000000000 +0200
+++ new/python-gitlab-3.10.0/tests/functional/api/test_gitlab.py 2022-09-28 02:51:48.000000000 +0200
@@ -59,7 +59,7 @@
def test_sidekiq_queue_metrics(gl):
out = gl.sidekiq.queue_metrics()
assert isinstance(out, dict)
- assert "pages" in out["queues"]
+ assert "default" in out["queues"]
def test_sidekiq_process_metrics(gl):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/tests/functional/api/test_merge_requests.py new/python-gitlab-3.10.0/tests/functional/api/test_merge_requests.py
--- old/python-gitlab-3.9.0/tests/functional/api/test_merge_requests.py 2022-08-28 02:41:48.000000000 +0200
+++ new/python-gitlab-3.10.0/tests/functional/api/test_merge_requests.py 2022-09-28 02:51:48.000000000 +0200
@@ -117,6 +117,15 @@
assert mr.rebase()
+def test_merge_request_reset_approvals(gitlab_url, project):
+ bot = project.access_tokens.create({"name": "bot", "scopes": ["api"]})
+ bot_gitlab = gitlab.Gitlab(gitlab_url, private_token=bot.token)
+ bot_project = bot_gitlab.projects.get(project.id, lazy=True)
+
+ mr = bot_project.mergerequests.list()[0]
+ assert mr.reset_approvals()
+
+
@pytest.mark.skip(reason="flaky test")
def test_merge_request_merge(project):
mr = project.mergerequests.list()[0]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/tests/functional/conftest.py new/python-gitlab-3.10.0/tests/functional/conftest.py
--- old/python-gitlab-3.9.0/tests/functional/conftest.py 2022-08-28 02:41:48.000000000 +0200
+++ new/python-gitlab-3.10.0/tests/functional/conftest.py 2022-09-28 02:51:48.000000000 +0200
@@ -68,11 +68,18 @@
if is_gitlab_ee(gl):
logging.info("GitLab EE detected")
# NOTE(jlvillal): By default in GitLab EE it will wait 7 days before
- # deleting a group. Change it to 0 days.
+ # deleting a group. Disable delayed group/project deletion.
settings = gl.settings.get()
- if settings.deletion_adjourned_period != 0:
- logging.info("Setting deletion_adjourned_period to 0")
- settings.deletion_adjourned_period = 0
+ modified_settings = False
+ if settings.delayed_group_deletion:
+ logging.info("Setting `delayed_group_deletion` to False")
+ settings.delayed_group_deletion = False
+ modified_settings = True
+ if settings.delayed_project_deletion:
+ logging.info("Setting `delayed_project_deletion` to False")
+ settings.delayed_project_deletion = False
+ modified_settings = True
+ if modified_settings:
settings.save()
for project in gl.projects.list():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/tests/functional/fixtures/.env new/python-gitlab-3.10.0/tests/functional/fixtures/.env
--- old/python-gitlab-3.9.0/tests/functional/fixtures/.env 2022-08-28 02:41:48.000000000 +0200
+++ new/python-gitlab-3.10.0/tests/functional/fixtures/.env 2022-09-28 02:51:48.000000000 +0200
@@ -1,2 +1,2 @@
GITLAB_IMAGE=gitlab/gitlab-ee
-GITLAB_TAG=15.2.0-ee.0
+GITLAB_TAG=15.4.0-ee.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gitlab-3.9.0/tests/unit/objects/test_deployments.py new/python-gitlab-3.10.0/tests/unit/objects/test_deployments.py
--- old/python-gitlab-3.9.0/tests/unit/objects/test_deployments.py 2022-08-28 02:41:48.000000000 +0200
+++ new/python-gitlab-3.10.0/tests/unit/objects/test_deployments.py 2022-09-28 02:51:49.000000000 +0200
@@ -6,7 +6,25 @@
@pytest.fixture
-def resp_deployment():
+def resp_deployment_get():
+ with responses.RequestsMock() as rsps:
+ rsps.add(
+ method=responses.GET,
+ url="http://localhost/api/v4/projects/1/deployments/42",
+ json=response_get_content,
+ content_type="application/json",
+ status=200,
+ )
+ yield rsps
+
+
+(a)pytest.fixture
+def deployment(project):
+ return project.deployments.get(42, lazy=True)
+
+
+(a)pytest.fixture
+def resp_deployment_create():
content = {"id": 42, "status": "success", "ref": "main"}
with responses.RequestsMock() as rsps:
@@ -31,7 +49,42 @@
yield rsps
-def test_deployment(project, resp_deployment):
+(a)pytest.fixture
+def resp_deployment_approval():
+ content = {
+ "user": {
+ "id": 100,
+ "username": "security-user-1",
+ "name": "security user-1",
+ "state": "active",
+ "avatar_url": "https://www.gravatar.com/avatar/e130fcd3a1681f41a3de69d10841afa9?s=80&d=ide…",
+ "web_url": "http://localhost:3000/security-user-1",
+ },
+ "status": "approved",
+ "created_at": "2022-02-24T20:22:30.097Z",
+ "comment": "Looks good to me",
+ }
+
+ with responses.RequestsMock() as rsps:
+ rsps.add(
+ method=responses.POST,
+ url="http://localhost/api/v4/projects/1/deployments/42/approval",
+ json=content,
+ content_type="application/json",
+ status=200,
+ )
+ yield rsps
+
+
+def test_deployment_get(project, resp_deployment_get):
+ deployment = project.deployments.get(42)
+ assert deployment.id == 42
+ assert deployment.iid == 2
+ assert deployment.status == "success"
+ assert deployment.ref == "main"
+
+
+def test_deployment_create(project, resp_deployment_create):
deployment = project.deployments.create(
{
"environment": "Test",
@@ -48,3 +101,80 @@
deployment.status = "failed"
deployment.save()
assert deployment.status == "failed"
+
+
+def test_deployment_approval(deployment, resp_deployment_approval) -> None:
+ result = deployment.approval(status="approved")
+ assert result["status"] == "approved"
+ assert result["comment"] == "Looks good to me"
+
+
+response_get_content = {
+ "id": 42,
+ "iid": 2,
+ "ref": "main",
+ "sha": "a91957a858320c0e17f3a0eca7cfacbff50ea29a",
+ "created_at": "2016-08-11T11:32:35.444Z",
+ "updated_at": "2016-08-11T11:34:01.123Z",
+ "status": "success",
+ "user": {
+ "name": "Administrator",
+ "username": "root",
+ "id": 1,
+ "state": "active",
+ "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=iden…",
+ "web_url": "http://localhost:3000/root",
+ },
+ "environment": {
+ "id": 9,
+ "name": "production",
+ "external_url": "https://about.gitlab.com",
+ },
+ "deployable": {
+ "id": 664,
+ "status": "success",
+ "stage": "deploy",
+ "name": "deploy",
+ "ref": "main",
+ "tag": False,
+ "coverage": None,
+ "created_at": "2016-08-11T11:32:24.456Z",
+ "started_at": None,
+ "finished_at": "2016-08-11T11:32:35.145Z",
+ "user": {
+ "id": 1,
+ "name": "Administrator",
+ "username": "root",
+ "state": "active",
+ "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=iden…",
+ "web_url": "http://gitlab.dev/root",
+ "created_at": "2015-12-21T13:14:24.077Z",
+ "bio": None,
+ "location": None,
+ "skype": "",
+ "linkedin": "",
+ "twitter": "",
+ "website_url": "",
+ "organization": "",
+ },
+ "commit": {
+ "id": "a91957a858320c0e17f3a0eca7cfacbff50ea29a",
+ "short_id": "a91957a8",
+ "title": "Merge branch 'rename-readme' into 'main'\r",
+ "author_name": "Administrator",
+ "author_email": "admin(a)example.com",
+ "created_at": "2016-08-11T13:28:26.000+02:00",
+ "message": "Merge branch 'rename-readme' into 'main'\r\n\r\nRename README\r\n\r\n\r\n\r\nSee merge request !2",
+ },
+ "pipeline": {
+ "created_at": "2016-08-11T07:43:52.143Z",
+ "id": 42,
+ "ref": "main",
+ "sha": "a91957a858320c0e17f3a0eca7cfacbff50ea29a",
+ "status": "success",
+ "updated_at": "2016-08-11T07:43:52.143Z",
+ "web_url": "http://gitlab.dev/root/project/pipelines/5",
+ },
+ "runner": None,
+ },
+}
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-python-rapidjson for openSUSE:Factory checked in at 2022-10-31 12:15:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-rapidjson (Old)
and /work/SRC/openSUSE:Factory/.python-python-rapidjson.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-rapidjson"
Mon Oct 31 12:15:16 2022 rev:9 rq:1032446 version:1.9
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-rapidjson/python-python-rapidjson.changes 2022-10-08 01:25:45.246302467 +0200
+++ /work/SRC/openSUSE:Factory/.python-python-rapidjson.new.2275/python-python-rapidjson.changes 2022-10-31 12:15:17.906384273 +0100
@@ -1,0 +2,6 @@
+Fri Oct 28 20:41:04 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam(a)suse.com>
+
+- Update to 1.9
+ * Produce Python 3.11 wheels, thanks to cibuildwheel 2.11.1.
+
+-------------------------------------------------------------------
Old:
----
python-rapidjson-1.8.tar.gz
New:
----
python-rapidjson-1.9.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-rapidjson.spec ++++++
--- /var/tmp/diff_new_pack.p4oqTN/_old 2022-10-31 12:15:18.450386827 +0100
+++ /var/tmp/diff_new_pack.p4oqTN/_new 2022-10-31 12:15:18.454386846 +0100
@@ -21,7 +21,7 @@
# check git submodule and update devel:libraries:c_c++/rapidjson
%define rjversion 1.1.0+git20211015.4d6cb081
Name: python-python-rapidjson
-Version: 1.8
+Version: 1.9
Release: 0
Summary: Python wrapper around rapidjson
License: MIT
++++++ python-rapidjson-1.8.tar.gz -> python-rapidjson-1.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-1.8/.github/workflows/main.yml new/python-rapidjson-1.9/.github/workflows/main.yml
--- old/python-rapidjson-1.8/.github/workflows/main.yml 2022-07-07 07:21:46.000000000 +0200
+++ new/python-rapidjson-1.9/.github/workflows/main.yml 2022-10-17 08:30:59.000000000 +0200
@@ -111,7 +111,7 @@
name: Set up QEMU
- name: Build wheels
- uses: pypa/cibuildwheel(a)v2.8.0
+ uses: pypa/cibuildwheel(a)v2.11.1
env:
CIBW_ARCHS_LINUX: ${{matrix.arch}}
CIBW_TEST_REQUIRES: "pytest pytest-benchmark pytz"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-1.8/CHANGES.rst new/python-rapidjson-1.9/CHANGES.rst
--- old/python-rapidjson-1.8/CHANGES.rst 2022-07-07 07:21:46.000000000 +0200
+++ new/python-rapidjson-1.9/CHANGES.rst 2022-10-17 08:30:59.000000000 +0200
@@ -1,6 +1,14 @@
Changes
-------
+1.9 (2022-10-17)
+~~~~~~~~~~~~~~~~
+
+* Produce Python 3.11 wheels, thanks to ``cibuildwheel`` `2.11.1`__
+
+ __ https://cibuildwheel.readthedocs.io/en/stable/changelog/#v2111
+
+
1.8 (2022-07-07)
~~~~~~~~~~~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-1.8/rapidjson.cpp new/python-rapidjson-1.9/rapidjson.cpp
--- old/python-rapidjson-1.8/rapidjson.cpp 2022-07-07 07:21:46.000000000 +0200
+++ new/python-rapidjson-1.9/rapidjson.cpp 2022-10-17 08:30:59.000000000 +0200
@@ -51,7 +51,7 @@
static PyObject* decode_error = NULL;
-/* These are the names of oftenly used methods or literal values, interned in the module
+/* These are the names of often used methods or literal values, interned in the module
initialization function, to avoid repeated creation/destruction of PyUnicode values
from plain C strings.
@@ -393,7 +393,7 @@
}
}
if (c == NULL) {
- // Propagate the error state, it will be catched by dumps_internal()
+ // Propagate the error state, it will be caught by dumps_internal()
} else {
PyObject* res = PyObject_CallMethodObjArgs(stream, write_name, c, NULL);
if (res == NULL) {
@@ -2493,9 +2493,9 @@
ASSERT_VALID_SIZE(l);
writer->String(s, (SizeType) l);
Py_DECREF(unicodeObj);
- } else if ((!(iterableMode & IM_ONLY_LISTS) && PyList_Check(object))
+ } else if (PyList_CheckExact(object)
||
- PyList_CheckExact(object)) {
+ (!(iterableMode & IM_ONLY_LISTS) && PyList_Check(object))) {
writer->StartArray();
Py_ssize_t size = PyList_GET_SIZE(object);
@@ -2527,9 +2527,9 @@
}
writer->EndArray();
- } else if (((!(mappingMode & MM_ONLY_DICTS) && PyDict_Check(object))
+ } else if ((PyDict_CheckExact(object)
||
- PyDict_CheckExact(object))
+ (!(mappingMode & MM_ONLY_DICTS) && PyDict_Check(object)))
&&
((mappingMode & MM_SKIP_NON_STRING_KEYS)
||
@@ -2634,7 +2634,11 @@
char isoformat[ISOFORMAT_LEN];
memset(isoformat, 0, ISOFORMAT_LEN);
- const int TIMEZONE_LEN = 16;
+ // The timezone is always shorter than this, but gcc12 emits a warning about
+ // sprintf() that *may* produce longer results, because we pass int values when
+ // concretely they are constrained to 24*3600 seconds: pacify gcc using a bigger
+ // buffer
+ const int TIMEZONE_LEN = 24;
char timeZone[TIMEZONE_LEN] = { 0 };
if (!(datetimeMode & DM_IGNORE_TZ)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-1.8/tests/test_refs_count.py new/python-rapidjson-1.9/tests/test_refs_count.py
--- old/python-rapidjson-1.8/tests/test_refs_count.py 2022-07-07 07:21:46.000000000 +0200
+++ new/python-rapidjson-1.9/tests/test_refs_count.py 2022-10-17 08:30:59.000000000 +0200
@@ -5,7 +5,7 @@
# :Copyright: �� 2017, 2018, 2020, 2022 Lele Gaifax
#
-# NB: this is a simplicistic test that uses sys.gettotalrefcount(), available
+# NB: this is a simplistic test that uses sys.gettotalrefcount(), available
# when the interpreter is built --with-pydebug, that tries to assert that
# repeated calls to dumps() and loads() does not leak object references.
# Since it's not an exact science, it should be taken with a grain of salt.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-1.8/version.txt new/python-rapidjson-1.9/version.txt
--- old/python-rapidjson-1.8/version.txt 2022-07-07 07:21:46.000000000 +0200
+++ new/python-rapidjson-1.9/version.txt 2022-10-17 08:30:59.000000000 +0200
@@ -1 +1 @@
-1.8
\ No newline at end of file
+1.9
\ No newline at end of file
1
0