From 72e301f6bf8e921069ff7d1970ce4ebc55c3c41a Mon Sep 17 00:00:00 2001 From: Rui Coelho Date: Thu, 1 Feb 2024 12:44:51 +0000 Subject: [PATCH] Fix scripts for pipx and add CI test --- .github/workflows/test.yaml | 4 ++++ pyproject.toml | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f18ede7..f1b5f57 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -36,6 +36,10 @@ jobs: - name: Install test dependencies run: | python -m pip install .[test] + - name: Test pipx installation + run: | + python -m pip install pipx + pipx install . - name: Lint with flake8 run: | flake8 piglot test diff --git a/pyproject.toml b/pyproject.toml index 4f8b9fe..19e6519 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,9 +50,9 @@ test = ["pytest", "pytest-cov", "flake8", "coverage"] "Bug Reports" = "https://github.com/CM2S/piglot/issues" "Source" = "https://github.com/CM2S/piglot/" -[project.entry-points."piglot.bin"] -piglot = "piglot:main" -piglot-plot = "piglot_plot:main" +[project.scripts] +piglot = "piglot.bin.piglot:main" +piglot-plot = "piglot.bin.piglot_plot:main" [build-system] requires = ["setuptools>=61.0.0", "wheel"] # Needed for dynamic version