From 556fa5cfd39965a56e81798cf28c657cdc09163a Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 2 Jun 2025 22:45:42 +0200 Subject: [PATCH 1/5] Declare templates in MANIFEST and include package data --- .gitignore | 2 +- pyproject.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7aaa277ea..968100462 100644 --- a/.gitignore +++ b/.gitignore @@ -46,7 +46,7 @@ share/python-wheels/ *.egg-info/ .installed.cfg *.egg -MANIFEST +MANIFEST.in # PyInstaller # Usually these files are written by a python script from a template diff --git a/pyproject.toml b/pyproject.toml index 3eb900c75..7630130c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,4 +65,5 @@ classifiers = [ ] [tool.setuptools] -package-dir = {"bittensor_cli" = "bittensor_cli"} \ No newline at end of file +package-dir = {"bittensor_cli" = "bittensor_cli"} +include-package-data = true \ No newline at end of file From a2b6dadd0b45747bb6de9dd7742dcc28cad43188 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 2 Jun 2025 14:21:34 -0700 Subject: [PATCH 2/5] try this --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7630130c5..b5ad13fcd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,5 +65,8 @@ classifiers = [ ] [tool.setuptools] -package-dir = {"bittensor_cli" = "bittensor_cli"} -include-package-data = true \ No newline at end of file +package-dir = {"" = "bittensor_cli/src"} +include-package-data = true + +[tool.setuptools.package-data] +"bittensor_cli" = ["templates/**/*"] \ No newline at end of file From 1fb657ef6560273e31973f2db47d09fb539cbe82 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 2 Jun 2025 23:25:55 +0200 Subject: [PATCH 3/5] Add MANIFEST.in explicitly --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 000000000..867b5bcef --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +recursive-include bittensor_cli/src/bittensor/templates * From 05438b84b585830c2a7bbb8eb53c660502d6a1d5 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 2 Jun 2025 23:30:29 +0200 Subject: [PATCH 4/5] removed MANIFEST from gitignore --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 968100462..f504ecc2e 100644 --- a/.gitignore +++ b/.gitignore @@ -46,7 +46,6 @@ share/python-wheels/ *.egg-info/ .installed.cfg *.egg -MANIFEST.in # PyInstaller # Usually these files are written by a python script from a template @@ -209,4 +208,4 @@ replicate.yaml **/run.sh # Notebooks -*.ipynb \ No newline at end of file +*.ipynb From 5c690d355e1c46e1b107ae4f4ac13754980d3a88 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 2 Jun 2025 23:32:56 +0200 Subject: [PATCH 5/5] Revert --- pyproject.toml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b5ad13fcd..470c4090a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,8 +65,5 @@ classifiers = [ ] [tool.setuptools] -package-dir = {"" = "bittensor_cli/src"} +package-dir = {"bittensor_cli" = "bittensor_cli"} include-package-data = true - -[tool.setuptools.package-data] -"bittensor_cli" = ["templates/**/*"] \ No newline at end of file