Skip to content

Commit

Permalink
Fix scripts for pipx and add CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
ruicoelhopedro committed Feb 1, 2024
1 parent be151b2 commit 72e301f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72e301f

Please sign in to comment.