You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2023/05/05 18:24:19 UTC

[streampipes] branch 1475-fulfill-pep-561-compatibility updated: [1475] fulfill PEP 561 & exclude test files from package

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

bossenti pushed a commit to branch 1475-fulfill-pep-561-compatibility
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/1475-fulfill-pep-561-compatibility by this push:
     new cb6e60466 [1475] fulfill PEP 561 & exclude test files from package
cb6e60466 is described below

commit cb6e604667363570c16ce70b6349326f8f7033fc
Author: bossenti <bo...@posteo.de>
AuthorDate: Fri May 5 20:23:50 2023 +0200

    [1475] fulfill PEP 561 & exclude test files from package
---
 streampipes-client-python/setup.py             | 10 ++++++++--
 streampipes-client-python/streampipes/py.typed | 17 +++++++++++++++++
 2 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/streampipes-client-python/setup.py b/streampipes-client-python/setup.py
index bb7a20c33..0af3b1059 100644
--- a/streampipes-client-python/setup.py
+++ b/streampipes-client-python/setup.py
@@ -97,7 +97,14 @@ setuptools.setup(
     python_requires=REQUIRES_PYTHON,
     url=URL,
     project_urls=PROJECT_URLS,
-    packages=setuptools.find_packages(exclude=("tests",)),
+    packages=setuptools.find_packages(exclude=("*tests*",)),
+    package_data={
+        "streampipes": [
+            "py.typed",
+            "*.pyi",
+            "**/*.pyi"
+        ]
+    },
     install_requires=base_packages,
     extras_require={
         "dev": dev_packages,
@@ -105,7 +112,6 @@ setuptools.setup(
         "docs": docs_packages,
         "all": dev_packages + docs_packages,
     },
-    include_package_data=True,
     license="Apache License 2.0",
     classifiers=[
         # Trove classifiers
diff --git a/streampipes-client-python/streampipes/py.typed b/streampipes-client-python/streampipes/py.typed
new file mode 100644
index 000000000..17216e19b
--- /dev/null
+++ b/streampipes-client-python/streampipes/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