From 09803267c19d09d730cc516333fff97f1dc11eeb Mon Sep 17 00:00:00 2001 From: Caden Myers Date: Wed, 12 Nov 2025 20:09:29 -0500 Subject: [PATCH 1/4] add examples to manifest.in --- MANIFEST.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index f1a78ee..e9abb4c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,9 +1,11 @@ graft src graft tests graft requirements - include AUTHORS.rst LICENSE*.rst README.rst +# include examples inside the package +recursive-include src/diffpy/cmi/docs/examples * + # Exclude all bytecode files and __pycache__ directories global-exclude *.py[cod] # Exclude all .pyc, .pyo, and .pyd files. global-exclude .DS_Store # Exclude Mac filesystem artifacts. From ce636e1c990bba0c6fa697623a86d49dda29d02e Mon Sep 17 00:00:00 2001 From: Caden Myers Date: Wed, 12 Nov 2025 20:10:16 -0500 Subject: [PATCH 2/4] news --- news/ship-examples.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 news/ship-examples.rst diff --git a/news/ship-examples.rst b/news/ship-examples.rst new file mode 100644 index 0000000..27fc85d --- /dev/null +++ b/news/ship-examples.rst @@ -0,0 +1,23 @@ +**Added:** + +* No news needed. + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +* From 7be150dd9e75e30f491e25163dccb3eab919f3f3 Mon Sep 17 00:00:00 2001 From: Caden Myers Date: Wed, 12 Nov 2025 20:10:48 -0500 Subject: [PATCH 3/4] restore whitespace --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index e9abb4c..e2614ee 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,7 @@ graft src graft tests graft requirements + include AUTHORS.rst LICENSE*.rst README.rst # include examples inside the package From 52ccaa9f9269bba0715c25fcb1ea76024a394f93 Mon Sep 17 00:00:00 2001 From: Caden Myers Date: Thu, 13 Nov 2025 11:00:09 -0500 Subject: [PATCH 4/4] include examples in manifest.in and pyproject.toml --- MANIFEST.in | 2 +- pyproject.toml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index e2614ee..0f89fb7 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -5,7 +5,7 @@ graft requirements include AUTHORS.rst LICENSE*.rst README.rst # include examples inside the package -recursive-include src/diffpy/cmi/docs/examples * +recursive-include docs/examples * # Exclude all bytecode files and __pycache__ directories global-exclude *.py[cod] # Exclude all .pyc, .pyo, and .pyd files. diff --git a/pyproject.toml b/pyproject.toml index 7f46926..e65cd81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,3 +87,9 @@ exclude = ''' | tests/data )/ ''' + +[tool.setuptools] +include-package-data = true + +[tool.setuptools.package-data] +"diffpy.cmi" = ["../docs/examples/**/*"]