diff --git a/flink-python/MANIFEST.in b/flink-python/MANIFEST.in index 006a729783b77..f1de1d02ba2c5 100644 --- a/flink-python/MANIFEST.in +++ b/flink-python/MANIFEST.in @@ -25,5 +25,6 @@ include README.md include LICENSE include NOTICE include pyflink/README.txt +include pyflink/py.typed recursive-include pyflink/fn_execution *.pxd recursive-include pyflink/fn_execution *.pyx diff --git a/flink-python/pyflink/py.typed b/flink-python/pyflink/py.typed new file mode 100644 index 0000000000000..d35bf39669d09 --- /dev/null +++ b/flink-python/pyflink/py.typed @@ -0,0 +1,17 @@ +################################################################################ +# 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. +################################################################################ \ No newline at end of file diff --git a/flink-python/setup.py b/flink-python/setup.py index 9354d422a5b7e..5cd6eb841df53 100644 --- a/flink-python/setup.py +++ b/flink-python/setup.py @@ -312,7 +312,7 @@ def extracted_output_files(base_dir, file_path, output_directory): 'pyflink.bin': TEMP_PATH + '/bin'} PACKAGE_DATA = { - 'pyflink': ['README.txt'], + 'pyflink': ['README.txt', 'py.typed'], 'pyflink.conf': ['*'], 'pyflink.log': ['*'], 'pyflink.examples': ['*.py', '*/*.py'],