This is an automated email from the ASF dual-hosted git repository.

dianfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new f3cfe3e869d [FLINK-39578][python] Include py.typed in PyFlink 
distribution (#28068)
f3cfe3e869d is described below

commit f3cfe3e869dcc96d72724b5a3223cd909b1136e8
Author: florianvazelle <[email protected]>
AuthorDate: Tue Aug 25 04:11:50 2026 +0200

    [FLINK-39578][python] Include py.typed in PyFlink distribution (#28068)
---
 flink-python/MANIFEST.in                       |  1 +
 flink-python/{MANIFEST.in => pyflink/py.typed} | 14 +-------------
 flink-python/setup.py                          |  2 +-
 3 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/flink-python/MANIFEST.in b/flink-python/MANIFEST.in
index 006a729783b..f1de1d02ba2 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/MANIFEST.in b/flink-python/pyflink/py.typed
similarity index 74%
copy from flink-python/MANIFEST.in
copy to flink-python/pyflink/py.typed
index 006a729783b..d35bf39669d 100644
--- a/flink-python/MANIFEST.in
+++ b/flink-python/pyflink/py.typed
@@ -14,16 +14,4 @@
 #  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.
-################################################################################
-
-global-exclude *.py[cod] __pycache__ .DS_Store
-graft deps/bin
-graft deps/conf
-graft deps/log
-recursive-include deps/examples *.py
-include README.md
-include LICENSE
-include NOTICE
-include pyflink/README.txt
-recursive-include pyflink/fn_execution *.pxd
-recursive-include pyflink/fn_execution *.pyx
+################################################################################
\ No newline at end of file
diff --git a/flink-python/setup.py b/flink-python/setup.py
index 2d05529b1ac..ce3f7e816fd 100644
--- a/flink-python/setup.py
+++ b/flink-python/setup.py
@@ -313,7 +313,7 @@ try:
         'pyflink.bin': TEMP_PATH + '/bin'}
 
     PACKAGE_DATA = {
-        'pyflink': ['README.txt'],
+        'pyflink': ['README.txt', 'py.typed'],
         'pyflink.conf': ['*'],
         'pyflink.log': ['*'],
         'pyflink.examples': ['*.py', '*/*.py'],

Reply via email to