From 54e6bb27d8366ca9f47009813e6c64f0ed80b083 Mon Sep 17 00:00:00 2001 From: Paillat-dev Date: Sat, 8 Mar 2025 21:29:21 +0100 Subject: [PATCH] :page_facing_up: Add copyright and license information to example scripts --- examples/basic_bot.py | 3 +++ examples/button_example.py | 3 +++ examples/modal_example.py | 3 +++ pyproject.toml | 10 ++++++---- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/examples/basic_bot.py b/examples/basic_bot.py index 5bfa438..dd88aca 100644 --- a/examples/basic_bot.py +++ b/examples/basic_bot.py @@ -1,3 +1,6 @@ +# Copyright (c) Paillat-dev +# SPDX-License-Identifier: MIT + """Basic Discord bot example using Pycord REST. This is a minimal example showing how to create slash commands. diff --git a/examples/button_example.py b/examples/button_example.py index 741d64a..db0a1b1 100644 --- a/examples/button_example.py +++ b/examples/button_example.py @@ -1,3 +1,6 @@ +# Copyright (c) Paillat-dev +# SPDX-License-Identifier: MIT + """Example demonstrating how to use buttons with Pycord REST.""" import os diff --git a/examples/modal_example.py b/examples/modal_example.py index aaa4dcf..cf4239f 100644 --- a/examples/modal_example.py +++ b/examples/modal_example.py @@ -1,3 +1,6 @@ +# Copyright (c) Paillat-dev +# SPDX-License-Identifier: MIT + """Example showing how to work with modals in Pycord REST.""" import asyncio diff --git a/pyproject.toml b/pyproject.toml index 496906b..1e5d7de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,16 +49,18 @@ source_archive = "https://github.com/Paillat-dev/pycord-rest/archive/{commit_has name = "pycord-rest-bot" [tool.hatch.build] -packages = ["src/pycord_rest"] +include = [ + "src/pycord_rest/", +] exclude = [ ".copywrite.hcl", ".github", ".python-version", "uv.lock", ] -include = [ - "src/pycord_rest/", -] + +[tool.hatch.build.targets.wheel] +packages = ["src/pycord_rest"] [tool.pyright] pythonVersion = "3.12"