From 556fa5cfd39965a56e81798cf28c657cdc09163a Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 2 Jun 2025 22:45:42 +0200 Subject: [PATCH 1/6] 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/6] 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/6] 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/6] 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/6] 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 From c7c28d446b414be4e655e08d468f555e97eee746 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 2 Jun 2025 23:37:40 +0200 Subject: [PATCH 6/6] Bump changelog and version --- CHANGELOG.md | 7 +++++++ pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92ea41cf4..2fe1e872e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 9.5.1 /2025-06-02 +## What's Changed +* Declare templates in MANIFEST and include package data by @thewhaleking in https://github.com/opentensor/btcli/pull/477 + + +**Full Changelog**: https://github.com/opentensor/btcli/compare/v9.5.0...v9.5.1 + ## 9.5.0 /2025-06-02 ## What's Changed diff --git a/pyproject.toml b/pyproject.toml index 470c4090a..fa9f81072 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "bittensor-cli" -version = "9.5.0" +version = "9.5.1" description = "Bittensor CLI" readme = "README.md" authors = [