From 67034562cf129f7ca6de3168dc80a2663503c07c Mon Sep 17 00:00:00 2001 From: bigstones Date: Fri, 15 Dec 2023 03:35:37 +0900 Subject: [PATCH 1/5] docs: Update about custom subpackage name in poetry --- docs/pyproject.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/pyproject.md b/docs/pyproject.md index 11f8ce13971..bf1fb7eda09 100644 --- a/docs/pyproject.md +++ b/docs/pyproject.md @@ -214,6 +214,17 @@ packages = [ ] ``` +The "to" parameter is designed to specify the relative destination path where the package will be located upon installation. This allows for greater control over the organization of packages within your project's structure. + +```toml +[tool.poetry] +# ... +packages = [ + { include = "my_package", from = "lib", to = "target_package" }, +] +``` + + If you want to restrict a package to a specific build format you can specify it by using `format`: From f0d4c9031c66fae7de75def23e407bf19f6b3651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Sat, 3 Feb 2024 10:18:52 +0100 Subject: [PATCH 2/5] formatting --- docs/pyproject.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pyproject.md b/docs/pyproject.md index bf1fb7eda09..014046a58cf 100644 --- a/docs/pyproject.md +++ b/docs/pyproject.md @@ -214,7 +214,7 @@ packages = [ ] ``` -The "to" parameter is designed to specify the relative destination path where the package will be located upon installation. This allows for greater control over the organization of packages within your project's structure. +The `to` parameter is designed to specify the relative destination path where the package will be located upon installation. This allows for greater control over the organization of packages within your project's structure. ```toml [tool.poetry] From a7b6ef5ec5d06780a06a074c989159cd7085a70a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Sat, 3 Feb 2024 10:22:44 +0100 Subject: [PATCH 3/5] line length --- docs/pyproject.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/pyproject.md b/docs/pyproject.md index 014046a58cf..75c74844cbd 100644 --- a/docs/pyproject.md +++ b/docs/pyproject.md @@ -214,7 +214,9 @@ packages = [ ] ``` -The `to` parameter is designed to specify the relative destination path where the package will be located upon installation. This allows for greater control over the organization of packages within your project's structure. +The `to` parameter is designed to specify the relative destination path +where the package will be located upon installation. This allows for +greater control over the organization of packages within your project's structure. ```toml [tool.poetry] From f159a90b492ff07635c3fdf80aa6b5f03f0151be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Sat, 3 Feb 2024 10:26:04 +0100 Subject: [PATCH 4/5] remove double newline --- docs/pyproject.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/pyproject.md b/docs/pyproject.md index 75c74844cbd..4b3b3c27a2c 100644 --- a/docs/pyproject.md +++ b/docs/pyproject.md @@ -225,8 +225,6 @@ packages = [ { include = "my_package", from = "lib", to = "target_package" }, ] ``` - - If you want to restrict a package to a specific build format you can specify it by using `format`: From 0f6444972d832adb7aacd6968d2f7232cd0406f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Sat, 3 Feb 2024 10:27:26 +0100 Subject: [PATCH 5/5] readd one newline --- docs/pyproject.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/pyproject.md b/docs/pyproject.md index 4b3b3c27a2c..1a496f5cedb 100644 --- a/docs/pyproject.md +++ b/docs/pyproject.md @@ -225,6 +225,7 @@ packages = [ { include = "my_package", from = "lib", to = "target_package" }, ] ``` + If you want to restrict a package to a specific build format you can specify it by using `format`: