From 04815ea03f4f11c498ce41a901eba99ad9b8b9ec Mon Sep 17 00:00:00 2001 From: synkd Date: Tue, 4 Jun 2024 11:30:26 -0400 Subject: [PATCH 1/2] Add `scripts` section to pyproject.toml When I converted Manifester to pyproject.toml, I did not include a `project.scripts` section. As a result, an executable for the Manifester CLI is not installed when the Manifester package is installed. This PR adds a `project.scripts` section to pyproject.toml so the Manifester CLI is easily accessible. --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d3d65b5..3ba0fb0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,6 +63,9 @@ setup = [ "twine", ] +[project.scripts] +manifester = "manifester.commands:cli" + [tools.setuptools] platforms = ["any"] zip-safe = false From c2587c264300a752bf27b98757d859b7e44be79a Mon Sep 17 00:00:00 2001 From: synkd Date: Thu, 6 Jun 2024 16:05:31 -0400 Subject: [PATCH 2/2] Add Usage: manifester [OPTIONS] COMMAND [ARGS]... Command-line interface for manifester. Options: --help Show this message and exit. Commands: delete Delete subscription allocations in inventory and... get-manifest Return a subscription manifester based on the settings... inventory Display the local inventory file's contents. to codeql-analysis GitHub action --- .github/workflows/codeql-analysis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c8ba0e3..6585274 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -44,4 +44,5 @@ jobs: pip install -U pip pip install -U .[test] cp manifester_settings.yaml.example manifester_settings.yaml + manifester --help pytest -v tests/