-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hue - Upgrade Apache Thrift to 0.16.0, Thrift SASL 0.4.3, due to high…
… CVEs (#3057)
- Loading branch information
Showing
57 changed files
with
591 additions
and
180 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include src/ext/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
Metadata-Version: 2.1 | ||
Name: thrift | ||
Version: 0.13.0 | ||
Version: 0.16.0 | ||
Summary: Python bindings for the Apache Thrift RPC system | ||
Home-page: https://thrift.apache.org | ||
Home-page: http://thrift.apache.org | ||
Author: Apache Thrift Developers | ||
Author-email: [email protected] | ||
License: Apache Software License, Version 2 | ||
License: Apache License 2.0 | ||
Description: Thrift Python Software Library | ||
|
||
Thrift is a lightweight, language-independent software stack for | ||
point-to-point RPC implementation. | ||
Thrift provides clean abstractions and implementations for data transport, | ||
data serialization, and application level processing. The code generation | ||
system takes a simple definition language as input and generates code | ||
across programming languages that uses the abstracted stack to build | ||
interoperable RPC clients and servers. | ||
License | ||
======= | ||
|
||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License 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. | ||
|
||
Using Thrift with Python | ||
======================== | ||
|
||
Thrift is provided as a set of Python packages. The top level package is | ||
thrift, and there are subpackages for the protocol, transport, and server | ||
|
@@ -26,24 +41,17 @@ Description: Thrift Python Software Library | |
The Python libraries can be installed manually using the provided setup.py | ||
file, or automatically using the install hook provided via autoconf/automake. | ||
To use the latter, become superuser and do make install. | ||
|
||
For more information: | ||
|
||
https://thrift.apache.org/ | ||
https://www.github.com/apache/thrift/ | ||
Platform: UNKNOWN | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Environment :: Console | ||
Classifier: Intended Audience :: Developers | ||
Classifier: License :: OSI Approved :: Apache Software License | ||
Classifier: Programming Language :: Python | ||
Classifier: Programming Language :: Python :: 2 | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Topic :: Software Development :: Code Generators | ||
Classifier: Topic :: Software Development :: Libraries | ||
Classifier: Topic :: System :: Networking | ||
Description-Content-Type: text/markdown | ||
Provides-Extra: all | ||
Provides-Extra: ssl | ||
Provides-Extra: tornado | ||
Provides-Extra: twisted | ||
Provides-Extra: all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Thrift Python Software Library | ||
|
||
License | ||
======= | ||
|
||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License 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. | ||
|
||
Using Thrift with Python | ||
======================== | ||
|
||
Thrift is provided as a set of Python packages. The top level package is | ||
thrift, and there are subpackages for the protocol, transport, and server | ||
code. Each package contains modules using standard Thrift naming conventions | ||
(i.e. TProtocol, TTransport) and implementations in corresponding modules | ||
(i.e. TSocket). There is also a subpackage reflection, which contains | ||
the generated code for the reflection structures. | ||
|
||
The Python libraries can be installed manually using the provided setup.py | ||
file, or automatically using the install hook provided via autoconf/automake. | ||
To use the latter, become superuser and do make install. |
3 changes: 3 additions & 0 deletions
3
desktop/core/ext-py/thrift-0.13.0/setup.cfg → desktop/core/ext-py/thrift-0.16.0/setup.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
[install] | ||
optimize = 1 | ||
|
||
[metadata] | ||
description_file = README.md | ||
|
||
[flake8] | ||
max-line-length = 100 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,8 @@ | |
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
import os | ||
import sys | ||
|
||
import sys | ||
try: | ||
from setuptools import setup, Extension | ||
except Exception: | ||
|
@@ -30,6 +29,7 @@ | |
from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError | ||
|
||
# Fix to build sdist under vagrant | ||
import os | ||
if 'vagrant' in str(os.environ): | ||
try: | ||
del os.link | ||
|
@@ -48,20 +48,6 @@ class BuildFailed(Exception): | |
pass | ||
|
||
|
||
def read_file(path): | ||
""" | ||
Return the contents of a file | ||
Arguments: | ||
- path: path to the file | ||
Returns: | ||
- contents of the file | ||
""" | ||
with open(path, 'r') as desc_file: | ||
return desc_file.read().rstrip() | ||
|
||
|
||
class ve_build_ext(build_ext): | ||
def run(self): | ||
try: | ||
|
@@ -76,11 +62,26 @@ def build_extension(self, ext): | |
raise BuildFailed() | ||
|
||
|
||
def read_file(path): | ||
""" | ||
Return the contents of a file | ||
Arguments: | ||
- path: path to the file | ||
Returns: | ||
- contents of the file | ||
""" | ||
with open(path, "r") as desc_file: | ||
return desc_file.read().rstrip() | ||
|
||
|
||
def run_setup(with_binary): | ||
if with_binary: | ||
extensions = dict( | ||
ext_modules=[ | ||
Extension('thrift.protocol.fastbinary', | ||
extra_compile_args=['-std=c++11'], | ||
sources=[ | ||
'src/ext/module.cpp', | ||
'src/ext/types.cpp', | ||
|
@@ -104,17 +105,15 @@ def run_setup(with_binary): | |
twisted_deps = ['twisted'] | ||
|
||
setup(name='thrift', | ||
version='0.13.0', | ||
version='0.16.0', | ||
description='Python bindings for the Apache Thrift RPC system', | ||
# causes problems publishing | ||
# license=read_file("LICENSE"), | ||
long_description=read_file("README.md"), | ||
long_description_content_type="text/markdown", | ||
author='Apache Thrift Developers', | ||
author_email='[email protected]', | ||
url='https://thrift.apache.org', | ||
url='http://thrift.apache.org', | ||
license='Apache License 2.0', | ||
install_requires=['six>=1.7.2'], | ||
license='Apache Software License, Version 2', | ||
extras_require={ | ||
'ssl': ssl_deps, | ||
'tornado': tornado_deps, | ||
|
@@ -132,11 +131,9 @@ def run_setup(with_binary): | |
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 3', | ||
'Topic :: Software Development :: Code Generators', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: System :: Networking' | ||
], | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
* under the License. | ||
*/ | ||
|
||
#define PY_SSIZE_T_CLEAN | ||
#include "ext/compact.h" | ||
|
||
namespace apache { | ||
|
File renamed without changes.
File renamed without changes.
Oops, something went wrong.