From 31962f8c9f6f972dd99db4575813e3012de81625 Mon Sep 17 00:00:00 2001 From: Jacob Callahan Date: Wed, 30 Aug 2023 13:40:10 -0400 Subject: [PATCH] Add setup dependency group to pyproject.toml This will allow us to install the dependencies for building the project in one location for users and the action. --- .github/workflows/python-publish.yml | 2 +- pyproject.toml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 4ccc0124..c5d9c5e6 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -23,7 +23,7 @@ jobs: - name: Setup and Build run: | - pip install -U pip build + pip install -U pip .[setup] python -m build python -m twine check dist/* diff --git a/pyproject.toml b/pyproject.toml index c2e57d9a..c5e88efc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,10 @@ docker = [ ] podman = ["podman-py"] beaker = ["beaker-client"] +setup = [ + "build", + "twine", +] [project.scripts] broker = "broker.commands:cli"