From 0eb851d062944623a6fa5b5c4d2a0508abf48a4d Mon Sep 17 00:00:00 2001 From: Florian Hines Date: Mon, 12 Sep 2022 10:36:29 -0500 Subject: [PATCH] Update packages/includes instructions --- .../pyproject.toml | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/cookiecutter/wrapper-template/{{cookiecutter.wrapper_id}}/pyproject.toml b/cookiecutter/wrapper-template/{{cookiecutter.wrapper_id}}/pyproject.toml index 9f4f4c1..756c6a0 100644 --- a/cookiecutter/wrapper-template/{{cookiecutter.wrapper_id}}/pyproject.toml +++ b/cookiecutter/wrapper-template/{{cookiecutter.wrapper_id}}/pyproject.toml @@ -5,6 +5,23 @@ description = "`{{cookiecutter.wrapper_id}}` is a Meltano utility extension." authors = ["{{ cookiecutter.admin_name }}"] license = "Apache 2.0" + +packages = [ + { include = "{{cookiecutter.library_name}}" } + # uncomment this if you want to include static assets + # { include = "files_{{cookiecutter.wrapper_id}}.*" } +] + +# If you need to include static assets with your extension, you can add them here. +# Under a directory path of "files_{{cookiecutter.wrapper_id}}/". These will be +# included in both the sdist and wheel by default. +# +# See https://python-poetry.org/docs/pyproject/#include-and-exclude for further +# details. +#include = [ +# {path = "files_{{cookiecutter.wrapper_id}}"} +#] + [tool.poetry.dependencies] python = "<3.11,>=3.7" structlog = "^21.2.0" @@ -23,18 +40,8 @@ flake8 = "^3.9.0" requires = ["poetry-core>=1.0.8"] build-backend = "poetry.core.masonry.api" -packages = [ - { include = "{{cookiecutter.library_name}}" } - # uncomment this if you want to include static assets - # { include = "files_{{cookiecutter.wrapper_id}}.*" } -] -# If you need to static assets with your extension, you can add them here. -# Under a directory path of "files_{{cookiecutter.wrapper_id}}/" -#include = [ -# "files_{{cookiecutter.wrapper_id}}/somefile.thing" -#] [tool.poetry.scripts] {{cookiecutter.cli_prefix}}_extension = '{{cookiecutter.library_name}}.main:app' -{{cookiecutter.cli_prefix}}_invoker = '{{cookiecutter.library_name}}.pass_through:pass_through_cli' \ No newline at end of file +{{cookiecutter.cli_prefix}}_invoker = '{{cookiecutter.library_name}}.pass_through:pass_through_cli'