You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/11/14 08:00:30 UTC

[avro] branch branch-1.11 updated: AVRO-3669: [python] Add py.typed marker file (PEP561 compliance) (#1952)

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

mgrigorov pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/branch-1.11 by this push:
     new 7f757cb07 AVRO-3669: [python] Add py.typed marker file (PEP561 compliance) (#1952)
7f757cb07 is described below

commit 7f757cb07f3d55b83a4146cd7f02033b08bfbe19
Author: Kaisen Chen <ka...@gmail.com>
AuthorDate: Mon Nov 14 00:00:03 2022 -0800

    AVRO-3669: [python] Add py.typed marker file (PEP561 compliance) (#1952)
    
    * AVRO-3669: Add py.typed marker file (PEP561 compliance)
    
    * AVRO-3669: Fix formatting
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
    Co-authored-by: Martin Tzvetanov Grigorov <mg...@apache.org>
    (cherry picked from commit ddccc04dc62a9fddfc30fb3eab6156b93cf82cc6)
---
 lang/py/MANIFEST.in   | 1 +
 lang/py/avro/py.typed | 0
 pom.xml               | 2 ++
 3 files changed, 3 insertions(+)

diff --git a/lang/py/MANIFEST.in b/lang/py/MANIFEST.in
index 1378ab8e2..b60024250 100644
--- a/lang/py/MANIFEST.in
+++ b/lang/py/MANIFEST.in
@@ -15,3 +15,4 @@
 
 include avro/*.avsc avro/tether/*.avpr 
 include avro/VERSION.txt avro/LICENSE avro/NOTICE
+include avro/py.typed
diff --git a/lang/py/avro/py.typed b/lang/py/avro/py.typed
new file mode 100644
index 000000000..e69de29bb
diff --git a/pom.xml b/pom.xml
index 55282c012..17de468da 100644
--- a/pom.xml
+++ b/pom.xml
@@ -491,6 +491,8 @@
                 <exclude>lang/java/tools/src/main/resources/META-INF/cddl-1.0.text</exclude>
                 <exclude>lang/java/tools/src/main/resources/META-INF/cddl-1.1.text</exclude>
                 <exclude>lang/java/tools/src/main/resources/META-INF/mpl-2.0.text</exclude>
+                <!-- Other -->
+                <exclude>lang/py/avro/py.typed</exclude> <!-- Included in package but contains no code (see PEP561)  -->
               </excludes>
             </configuration>
           </plugin>