From 1bb930b096dc48da48548d1e808a84f8afbc4707 Mon Sep 17 00:00:00 2001 From: Teemu R Date: Thu, 4 Jan 2024 19:14:14 +0100 Subject: [PATCH] Ship CHANGELOG only in sdist (#610) Otherwise, the file would be extracted in the main site-packages which is rather unexpected.. Uninstalling python-kasa-0.6.0.dev0: Would remove: /home/tpr/.virtualenvs/default/bin/kasa /home/tpr/.virtualenvs/default/lib/python3.11/site-packages/CHANGELOG.md /home/tpr/.virtualenvs/default/lib/python3.11/site-packages/kasa/* /home/tpr/.virtualenvs/default/lib/python3.11/site-packages/python_kasa-0.6.0.dev0.dist-info/* Proceed (Y/n)? --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6e4c9f4f..2a03bf69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,9 @@ readme = "README.md" packages = [ { include = "kasa" } ] -include = ["CHANGELOG.md"] +include = [ + { path= "CHANGELOG.md", format = "sdist" } +] [tool.poetry.urls] "Bug Tracker" = "https://github.com/python-kasa/python-kasa/issues"