You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hamilton.apache.org by sk...@apache.org on 2026/06/07 04:39:34 UTC
(hamilton) 01/04: Include tests in sub-package source distributions
This is an automated email from the ASF dual-hosted git repository.
skrawcz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hamilton.git
commit 27f47cee5859bfdf90f43de33b8c8b118e74d471
Author: Stefan Krawczyk <st...@cs.stanford.edu>
AuthorDate: Sun May 31 21:20:04 2026 -0700
Include tests in sub-package source distributions
Per Apache release policy, tests should be included in the sdist so
voters can build from source and run tests to validate.
- ui/sdk: removed tests/** from exclude, added to include
- dev_tools/language_server: same
- contrib: removed tests/** from exclude (tests live inside the package)
- ui/backend: already includes tests/** (no change needed)
---
contrib/examples | 1 +
contrib/pyproject.toml | 4 +++-
dev_tools/language_server/pyproject.toml | 2 +-
ui/sdk/examples | 1 +
ui/sdk/pyproject.toml | 6 +++++-
5 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/contrib/examples b/contrib/examples
new file mode 120000
index 00000000..5dd62e70
--- /dev/null
+++ b/contrib/examples
@@ -0,0 +1 @@
+../examples/contrib
\ No newline at end of file
diff --git a/contrib/pyproject.toml b/contrib/pyproject.toml
index 54672486..5b3bfbf7 100644
--- a/contrib/pyproject.toml
+++ b/contrib/pyproject.toml
@@ -69,10 +69,12 @@ include = [
"NOTICE",
"DISCLAIMER",
"requirements.txt",
+ "examples/**",
]
exclude = [
- "tests/**",
".git/**",
"**/__pycache__/**",
"**/*.pyc",
+ "**/*.ipynb",
+ "**/*.png",
]
diff --git a/dev_tools/language_server/pyproject.toml b/dev_tools/language_server/pyproject.toml
index 15bf3146..355ade77 100644
--- a/dev_tools/language_server/pyproject.toml
+++ b/dev_tools/language_server/pyproject.toml
@@ -80,9 +80,9 @@ include = [
"LICENSE",
"NOTICE",
"DISCLAIMER",
+ "tests/**",
]
exclude = [
- "tests/**",
".git/**",
"**/__pycache__/**",
"**/*.pyc",
diff --git a/ui/sdk/examples b/ui/sdk/examples
new file mode 120000
index 00000000..89c345d3
--- /dev/null
+++ b/ui/sdk/examples
@@ -0,0 +1 @@
+../../examples/hamilton_ui
\ No newline at end of file
diff --git a/ui/sdk/pyproject.toml b/ui/sdk/pyproject.toml
index 2b57dc0f..95c33024 100644
--- a/ui/sdk/pyproject.toml
+++ b/ui/sdk/pyproject.toml
@@ -74,14 +74,18 @@ include = [
"DISCLAIMER",
"requirements.txt",
"requirements-test.txt",
+ "tests/**",
+ "examples/**",
]
exclude = [
- "tests/**",
".git/**",
".github/**",
"**/__pycache__/**",
"**/*.pyc",
"dist/**",
+ "**/*.parquet",
+ "**/*.pkl",
+ "**/*.ipynb",
"build/**",
".pytest_cache/**",
".venv/**",