Hello community,
here is the log from the commit of package python-twitter.common.rpc for
openSUSE:Factory checked in at 2019-04-18 09:57:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-twitter.common.rpc (Old)
and /work/SRC/openSUSE:Factory/.python-twitter.common.rpc.new.17052 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-twitter.common.rpc"
Thu Apr 18 09:57:21 2019 rev:2 rq:695332 version:0.3.11
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-twitter.common.rpc/python-twitter.common.rpc.changes
2018-12-13 19:50:11.736565208 +0100
+++
/work/SRC/openSUSE:Factory/.python-twitter.common.rpc.new.17052/python-twitter.common.rpc.changes
2019-04-18 09:57:23.077377505 +0200
@@ -1,0 +2,6 @@
+Mon Apr 15 07:59:43 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- update to version 0.3.11
+ * no changelog available
+
+-------------------------------------------------------------------
Old:
----
twitter.common.rpc-0.3.9.tar.gz
New:
----
twitter.common.rpc-0.3.11.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-twitter.common.rpc.spec ++++++
--- /var/tmp/diff_new_pack.H339KH/_old 2019-04-18 09:57:23.757377929 +0200
+++ /var/tmp/diff_new_pack.H339KH/_new 2019-04-18 09:57:23.757377929 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-twitter.common.rpc
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,23 +12,23 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-twitter.common.rpc
-Version: 0.3.9
+Version: 0.3.11
Release: 0
Summary: Thrift helpers including finagle and SSL transports
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/twitter/commons
-Source0:
https://files.pythonhosted.org/packages/be/97/f5f701b703d0f25fbf148992cd58d55b4d08d3db785aad209255ee67e2d0/twitter.common.rpc-0.3.9.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/t/twitter.common.rpc/twitter.common.rpc-%{version}.tar.gz
Source1:
https://raw.githubusercontent.com/twitter/commons/master/LICENSE
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
-BuildRequires: %{python_module twitter.common.lang}
BuildRequires: %{python_module twitter.common.finagle-thrift}
+BuildRequires: %{python_module twitter.common.lang}
BuildRequires: python-rpm-macros
%python_subpackages
++++++ twitter.common.rpc-0.3.9.tar.gz -> twitter.common.rpc-0.3.11.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/twitter.common.rpc-0.3.9/PKG-INFO
new/twitter.common.rpc-0.3.11/PKG-INFO
--- old/twitter.common.rpc-0.3.9/PKG-INFO 2016-10-17 22:53:26.000000000
+0200
+++ new/twitter.common.rpc-0.3.11/PKG-INFO 2019-03-28 23:49:58.000000000
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: twitter.common.rpc
-Version: 0.3.9
+Version: 0.3.11
Summary: twitter.common thrift helpers including finagle and ssl transports.
Home-page: https://github.com/twitter/commons
Author: UNKNOWN
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/twitter.common.rpc-0.3.9/setup.py
new/twitter.common.rpc-0.3.11/setup.py
--- old/twitter.common.rpc-0.3.9/setup.py 2016-10-17 22:52:06.000000000
+0200
+++ new/twitter.common.rpc-0.3.11/setup.py 2019-03-28 23:49:56.000000000
+0100
@@ -1,6 +1,6 @@
# DO NOT EDIT THIS FILE -- AUTOGENERATED BY PANTS
-# Target:
PythonLibrary(BuildFileAddress(FilesystemBuildFile(/Users/jdorlus/dev/GitHub/twitter_commons/src/python/twitter/common/rpc/BUILD),
rpc-packaged))
+# Target: PythonLibrary(BuildFileAddress(src/python/twitter/common/rpc/BUILD,
rpc))
from setuptools import setup
@@ -11,9 +11,7 @@
'Programming Language :: Python'],
'description': 'twitter.common thrift helpers including finagle and ssl
transports.',
'extras_require': { 'sasl': ['kerberos==1.1.1', 'pure-sasl==0.1.4']},
- 'install_requires': [ 'thrift',
- 'twitter.common.lang==0.3.9',
- 'twitter.common.finagle-thrift==0.3.9'],
+ 'install_requires': ['thrift', 'twitter.common.lang==0.3.11'],
'license': 'Apache License, Version 2.0',
'name': 'twitter.common.rpc',
'namespace_packages': ['twitter', 'twitter.common'],
@@ -22,10 +20,9 @@
'packages': [ 'twitter',
'twitter.common',
'twitter.common.rpc',
- 'twitter.common.rpc.finagle',
'twitter.common.rpc.sasl',
'twitter.common.rpc.transports'],
'url': 'https://github.com/twitter/commons',
- 'version': '0.3.9',
+ 'version': '0.3.11',
'zip_safe': True}
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/twitter.common.rpc-0.3.9/src/twitter/common/rpc/finagle/__init__.py
new/twitter.common.rpc-0.3.11/src/twitter/common/rpc/finagle/__init__.py
--- old/twitter.common.rpc-0.3.9/src/twitter/common/rpc/finagle/__init__.py
2015-12-08 05:58:41.000000000 +0100
+++ new/twitter.common.rpc-0.3.11/src/twitter/common/rpc/finagle/__init__.py
1970-01-01 01:00:00.000000000 +0100
@@ -1,24 +0,0 @@
-#
==================================================================================================
-# Copyright 2013 Twitter, Inc.
-#
--------------------------------------------------------------------------------------------------
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this work except in compliance with the License.
-# You may obtain a copy of the License in the LICENSE file, or at:
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
==================================================================================================
-
-from twitter.common.rpc.finagle.protocol import (
- TFinagleProtocol,
- TFinagleProtocolWithClientId)
-
-__all__ = [
- 'TFinagleProtocol',
- 'TFinagleProtocolWithClientId'
-]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/twitter.common.rpc-0.3.9/src/twitter/common/rpc/finagle/protocol.py
new/twitter.common.rpc-0.3.11/src/twitter/common/rpc/finagle/protocol.py
--- old/twitter.common.rpc-0.3.9/src/twitter/common/rpc/finagle/protocol.py
2015-12-08 05:58:41.000000000 +0100
+++ new/twitter.common.rpc-0.3.11/src/twitter/common/rpc/finagle/protocol.py
1970-01-01 01:00:00.000000000 +0100
@@ -1,102 +0,0 @@
-#
==================================================================================================
-# Copyright 2013 Twitter, Inc.
-#
--------------------------------------------------------------------------------------------------
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this work except in compliance with the License.
-# You may obtain a copy of the License in the LICENSE file, or at:
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
==================================================================================================
-
-import functools
-import threading
-
-from thrift.Thrift import TApplicationException, TMessageType
-from thrift.protocol import TBinaryProtocol
-
-from gen.twitter.finagle.thrift.ttypes import (
- ClientId,
- ConnectionOptions,
- RequestHeader,
- ResponseHeader,
- UpgradeReply,
-)
-
-from .trace import Trace
-
-
-def upgrade_protocol_to_finagle(protocol):
- UPGRADE_METHOD = "__can__finagle__trace__v3__"
-
- def send(protocol):
- protocol.writeMessageBegin(UPGRADE_METHOD, TMessageType.CALL, 0)
- connection_options = ConnectionOptions()
- connection_options.write(protocol)
- protocol.writeMessageEnd()
- protocol.trans.flush()
-
- def recv(protocol):
- (fname, mtype, rseqid) = protocol.readMessageBegin()
- if fname != UPGRADE_METHOD:
- raise Exception('Unexpected error upgrading Finagle transport!')
- if mtype == TMessageType.EXCEPTION:
- exc = TApplicationException()
- exc.read(protocol)
- protocol.readMessageEnd()
- raise exc
- reply = UpgradeReply()
- reply.read(protocol)
- protocol.readMessageEnd()
- return reply
-
- send(protocol)
- return recv(protocol)
-
-
-class TFinagleProtocol(TBinaryProtocol.TBinaryProtocolAccelerated):
- def __init__(self, *args, **kw):
- self._locals = threading.local()
- self._finagle_upgraded = False
- self._client_id = kw.pop('client_id', None)
- self._client_id = ClientId(name=self._client_id) if self._client_id else
None
- TBinaryProtocol.TBinaryProtocolAccelerated.__init__(self, *args, **kw)
- try:
- upgrade_protocol_to_finagle(self)
- self._finagle_upgraded = True
- except TApplicationException:
- pass
-
- def to_request_header(self, trace_id):
- return RequestHeader(trace_id=trace_id.trace_id.value,
- parent_span_id=trace_id.parent_id.value,
- span_id=trace_id.span_id.value,
- sampled=trace_id.sampled,
- client_id=self._client_id)
-
- def writeMessageBegin(self, *args, **kwargs):
- if self._finagle_upgraded:
- if not hasattr(self._locals, 'trace'):
- self._locals.trace = Trace()
- trace_id = self._locals.trace.get()
- self.to_request_header(trace_id).write(self)
- with self._locals.trace.push(trace_id):
- return
TBinaryProtocol.TBinaryProtocolAccelerated.writeMessageBegin(self, *args,
**kwargs)
- else:
- return
TBinaryProtocol.TBinaryProtocolAccelerated.writeMessageBegin(self, *args,
**kwargs)
-
- def readMessageBegin(self, *args, **kwargs):
- if self._finagle_upgraded:
- header = ResponseHeader()
- header.read(self)
- self._locals.last_response = header
- return TBinaryProtocol.TBinaryProtocolAccelerated.readMessageBegin(self,
*args, **kwargs)
-
-
-def TFinagleProtocolWithClientId(client_id):
- return functools.partial(TFinagleProtocol, client_id=client_id)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/twitter.common.rpc-0.3.9/src/twitter/common/rpc/finagle/trace.py
new/twitter.common.rpc-0.3.11/src/twitter/common/rpc/finagle/trace.py
--- old/twitter.common.rpc-0.3.9/src/twitter/common/rpc/finagle/trace.py
2015-12-08 05:58:41.000000000 +0100
+++ new/twitter.common.rpc-0.3.11/src/twitter/common/rpc/finagle/trace.py
1970-01-01 01:00:00.000000000 +0100
@@ -1,113 +0,0 @@
-#
==================================================================================================
-# Copyright 2013 Twitter, Inc.
-#
--------------------------------------------------------------------------------------------------
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this work except in compliance with the License.
-# You may obtain a copy of the License in the LICENSE file, or at:
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
==================================================================================================
-
-import copy
-from contextlib import contextmanager
-import random
-import re
-
-class SpanId(object):
- __slots__ = ('_value',)
-
- HEX_REGEX = re.compile(r'^[a-f0-9]{16}$', re.IGNORECASE)
-
- class InvalidSpanId(ValueError):
- def __init__(self, value):
- ValueError.__init__(self, 'Invalid SpanId: %s' % repr(value))
-
- @staticmethod
- def from_value(value):
- if isinstance(value, str):
- if SpanId.HEX_REGEX.match(value):
- return SpanId(int(value, 16))
- elif isinstance(value, (int, long)):
- return SpanId(value)
- elif isinstance(value, SpanId):
- return SpanId(value.value)
- elif value is None:
- return SpanId(None)
- raise SpanId.InvalidSpanId(value)
-
- def __init__(self, value):
- self._value = value
-
- @property
- def value(self):
- return self._value
-
- def __str__(self):
- return 'SpanId(%016x)' % (self._value if self._value is not None else
'Empty')
-
-
-class TraceId(object):
- @staticmethod
- def rand():
- return random.randint(0, 2**63-1)
-
- def __init__(self, trace_id, parent_id, span_id, sampled):
- self.trace_id = SpanId.from_value(trace_id)
- self.parent_id = SpanId.from_value(parent_id)
- self.span_id = SpanId.from_value(span_id)
- self.sampled = bool(sampled)
-
- def next(self):
- return TraceId(self.trace_id, self.span_id, TraceId.rand(), self.sampled)
-
- def __str__(self):
- return 'TraceId(trace_id = %s, parent_id = %s, span_id = %s, sampled =
%s)' % (
- self.trace_id, self.parent_id, self.span_id, self.sampled)
-
-
-class Trace(object):
- """
- The container of a trace. Typically stored as a threadlocal on each
- finagle-upgraded protocol.
- """
- def __init__(self, sample_rate=0.001):
- assert 0.0 <= sample_rate <= 1.0
- self._sample_rate = sample_rate
- self._stack = []
-
- def get(self):
- if len(self._stack) == 0:
- span_id = TraceId.rand()
- trace_id = TraceId(span_id, None, span_id, self.should_sample())
- self._stack.append(trace_id)
- return self._stack[-1]
-
- @contextmanager
- def push(self, trace_id):
- self._stack.append(trace_id)
- try:
- yield self
- finally:
- self._stack.pop()
-
- @contextmanager
- def unwind(self):
- trace_id_copy = copy.deepcopy(self._stack[-1])
- try:
- yield self
- finally:
- self._stack[-1] = trace_id_copy
-
- def pop(self):
- return self._stack.pop()
-
- def should_sample(self):
- return random.random() < self._sample_rate
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/twitter.common.rpc-0.3.9/src/twitter.common.rpc.egg-info/PKG-INFO
new/twitter.common.rpc-0.3.11/src/twitter.common.rpc.egg-info/PKG-INFO
--- old/twitter.common.rpc-0.3.9/src/twitter.common.rpc.egg-info/PKG-INFO
2016-10-17 22:53:25.000000000 +0200
+++ new/twitter.common.rpc-0.3.11/src/twitter.common.rpc.egg-info/PKG-INFO
2019-03-28 23:49:58.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: twitter.common.rpc
-Version: 0.3.9
+Version: 0.3.11
Summary: twitter.common thrift helpers including finagle and ssl transports.
Home-page: https://github.com/twitter/commons
Author: UNKNOWN
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/twitter.common.rpc-0.3.9/src/twitter.common.rpc.egg-info/SOURCES.txt
new/twitter.common.rpc-0.3.11/src/twitter.common.rpc.egg-info/SOURCES.txt
--- old/twitter.common.rpc-0.3.9/src/twitter.common.rpc.egg-info/SOURCES.txt
2016-10-17 22:53:25.000000000 +0200
+++ new/twitter.common.rpc-0.3.11/src/twitter.common.rpc.egg-info/SOURCES.txt
2019-03-28 23:49:58.000000000 +0100
@@ -12,9 +12,6 @@
src/twitter/common/rpc/__init__.py
src/twitter/common/rpc/address.py
src/twitter/common/rpc/factories.py
-src/twitter/common/rpc/finagle/__init__.py
-src/twitter/common/rpc/finagle/protocol.py
-src/twitter/common/rpc/finagle/trace.py
src/twitter/common/rpc/sasl/__init__.py
src/twitter/common/rpc/sasl/transport.py
src/twitter/common/rpc/transports/__init__.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/twitter.common.rpc-0.3.9/src/twitter.common.rpc.egg-info/requires.txt
new/twitter.common.rpc-0.3.11/src/twitter.common.rpc.egg-info/requires.txt
--- old/twitter.common.rpc-0.3.9/src/twitter.common.rpc.egg-info/requires.txt
2016-10-17 22:53:25.000000000 +0200
+++ new/twitter.common.rpc-0.3.11/src/twitter.common.rpc.egg-info/requires.txt
2019-03-28 23:49:58.000000000 +0100
@@ -1,6 +1,5 @@
thrift
-twitter.common.lang==0.3.9
-twitter.common.finagle-thrift==0.3.9
+twitter.common.lang==0.3.11
[sasl]
kerberos==1.1.1